Can't make the block destroy stage reset

  • Welcome to skUnity!

    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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Bloch12345

Member
Jul 11, 2023
1
0
1
on right click on granite:
loop 9 times:
breakAnimation(event-block, loop-number, all players)
wait 2 ticks
set {_packet} to new play_server_block_break_animation packet
set {_number} to random integer between 0 to 9999999
set field 0 of {_packet} to {_number}
set field 1 of {_packet} to {_block}
set field 2 of {_packet} to -1
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 {_number} to random integer between 0 to 9999999
set field 0 of {_packet} to {_number}
set field 1 of {_packet} to {_block}
set field 2 of {_packet} to {_stage}
send all players packet {_packet} without calling event
in field 2 i have tried everything from -2 to 0
the block updtaes after 10 seconds or so
 

Attachments

  • 2023-07-11_18.23.52.png
    2023-07-11_18.23.52.png
    109.8 KB · Views: 188