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

Teleporting an entity makes the "is_on_ground" flag in predicates always return true for that tick

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.21.1, 24w37a
    • None
    • Confirmed
    • (Unassigned)

      Steps to reproduce :
      -Place a repeating command block with the following command :

      execute as @p at @s if predicate {"condition": "minecraft:entity_properties","entity": "this","predicate": {"flags": {"is_on_ground": true}}} run say On Ground

      -Spam the following command in chat a few times while flying in either creative or spectator  mode :

      tp @s ~ ~ ~

      Observed Behavior :
      The "is_on_ground" flag sometimes returns true depending on when in the tick, you run the tp command in chat.

      Expected Behavior :
      The predicate won't return true if the player wasn't on ground before and after getting teleported

            Unassigned Unassigned
            nedraw nedraw
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: