mojira.dev
MC-300341

Mobs' visual rotation will desync from actual rotation randomly, when attacked, or when collided with during a rotation

Steps to reproduce:
You will need to create a little track for the husk to travel along first. Grab a repeating command block and a chain command block.

Husk Summon Command:

/execute align xyz positioned ~0.5 ~ ~0.5 run summon minecraft:husk ~ ~ ~ {NoAI:1b,Rotation:[0.0f,0.0f]}

(make sure it's facing the correct direction to start looping in your ring)


Repeating Command Block:

execute as @n[type=minecraft:husk] at @s positioned ^ ^-1 ^0.5 if block ~ ~ ~ minecraft:magenta_glazed_terracotta rotated ~-90 ~ run rotate @s ~ ~

(I used glazed magenta terracotta for the arrow on it, any block will work)

Chain Command Block:

execute as @n[type=minecraft:husk] at @s run tp @s ^ ^ ^0.09


Mob Collision for Corners: (players work as well)

/execute align xyz positioned ~0.5 ~ ~0.5 run summon minecraft:frog ~ ~ ~ {NoAI:1b}

(summon the frogs on the corners before the block that tells the husk to turn, any mob with collision would work, including players)

It should be fairly intuitive on how to set it up based on the video provided.

Expected Result:
The mob that is moving should have their torso/body rotation match with the Rotation inside their entity data when rotated.

Actual Result:
The mob that is moving has a visual desync of their torso/body with the actual Rotation located in their entity data when rotated.

Attachments

Comments 1

Note:
This bug exists starting in 1.21.5 up to and including the latest version and latest snapshot. 1.21.4 does not have this issue.

SmartyAlek

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8, 25w31a

Retrieved