mining skript

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

    Now, what are you waiting for? Join the community now!

Nycolas Lima

Member
Sep 15, 2020
1
0
1
34
hi, i'm wanting to create a script for when the player breaks a block all the stone blocks that are in the coordinate he broke are broken too, and that he sends a message of how many blocks were broken in the chat, can someone help me?
 
Im not sure I understand what you mean by "all the stone blocks that are in the coordinate he broke are broken too"

do you mean that if you break a stone block it logs that block and when you break other stone blocks it breaks that block along with the block you just broke?
 
Each block has own coordinate. Do you mean break blocks 3x3 and log all blocks broken ?
 
Code:
on block break:
    loop blocks in radius 2 of event-block:
        add loop-block to {_blocks.%player%::*}
        loop {_blocks.%player%::*}:
            drop loop-value
            set loop-block to air
            send "%{_blocks.%player%::*} parsed as number" to player