code_language.skript:
function rotateArmorStand(armorStand: object):
set {_l} to location of {_armorStand}
set {_l1} to {_armorStand}
if {_l1}'s chestplate is air:
stop
set {_pos} to location in front of {_l}
loop 10 times:
make all players see damage of block at block below {_pos} as (loop-number/10)
make 10 of block particle using sand at location of block at block below {_pos}
wait 2 ticks
play sound "dig.sand" at block at block below {_pos}
if block at block below {_pos} is air:
stop
set block at block below {_pos} to bedrock
if {_l1}'s chestplate is leather tunic:
add 1 to {armorstand::%uuid of {_l1}%}
if {_l1}'s chestplate is chainmail chestpiece:
add 3 to {armorstand::%uuid of {_l1}%}
if {_l1}'s chestplate is iron chestplate:
add 9 to {armorstand::%uuid of {_l1}%}
if {_l1}'s chestplate is diamond chestplate:
add 18 to {armorstand::%uuid of {_l1}%}
set {_} to {_l}
set yaw of {_} to ({_l1}'s yaw - 45)
teleport {_l1} to {_}
wait 9 seconds
if block at block below {_pos} is air:
stop
set block at block below {_pos} to sand
Can somebody help me, who does it do this?
Posted by: bloch3930 from the skUnity Discord. View the thread on skUnity Discord here