-
Bug
-
Resolution: Fixed
-
21w10a, 21w14a, 1.17 Release Candidate 1
-
Confirmed
-
Commands, Networking
-
Normal
Using /item to replace the item in a player's hotbar slot frequently creates ghost items. Right-clicking with a ghost item will still place a block, but it does not show up in the hotbar.
This did not happen in 1.16.5.
Steps to reproduce
- Set up a repeating command block with the following command:
item replace entity @p hotbar.0 with dirt
- Drop the dirt block
→ The slot will become empty, even though the /item command should refill it - Press Q again while selecting the first slot
→ You'll drop dirt, even though there's no dirt in that slot - Right-click onto a block while selecting the first slot
→ A dirt block gets placed
Attachments
- Quick demonstration: Minecraft 1.17 Release Candidate 1 - Singleplayer 2021-06-05 14-59-59_Trim.mp4
- Slime blocks turning into a ghost item for the first time (1:50)
- This clip showcases buggy offhand behaviour (1:09)
- A brief encounter with ghost items (0:19)
- This clip contains some interesting events that may have caused the ghost items (1:15)
- This video shows that death fixes the ghost item (0:18) (~3mins cut out)
- is duplicated by
-
MC-205457 /give command running through a function tagged minecraft:tick creating invisible item when giving to selected hotbar slot
- Resolved
-
MC-213111 The new /item command doesn't update the GUI when replacing items in the player inventory
- Resolved
-
MC-222143 /item visual bug
- Resolved
-
MC-222423 /give immediately after dropping an item creates ghost item
- Resolved
-
MC-224533 Inventory desync when dropping and replacing main hand
- Resolved
-
MC-227478 /item replace causes visual glitch
- Resolved
-
MC-227966 Repeat "item replace entity" commands - Throwing items from first slot
- Resolved
-
MC-228889 /item
- Resolved
-
MC-230814 /item visual glitch in Inventory
- Resolved
-
MC-231626 First hotbar slot acts weird with /item replace command
- Resolved
- relates to
-
MC-239935 Client-side desyncs can still occur when using the "/item" or "/give" commands repeatedly
- Open
-
MC-206074 Survival tab of Creative inventory desyncs if changed manually after an external change
- Resolved