Oh he changed it to location
ig u could make it random number
Posted by: unjoinable from the skUnity Discord.
ig u could make it random number
Posted by: unjoinable 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 random integer between 0 to 9999999
set field 1 of {_packet} to {_block}
set field 2 of {_packet} to {_stage}
send all players packet {_packet} without calling event
{_stage} = 9:
set {_stage} to -1
set field 2 of {_packet} to {_stage}
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 random integer between 0 to 9999999
set field 1 of {_packet} to {_block}
set field 2 of {_packet} to {_stage}
send all players packet {_packet} without calling event
broadcast "%{_stage}%"
{_stage} = 9:
broadcast "hejsa"
set {_stage} to 0
set field 2 of {_packet} to {_stage}
if {_block} is air:
stop
set block at {_block} to bedrock
set {_packet2} to new play_server_block_break_animation packet
set field 1 of {_packet2} to {_block}
set field 2 of {_packet2} to {_stage}
send all players packet {_packet2} without calling event