Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-257436

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.2
    • None
    • Unconfirmed
    • (Unassigned)

      [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}"
            }
          }
        }
      }

            Unassigned Unassigned
            SilicatYT SilicatYT
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: