Affects Version/s: 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Release Candidate 1, 1.16, 1.16.1, 1.16.2, 1.16.4, 20w51a, 1.16.5
Fix Version/s: None
Category:Advancements, Commands, Data Packs, Networking
When a function reward of an advancement that triggers on inventory_changed removes the item, the advancement detected, the item is left behind has a ghost item on the client.
Presumably, that happens because of when in the tick the advancement triggers. It is likely, that the advancement triggers before the item is being send to the client, and then the inventory updates are send in the wrong order.
- Download the example datapack: Advancement Ghost Item Bug.zip
- Put the datapack into your world's datapack directory
- Give yourself a vine
- Make sure you are in survival mode (in creative the ghost item will behave like a regular item)
→ You now have a ghost vine in your inventory