-
Bug
-
Resolution: Fixed
-
20w46a, 21w10a, 21w14a, 1.17 Release Candidate 1, 1.17 Release Candidate 2, 1.17, 1.20.2, 23w40a, 1.20.4, 24w05a, 24w05b, 1.21
-
None
-
Confirmed
-
Data Packs
-
Normal
-
Platform
Hi! I was working with a datapack for 1.17 (the one I uploaded here) to resolve a bug of the datapack. I found a minecraft bug. It seems /item could duplicate items and create strange ghost items. As you can see in the screenshots, if I check for the existence of the backpack item the game returns true, and if I ask the nbt it gives me the nbt of the item. However, that item should be there, but not 'ghost' and the other backpack(in my inventory) should exist. In this way, the command duplicates(not always) the items.
Do you want to check? Try this datapack, maybe with resource pack (search on the web for it, Backpacks Datapack). Give you a backpack with /loot give @s loot ulg:backpack/backpack or craft it. Place it in the off hand, right click, go to your inventory. Take the opened backpack to a slot of the inventory(not the hotbar slots). It will return on your second hand. Try again and again putting it in the inventory. At a moment, it will not return to the second hand. Now try checking for the item using /data get or predicates, or if data o [nbt={}] arg. You'll find it.
Take an item in your hotbar, select it and press F or the switch item button you have.
You will have successfully duplicated the backpack.
I don't know how to explain it, but at least I can post this try datapack and make you check and study the problem. For a better and less-laggy minecraft. Thanks
Steps to Reproduce:
- Ensure you are in Creative mode with a clear inventory
- Stand on the ground and drop a block of stone (item form) directly downwards
- Open the Survival tab of the Creative inventory
- Wait until you pick up the stone
- Without closing your inventory, move the stone to a different hotbar or inventory slot
- Close your inventory
- Right-click on the ground while the first hotbar slot is the active (main hand) slot
→ A block of stone is placed, even though your hand is empty
- is duplicated by
-
MC-268178 Item desync / duplication when dropping items in creative mode
- Resolved
-
MC-273673 When item is focused in hotbar, dropping the item while opening the creative menu duplicates the item.
- Resolved
-
MC-273675 Debug Stick Duplicate Bug
- Resolved
- relates to
-
MC-268431 External inventory changes except for the hotbar are not registered in a creative mode item selection screen
- Resolved
-
MC-273377 No debug stick in hand, but I can still edit blocks
- Resolved
-
MC-239935 Client-side desyncs can still occur when using the "/item" or "/give" commands repeatedly
- Open
-
MC-219018 Ghost items can be created using /item (server doesn't update client inventory correctly)
- Resolved