mojira.dev
MC-258864

Minecarts and boats visually stutter when rotating across 0 degree yaw

Minecarts and boats (along with their variant entity types) briefly visually stutter when crossing over a 0 degree yaw rotation while being rotated horizontally via commands (either counterclockwise or clockwise). This presumably has to do with how Minecraft handles rotation wrapping. This does not affect any other entities in my current testing.

Example commands to reproduce (note that the same behavior occurs when writing to Rotation[0] via /data or /execute store result|success entity):

# Happens clockwise
execute as @e[type=minecart] at @s run tp @s ~ ~ ~ ~5 ~

# Happens counterclockwise
execute as @e[type=boat] at @s run tp @s ~ ~ ~ ~-5 ~

# Happens when the entity has a different pitch rotation (not exclusive to 0 0 line)
summon chest_boat ~ ~ ~ {Type:"oak",Rotation:[0F,60F]}
execute as @e[type=chest_boat] at @s run tp @s ~ ~ ~ ~5 ~

# Does not affect other mobs, e.g. cows
execute as @e[type=cow] at @s run tp @s ~ ~ ~ ~5 ~

Possibly relates to MC-120545.

Attachments

Comments

Brain81505

I can confirm this issue.

Evtema3

(Unassigned)

Confirmed

Platform

Normal

Commands, Entities

boat, commands, minecart, nbt, rotation

1.19.3, 23w03a, 23w04a, 23w05a, 23w06a, ..., 23w14a, 23w17a, 1.20, 1.20.4, 1.21

Retrieved