Discord Thread Show block break damage!

  • 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!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.
code_language.skript:
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 -2
        wait 1 tick
        send all players packet {_packet} without calling event

Posted by: bloch3930 from the skUnity Discord.
 
Status
Not open for further replies.