mojira.dev
MC-257436

Predicate result doesn't update, always returns "True"

[The issue might also happen with other predicates]

If you have a Datapack Predicate that uses "Entity Properties" to detect whether or not you are holding a certain item in your hand, it returns "True" if you're holding the item and "False" if you're not holding the item. However, if you hold the item and then drop it, the predicate will return "True" every time you have the Hotbar Slot selected that the item was previously in. This gets fixed as soon as this exact Hotbar Slot gets updated by putting an item in it.

EXAMPLE: https://twitter.com/SilicatYT/status/1590741001349791744

PREDICATE USED:

{
  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
    "equipment": {
      "mainhand": {
        "nbt": "{Menu:1b}"
      }
    }
  }
}

Comments 1

SilicatYT

(Unassigned)

Unconfirmed

(Unassigned)

1.19.2

Retrieved