#(misquoth) can you adjust the pitch of a placed playerhead, or just the direction
53 messages · Page 1 of 1 (latest)
(misquoth) can you adjust the pitch of a placed playerhead, or just the direction
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.
Instead of a player_head block, you could have a display entity
which isn't bound to the rotation
and blockiness
that sounds cool, I'm not sure I follow though... display entity-> display item?
display entity is like the parent name for everything "display"; item displays, block displays, and text displays fall under this parent name
So I'm working with a player_head with a skin, how would I go about making this a "display" and rotating up instead/in addition to sideways?
adjustblock? I've tried several things without any success.
nooo its an entity
if you spawn an item display
do you need that in a script or what exactly?
I've made a script for Item Displays so player can spawn and edit them, so if you just want to modify them ingame you can use that
otherwise, spawn an item display with your head as item and adjust its location pitch/yaw
!m entity.item
If the entity is a dropped item, sets the item represented by the entity.
If the entity is a trident, sets the trident item represented by the entity.
If the item is a throwable projectile, sets the display item for that projectile.
If the entity is an eye-of-ender, sets the item to be displayed and dropped by it.
If the entity is a fireball, sets the fireball's display item.
If the entity is an Item Display, sets the entity's display item.
EntityTag
ItemTag
<EntityTag.item> If the entity is a dropped item, returns the item represented by the entity. If t...
!c spawn
entity
spawn [<entity>|...] (<location>) (target:<entity>) (persistent) (reason:<reason>)
Spawns a list of entities at a certain location.
Spawn an entity or list of entities at the specified location.
Accepts the 'target:<entity>' argument which will cause all spawned entities to follow and attack the targeted entity.
If the persistent argument is present, the entity will not despawn when no players are within range, causing the entity to remain until killed.
Optionally specify 'reason:<reason>' (Paper only) to specify the reason an entity is spawning for the 'entity spawns' event,
using any reason from <@link url https://hub.s...
can specify pitch/yaw on spawning
- spawn item_display[item=stone] <player.location.with_pitch[45]>
ok, I'll try that- and to rotate pitch / yaw after spawning? adjust?
what's the best way to rmemeber this entity for removal later? it's not notable, right? toss it in a flag somewhere?
ok, I think I've got farther here, but it looks like the rotation point for yaw is the center, but when I rotate pitch it rotating by the edge
I'm assuming there's no way to change that?
can make use of quaternions
!m entity.left_rotation
(Property) A display entity's "left" rotation.
Note that !mechanism EntityTag.right_rotation is also available, but should normally use this instead.
Properties
EntityTag
QuaternionTag
<EntityTag.left_rotation> (Property) A display entity's "left" rotation. Note that <@link mechanis...
toss it in a flag yeah
rotate works great, it's the pitch that's wonky.
oh man
I've been meaning to ask about Quaternions.... I've tried to read about them and my brain just falls out my ear, I think I just need some example uses or a low down on what they are/do
#denizen-contrib message quotes™️
they turn things 
hm. I'll have to play with some.
My only remaining question is about the above pitch issue rotating on the top of the block instead of the center
I'm thinking that might just be the way it be
quaternions
use quaternions and the mech
oh, seems like player heads are different?
!m transform
(Property) For an item display entity this is the model transform it will display, can be any of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/ItemDisplay.ItemDisplayTransform.html.
For a text display entity this is its text alignment, can be any of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/TextDisplay.html.
Properties
EntityTag
ElementTag
<EntityTag.display> (Property) For an item display entity this is the model transform it will disp...
Might be the model transform thingy there?
Oh yeah, @gray nacelle set ^ to FIXED
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.)
@gray nacelle