mojira.dev
MC-263836

Ghost item bug when adding an item to your hotbar slots with commands immediately after using them.

When using commands to readd an item you just used to your the slot you just emptied, a ghost item appears in that slot until you enter your inventory and click on the slot.

Steps to Reproduce:
1. Run the command "/scoreboard objectives add grassUser minecraft.used:minecraft.grass_block" in chat.
2. Place a two block command block chain like depicted below.

[media]

3. In the top command block, type "/scoreboard players set @a grassUser 0" and set it to Always Active

4. In the bottom command block, type "/give @a[scores={grassUser=1..}] minecraft:grass_block" and set it to Always ActiveΒ Note: Remove that random backslash in the command I can't remove it on the issue tracker for some reason.

5. Switch to survival mode and place a grass block. You now have a ghost item in your mainhand.

Linked issues

Attachments

Comments 1

Avoma

Thank you for your report!
We're tracking this issue in MC-239935, 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:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

NethyIsTrue

(Unassigned)

Unconfirmed

1.20.1

Retrieved