paper uses the same id
instead of having you supply it or making it random
Posted by: thatonewizard from the skUnity Discord.
instead of having you supply it or making it random
Posted by: thatonewizard from the skUnity Discord.
Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!
Now, what are you waiting for? Join the community now!
function breakAnimation(block: block, stage: number, recivers: players):
set {_stage} to (round down {_stage}) ? 0
{_stage} is between -2 and 9
set {_packet} to new play_server_block_break_animation packet
set field 0 of {_packet} to {blockEntityID.%{_block}%}
set field 1 of {_packet} to {_block}
set field 2 of {_packet} to {_stage}
send {_receivers::*} packet {_packet} without calling event
on right click on jungle wood planks:
loop 9 times:
breakAnimation(clicked block, loop-number, all players)
send all players packet {_packet} without calling event
function breakAnimation(block: block, stage: number, recivers: players):
set {_stage} to (round down {_stage}) ? 0
{_stage} is between -2 and 9
set {_packet} to new play_server_block_break_animation packet
set field 0 of {_packet} to location of {_block}
set field 1 of {_packet} to {_block}
set field 2 of {_packet} to {_stage}
send all players packet {_packet} without calling event
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}
set {_block} to block at block below {_pos}
loop 9 times:
breakAnimation({_block}, loop-number, all players)
make 10 of block particle using sand at location of block at block below {_pos}
wait 2 ticks