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

OnGround NBT tag is not set to 1/true for a tick when spawning entities on the ground

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w09a, 24w10a, 24w11a
    • None
    • Community Consensus
    • (Unassigned)

      When an entity spawns directly on the ground, the "OnGround" NBT tag isn't set to true for a brief moment. Consequently, entities like parrots and chickens briefly flap their wings upon spawning, and mobs that are immediately damaged after spawning won't experience vertical knockback. To test the knockback issue, you can utilize the command

      execute as @p run damage @e[type=!minecraft:player,sort=nearest,limit=1] 1 minecraft:player_attack by @s

      in a repeating command block, although it's possible to reproduce the issue without this command. This behavior is related to MC-190551.

            Unassigned Unassigned
            NoUser No User
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: