If you constantly give yourself an item, it will sometimes not be displayed in the inventory.
Example command:
execute as @p unless entity @s[nbt={Inventory:[{id:"minecraft:stone"}]}] run give @s minecraft:stone
Linked issues
Attachments
Comments 9
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.
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.