My Skript has error and I'm new on 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!

  • LOOKING FOR A VERSION OF SKRIPT?

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

Try this
AppleScript:
on break:
    player's tool is a netherite pickaxe
    player has permission "drill.pickaxe"
    add block 1 left and block 1 right and block 1 above and block 1 below event-block to {_blocks::*}
    set {_top} to block above event-block
    add block 1 right and block 1 left of {_top} to {_blocks::*}
    set {_bot} to block below event-block
    add block 1 left and block 1 right of {_bot} to {_blocks::*}
    loop blocks at {_blocks::*}:
        loop-block is not bedrock or end portal frame
        drop drops of loop-block at event-location
        set loop-block to air
ya its working but not like it intended to be, its like breaks 2x2 sometime 3x3 like that or sometimes 2x1 and not doing 3x3x3 like it intended to be