#Is there a way to get player direction as data so that I can use it in a macro, or...

1 messages · Page 1 of 1 (latest)

prisma crypt
#

...better yet is it possible to copy an entities (player) direction to another entity (armor_stand)?

narrow umbra
#

yeah, the player has a rotation array called Rotation

#

and you can grab Rotation[0] (yaw) and Rotation[1] (pitch)

kindred mango
#

what exactly is your end goal? sounds very xy problem. you can rotate an entity to the same rotation as another with something like execute rotated as [player] run rotate [armor stand] ~ ~

prisma crypt
#

yikes how did I miss that in the /data get entity @s text

#

thank you lol

prisma crypt
flint badger
#

armor stands are suboptimal for that

kindred mango
#

so yeah no need for macros or looking at data, just rotate the entity (and you should probably be using a marker rather than an armor stand)

prisma crypt
kindred mango
#

a marker is a technical entity that replaces many old technical use cases for armor stands. it stores almost no data other than it's position and any arbitrary data applied to it, so it's much more optimized for things like this

prisma crypt
kindred mango
#

mostly just optimization yes. originally they also had the unique benefit of being able to store any arbitrary data in their nbt, but that field now exists on all entities

flint badger
prisma crypt