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.

skUnity Discord

Site Manager
Aug 5, 2023
12,749
1
0
The skUnity Discord
discord.gg
code_language.skript:
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}
    loop 10 times:
        make all players see damage of block at block below {_pos} as (loop-number/10)
        make 10 of block particle using sand at location of block at block below {_pos}
        wait 2 ticks
    play sound "dig.sand" at block at block below {_pos}
    if block at block below {_pos} is air:
        stop
    set block at block below {_pos} to bedrock
    if {_l1}'s chestplate is leather tunic:
        add 1 to {armorstand::%uuid of {_l1}%}
    if {_l1}'s chestplate is chainmail chestpiece:
        add 3 to {armorstand::%uuid of {_l1}%}
    if {_l1}'s chestplate is iron chestplate:
        add 9 to {armorstand::%uuid of {_l1}%}
    if {_l1}'s chestplate is diamond chestplate:
        add 18 to {armorstand::%uuid of {_l1}%}
    set {_} to {_l}
    set yaw of {_} to ({_l1}'s yaw - 45)
    teleport {_l1} to {_}
    wait 9 seconds
    if block at block below {_pos} is air:
        stop
    set block at block below {_pos} to sand
https://gyazo.com/52cae61c60a4d1664d28f58953a04662
Can somebody help me, who does it do this?

Posted by: bloch3930 from the skUnity Discord. View the thread on skUnity Discord here
 
that just shows every packet and the fields for them, ull need an addon like reflect or skriptpacket to actually build and send the packet
if you want the easier way it would be to use skriptpacket
https://docs.skunity.com/syntax/search/id:6078
https://docs.skunity.com/syntax/search/id:5343
https://docs.skunity.com/syntax/search/id:5337
and the packet name ull need can be found at <https://github.com/dmulloy2/Protoco.../java/com/comphenix/protocol/PacketType.java>
you just need to cross reference the packet id from wiki.vg

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