#(JustinS) rotation of item display
27 messages · Page 1 of 1 (latest)
(JustinS) rotation of item display
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
I know about left_rotation, but it inputs a quaterniontag which I'm not sure how to calculate here. And that's also rotation on only 1 axis
any smart ass that knows this stuff?
So you want item_display A look at the location B?
@karmic fiber what does "I want the item display to align with the vector between those 2 coordinates." mean?
That means you want the text of an ItemDisplay to be rotated so that it points in the direction between two coordinates. It's like drawing an arrow from one point to another with text on it.
To do this, you'd use the vector argument of ItemDisplay, passing in a Vector3DTag with the two coordinates as its start and end points
yes, monke has the right idea
Only yaw? or exact pointing?
entity
look (<entity>|...) [<location>/cancel/yaw:<yaw> pitch:<pitch>] (duration:<duration>) (offthread_repeat:<#>)
Causes the NPC or other entity to look at a target location.
Makes the entity look towards the location.
You can specify either a target location, or a yaw and pitch.
Can be used on players.
If a duration is set, the entity cannot look away from the location until the duration has expired.
Use the cancel argument to end the duration earlier.
Optionally, you can use the "offthread_repeat:" option alongside "yaw:" and "pitch:"
to cause a player's rotation to be smoothed out with a specified number of extra async rotation packets within a single tick.
Does look command works for you?
no it's for all entities
👍 then Ill try
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@fair cloak
No response to request to close thread after 3 days. Automatically closing.
yess that worked
Thread was manually reopened by @fair cloak.