Summary:
First appears in MC 1.21.6.
When the home_pos
of a leashed mob is outside of its home_radius
, it still rotates even when its NoAI
tag is set to True.
How to reproduce:
1. Summon a leashable mob (ex: pig) with NoAI set to True: /summon minecraft:pig ~ ~ ~ {NoAI:1b}
2. Attach a lead to the pig and move over five blocks away from it (the default home_radius
is 5 for pigs).
3. Keep running: /data get entity @n[type=pig] Rotation
as you move around.
→ The rotation yaw value changes. ❌
(Leave and rejoin the world to see the pigs rotation change visually. Alternatively, you can put execute as @n[type=pig] at @s run tp @s ~ ~ ~
in a repeating & always active command block to see the pig update visually without having to leave and rejoin.)
Expected results:
Prior to 1.21.6, this behavior never occurred. Mobs that have their AI disabled shouldn’t be able to rotate on their own.
Attachments
Comments 0
No comments.