#Why is the rotation of wandering traders only updated when they move?

1 messages · Page 1 of 1 (latest)

ruby hollowBOT
#

I'm moving an armor stand by constantly teleporting it to a tagged wandering trader but the rotation is not updating unless the position of the wandering trader also changes. After some debugging I found out that the Rotation data value only changes when the mob moves around. Is there a reason for this or am I missing something?

data get entity @e[type=minecraft:wandering_trader,limit=1] Rotation

I'm using this command to move the armor stand around

execute \
    at @e[tag=TAG_LEADER] \
    as @e[tag=TAG_FOLLOWER] \
    if score @s LINK_ID = @e[tag=TAG_LEADER,sort=nearest,limit=1] LINK_ID \
    run tp @s ~ ~ ~ ~ ~
steel spadeBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1735918396:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

wheat birch
scarlet trench
#

That behavior is true of most entities, I believe

#

You need to somehow update them for the Rotation NBT to visually update. Lots of types of changes will proc an update. I think a common one is enabling and then disabling gravity, but teleporting (or probably the new rotate command) works too

wheat birch
#

will enabling/disabling gravity in the same tick mess things up while it's jumping/falling?

scarlet trench
#

Possibly, I'm not sure

wheat birch
#

toggling the rotation prevents it from looking around it seems 🤔

#

still moves around fine

#

I guess I'll randomly make it look at the player some other way then

#

thanks for the help!