.dupe is a chat command that allows the user to duplicate items in survival mode. It does this by corrupting the NBT data of a book and quill item so that the server fails to save the player's inventory.
- Equip the book and quill item in the main hand slot.
- Store the items to duplicate somewhere in the player's inventory.
- Disconnect from the server and reconnect. This causes the server to save the player's inventory.
- Take the items to duplicate out of the player's inventory (e.g. by storing them in a chest).
- Run the
.dupecommand. The player should be immediately kicked from the server, but this time the inventory is not saved.
- After reconnecting to the server, the items will still be in the player's inventory, but the same items are now also in the chest.
This process can be repeated over and over again. The book and quill can just be left in the main hand slot, but the disconnecting and reconnecting step has to be done every time.
Minecraft 1.17.1 has patched the .dupe command. It will keep working in older Minecraft versions.
This item duplication glitch is known to work on vanilla Minecraft 1.16.3 - 1.17 servers. Bukkit-based servers seem to have patched this glitch.
|1.17.1 and later||✘||✘||✘||✘||✘|
|1.16.3||✔||✔||not tested||not tested||not tested|
When this glitch doesn't work on a server, the player will not be kicked and will instead receive a book titled “If you can see this, it didn't work”. When it doesn't work on Paper servers, the player is kicked with the message “Book too large!”. When it doesn't work in Minecraft 1.17.1-pre1 and later versions, the player gets kicked as usual, but the items don't get duplicated.