-
Bug
-
Resolution: Cannot Reproduce
-
None
-
1.17, 1.17.1 Pre-release 1, 1.17.1, 1.19.4, 1.20 Pre-release 5, 23w51b
-
None
-
Confirmed
-
Commands, Data Packs
The bug
If you drop an item, the predicate will still say you are holding that item, even if there is nothing in your hand. Opening your inventory and clicking on the slot where the item used to be will update it and the using the predicate will result in the correct outcome.
Did not happen in 1.16.5
How to reproduce
- Create a predicate as follows:
{ "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "mainhand": { "nbt": "{Cap:1b}" } } } }
- Give yourself a shield with the tag Cap:1b,
/give @s shield{Cap:1b}
- Drop the item
- Test the predicate
execute if predicate ...
- It will result in "Test Passed"
- Go into your inventory and click on your empty selected item slot, then testing the predicate again will result in "Test Failed"
- is duplicated by
-
MC-232744 The predicate entity_properties.equipment ignores "items" if one drop the item on the slot
- Resolved
-
MC-252484 player_hurt_entity advancement detects "ghost NBT" in empty hotbar slots
- Resolved
-
MC-257436 Predicate result doesn't update, always returns "True"
- Resolved
-
MC-267816 Use predicate to check NBT of the item. Throw the item but the result of predicate remain no change.
- Resolved
- relates to
-
MC-229983 /clear command doesn't clear certain stacks after dropping items from them
- Resolved