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

"is_on_ground" predicate flag randomly fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 24w18a
    • None
    • Windows 10, 64-Bit OS, 16GB Ram (2GB Allocated), Java 19.0.2
    • Unconfirmed
    • (Unassigned)

      The predicate flag for condition checks, "is_on_ground", seems to randomly fail. This also extends to the NBT tag "

      {OnGround:1b}

      ".

      The best method for seeing this is to setup a looping function with an execute command using a predicate check. Within the predicate being checked, a condition check is being made with the "entity_properties" condition checking the flag, "is_on_ground" set to "true".

      Looping function;

      execute as @a if predicate example:on_ground run say On Ground!
      execute as @a unless predicate example:on_ground run say Off Ground!
      

      Predicate ("example:on_ground");

      {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
          "flags": {
            "is_on_ground": true
          }
        }
      }
      

      The expected behavior is that, when the player is on the ground, the message "On Ground!" is sent every tick.

      What actually happens is that, periodically, the check will fail despite meeting the criteria, injecting the occasional message, "Off Ground!".

            Unassigned Unassigned
            Donisi Donisi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: