Predicate still passes for certain stacks even after dropping them
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"
2021-06-22, 01:23 AM
2024-10-10, 06:25 AM
2024-10-10, 06:25 AM
12
11
-