code_language.skript:
on right click:
set {_packet} to new play_server_block_break_animation packet
set field destroy tage packet of {_packet} to 5
send all players packet {_packet}
Posted by: bloch3930 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!
on right click:
set {_packet} to new play_server_block_break_animation packet
set field destroy tage packet of {_packet} to 5
send all players packet {_packet}
function breakAnimation(block: block, stage: number, receivers: 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