mojira.dev
MC-306780

Entities with NoGravity/NoAI and a scale attribute greater than 1.0 descend on world reload

Summoning an entity with the NoGravity/NoAI, setting its scale attribute to a value greater than the default, and then reconnect to the world, entity will descend slightly. Repeating this process will cause it to descend until it reaches the ground.

Steps to reproduce

  1. Summon any scalable mob with NoGravity or NoAI in the air, and set its scale attribute to a value larger than 1.0. (e.g., /summon pig ~ ~10 ~ {NoGravity:true, attributes:[{id:"minecraft:scale", base:3.0f}]})

  2. Note the current Y coordinate of the entity.

  3. Save and quit the world to the main menu.

  4. Re-enter the world.

  5. Check the Y coordinate again.

Observed Results

The entity's Y coordinate is lower than before. Every time the world is reloaded, the entity sinks further down until it hits the floor.

Expected Results

The entity should remain at the exact same Y coordinate regardless of world reloads, as NoGravity/NoAI is enabled.

Attachments

Comments 2

Thank you for helping us improve Minecraft! We saved your files:

[media]

Can confirm as of 26.1-snapshot-11

durumi

(Unassigned)

Confirmed

Platform

Normal

Commands, Save Data

1.21.11, 26.1 Snapshot 11

Retrieved