mojira.dev
MC-309601

/item replace entity ? in a repeating command block

When I use a repeating command block with “item replace entity ? hotbar.? to auto replace a hotbar slot of a player with an item, the item count doesn’t update resulting in the player being able to use an item that isn’t in his hotbar. The item count updates after opening the inventory and clicking the slot or opening a chest. The command works normally if it’s in a chain command block chained to a repeating command block.

Environment

26.2 java windows 11

Linked issues

Comments 1

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, please make use of the search feature to see if an issue you are about to report has already been reported.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

EloManiek128

(Unassigned)

Unconfirmed

26.2

Retrieved