#Get Block Data

1 messages · Page 1 of 1 (latest)

raven pike
#
on right click with gray terracotta:
    cancel event
    set {test} to event-block

command testtest:
    permission: op
    trigger:
        spawn item display at player's location
        set {_data} to block data of {test}
        set {_display} to last spawned item display
        set display scale of {_display} to vector(1,1,1)
        set display item of {_display} to {test}
        set block data of {_display} to {_data}
        wait 2 seconds
        kill {_display}

What I'm trying to do is spawn a item display with the correct rotation of the stair but every time it spawns it incorrectly anyone know why

onyx stump
#

just directly set the block data

#

also its set display block data of {_display} to X

raven pike
#

I did this and it wouldnt show the block