#block display anchor point?

1 messages · Page 1 of 1 (latest)

ripe field
#

yo so i wanna make this sort of paintball gun thing, using block displays.
when i run the following code, it spawns the block display on its corner.
is it possible to make its anchor point be in its center somehow?

    if player's tool's name is "&6&lPaintball Gun":
        make player swing their hand
        set {_v} to vector from yaw player's yaw and pitch player's pitch
        set standard length of {_v} to 1
        spawn block display at player's head ~ {_v}:
            set {_display} to entity
            set (display item of {_display}) to red concrete
            set (display scale of {_display}) to vector(0.5,0.5,0.5)```
quiet lagoon
#

move it ~vector(-0.5,0,-0.5) iirc

#

(item display also works as it centers by itself but dont do that)

ripe field
#

nah cuz it doesnt spawn on the block grid

#

it spawns whichever way ur facing

quiet lagoon
#

set its yaw and pitch and fix rotation

ripe field
#

im sorry are there any good resources on display entities

#

i cant find shit on docs

zenith tinsel
#

the translation for center of a block display is negative half its scale

ripe field
zenith tinsel
#

or just use item displays

winged grove
#

Set display translation to vector(-0.25, -0.25, -0.25)