mojira.dev
MC-146043

Inventory and /give bad syncing

If you constantly give yourself an item, it will sometimes not be displayed in the inventory.

Example (YouTube)

Example command:

execute as @p unless entity @s[nbt={Inventory:[{id:"minecraft:stone"}]}] run give @s minecraft:stone

Linked issues

Attachments

Comments 9

Charlie Gallie

If you use a comparator, it almost works. If you spam Q, it eventually doesn't give you one. I'm not sure if this is a bug or just cause comparators aren't fast enough.
When I mean use a comparator, I mean put,

'execute as @p unless entity @s[nbt={Inventory:[{id:"minecraft:stone"}]}]' in one command block then 'give @p minecraft:stone' in a second.

Hey, so I'm pretty sure I'm experiencing this Bug with crafting in a datapack. It's happening with chuckchuks tables and chairs datapack, but I also have an example datapack here, where you can craft two sticks diagonal over each other to get a knowledge book. This triggers an advancement in which you get a function reward, and in that you get the knowledge book cleared and are given a wooden sword. That works no problem, and the item shows up, but if the hotbar of the player is full, the sword gets given as an invisible item and only shows up by clicking into the seemingly first empty slot.

[media]


This happens in 1.14.2 and the latest 1.14.3-prerelease 1, but I'm 100% sure it's happening in every version that released after this Bugreport last got updated.

affects 20w17a

affects 20w18a

affects 20w19a

affects 20w20a

Cannot reproduce anymore in 1.17.1 (I was able to reproduce this bug in 1.17)

Cannot reproduce either.

⚠️ Please do not add Affected Versions to resolved reports.

Have a look at the Resolution and the comments to see why this ticket has been resolved. If you think this ticket has been resolved erroneously you can contact the Mojira staff on Discord or Reddit.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Alexey

TheGabro

(Unassigned)

Confirmed

(Unassigned)

commands, inventory-desync

Minecraft 1.13.2, Minecraft 19w11b, 1.15.2, 20w18a, 20w19a, ..., 21w10a, 21w11a, 21w13a, 21w15a, 21w16a

Retrieved