#(misquoth) can you adjust the pitch of a placed playerhead, or just the direction

53 messages · Page 1 of 1 (latest)

gray nacelle
#

I can use

  • adjustblock <player.cursor_on> direction:<[value]>
    for the rotation, but didn't know if I could rotate pitch as well

I suppose I could play around with a head on an invisible npc armor stand.

goal: I'm looking to see how I can rotate an object in various ways for cool looking effects.

trim basinBOT
#

(misquoth) can you adjust the pitch of a placed playerhead, or just the direction

trim basinBOT
#

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.

iron stirrup
#

Instead of a player_head block, you could have a display entity

#

which isn't bound to the rotation

#

and blockiness

gray nacelle
#

that sounds cool, I'm not sure I follow though... display entity-> display item?

lament rover
#

display entity is like the parent name for everything "display"; item displays, block displays, and text displays fall under this parent name

gray nacelle
#

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?

iron stirrup
#

change pitch/yaw

#

or if you want it always look at a player you can do this too

gray nacelle
#

adjustblock? I've tried several things without any success.

iron stirrup
#

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

ripe adderBOT
# iron stirrup !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.

Object

EntityTag

Input

ItemTag

Tags

<EntityTag.item> If the entity is a dropped item, returns the item represented by the entity. If t...

iron stirrup
#

!c spawn

ripe adderBOT
# iron stirrup !c spawn
Group

entity

Syntax

spawn [<entity>|...] (<location>) (target:<entity>) (persistent) (reason:<reason>)

Short Description

Spawns a list of entities at a certain location.

Description

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...

iron stirrup
#

can specify pitch/yaw on spawning

#
  • spawn item_display[item=stone] <player.location.with_pitch[45]>
gray nacelle
#

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?

gray nacelle
#

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

onyx gorgeBOT
gray nacelle
gray nacelle
#

I'm assuming there's no way to change that?

iron stirrup
#

!m entity.left_rotation

ripe adderBOT
# iron stirrup !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.

Group

Properties

Object

EntityTag

Input

QuaternionTag

Tags

<EntityTag.left_rotation> (Property) A display entity's "left" rotation. Note that <@link mechanis...

gray nacelle
#

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

topaz wharf
#

#denizen-contrib message quotes™️

iron stirrup
#

they turn things SCgrin

gray nacelle
#

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

iron stirrup
#

quaternions

#

use quaternions and the mech

#

oh, seems like player heads are different?

topaz wharf
#

!m transform

ripe adderBOT
# topaz wharf !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.

Group

Properties

Object

EntityTag

Input

ElementTag

Tags

<EntityTag.display> (Property) For an item display entity this is the model transform it will disp...

topaz wharf
#

Might be the model transform thingy there?

iron stirrup
#

Oh yeah, @gray nacelle set ^ to FIXED

wispy capeBOT
#
Thread Closing Reminder

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