Strange /replaceitem command behavior
The bug
I executed the command replaceitem entity @a container.0 snowball 16 constantly with a repeating command block. In creative mode I opened my creative inventory, hovered over an item with my cursor, and pressed my "hotbar slot 1" button (default is 1) twice. Instead of having the item become instantly replaced with the snowballs, the item stays there.
If I press "use item" (right button) while holding the item, unless the item would normally place or spawn something, the snowballs still throw. If the item was a trident or a sword, no breaking sound or animation is made when breaking blocks with it. As soon as I open a container the item gets replaced by snowballs. I believe the item only appears client-side as it is not recognized by commands such as clear or enchant.
Created Issue:
Strange replaceitem Command Behavior
I executed the command replaceitem entity @a container.0 snowball 16 constantly with a repeating command block. In creative mode I opened my creative inventory, hovered over an item with my cursor, and pressed my "hotbar slot 1" button (default is 1) twice. Instead of having the item become instantly replaced with the snowballs, the item stays there. If I press "use item" (right button) while holding the item, unless the item would normally place or spawn something, the snowballs still throw. If the item was a trident or a sword, no breaking sound or animation is made when breaking blocks with it. As soon as I open a container the item gets replaced by snowballs. I believe the item only appears client-side as it is not recognized by commands such as clear or enchant.
Environment
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (IcedTea 3.8.0) (build 1.8.0_171-b11 suse-1.2-x86_64)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)openSUSE Tumbleweed
I executed the command replaceitem entity @a container.0 snowball 16 constantly with a repeating command block. In creative mode I opened my creative inventory, hovered over an item with my cursor, and pressed my "hotbar slot 1" button (default is 1) twice
. Instead of having the item become instantly replaced with the snowballs, the item stays there.If I press "use item" (right button) while holding the item, unless the item would normally place or spawn something, the snowballs still throw. If the item was a trident or a sword, no breaking sound or animation is made when breaking blocks with it. As soon as I open a container the item gets replaced by snowballs. I believe the item only appears client-side as it is not recognized by commands such as clear or enchant .The bug
I executed the command replaceitem entity @a container.0 snowball 16 constantly with a repeating command block. In creative mode I opened my creative inventory, hovered over an item with my cursor, and pressed my "hotbar slot 1" button (default is 1) twice . Instead of having the item become instantly replaced with the snowballs, the item stays there.
If I press "use item" (right button) while holding the item, unless the item would normally place or spawn something, the snowballs still throw. If the item was a trident or a sword, no breaking sound or animation is made when breaking blocks with it. As soon as I open a container the item gets replaced by snowballs. I believe the item only appears client-side as it is not recognized by commands such as clear or enchant .
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (IcedTea 3.8.0) (build 1.8.0_171-b11 suse-1.2-x86_64)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)openSUSE Tumbleweed
Strange replaceitemCommandBehaviorStrange /replaceitem command behavior
duplicates

Duplicate of
MC-29318.Thank you for your report!
We're tracking this issue in
MC-29318, so this ticket is being resolved and linked as a duplicate.If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki