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

Player's OnGround tag doesn't update when riding a vehicle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.21.2 Pre-Release 3, 1.21.2 Pre-Release 5
    • None
    • Confirmed
    • Player
    • Normal
    • Platform

      When riding a vehicle, the OnGround tag doesn't update.

      How to reproduce:

      1. Summon a pig and place a saddle on it.
      2. While flying in the air, execute the following command:
        /data get entity @s OnGround

        The tag is set to false (0b).

      3. Ride the pig without touching the ground.
      4. Execute the command from step 2 again.
        The tag is set to false (0b).
      5. Dismount the pig.
      6. While on the ground, execute the command from step 2 again.
        The tag is set to true (1b).
      7. Ride the pig again.
      8. Execute the command from step 2 again.
        The tag is set to true (1b).

      Expected result:

      The OnGround tag would always be false while riding an entity, like in previous versions.

      Observed result:

      The OnGround tag keeps its value from before riding an entity, which sometimes makes it inaccurate.

            Unassigned Unassigned
            100percentme Percy
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: