-
Bug
-
Resolution: Unresolved
-
None
-
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, 1.20.1, 23w40a, 1.20.4, 1.20.6
-
None
-
Confirmed
-
Advancements, Commands, Data Packs, Networking
-
Normal
-
Platform
The bug
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.
How to reproduce
- 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
- is duplicated by
-
MC-118841 Changing inventory with an inventory_changed advancement function reward doesn't update client
- Resolved
-
MC-135205 A function with a clear command used by advancements creates ghost items.
- Resolved
-
MC-197012 clearing an item from an advancement reward function doesn't remove it
- Resolved
-
MC-209714 Advancement reward function creates ghost item
- Resolved
-
MC-218118 Inventory desync when giving rewards from advancements.
- Resolved
-
MC-263734 An inventory_changed advancement clearing a mouse held item in creative creates a ghost item
- Resolved
- relates to
-
MC-146043 Inventory and /give bad syncing
- Resolved