Help with 3x3 Pickaxe please...

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

  • LOOKING FOR A VERSION OF SKRIPT?

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

PitGamer1909

Member
Oct 31, 2025
1
0
1
So yeah so i a just casually tryna write a code for an pickaxe to break 3x3 block when i mine but it doesn't function all.
I have on my plugins:
skript,
skbee and skquery

Here is my code:
Code:
command /ultra3x3:
    permission: ultra3x3.use
    trigger:
        give player netherite pickaxe named "&6&lUltra 3x3" with lore "&4&lRuby Killa I"

# Block-Break Event
on mine:
    if lore of player's tool is "&4&lRuby Killa I":
        set {_1} to location of event-block
        set {_2} to location of event-block
        if player's pitch is between -50 and 50:
            add 1 to y-coordinate of {_1}
            subtract 1 from y-coordinate of {_2}
            if player's horizontal facing is west or east:
                add 1 to z-coordinate of {_1}
                subtract 1 from z-coordinate of {_2}
                loop blocks within {_1} to {_2}:
                    if loop-block is not air:
                        loop-block.break naturally with player's tool
            else if player's horizontal facing is north or south:
                add 1 to x-coordinate of {_1}
                subtract 1 from x-coordinate of {_2}
                loop blocks within {_1} to {_2}:
                    if loop-block is not air:
                        loop-block.break naturally with player's tool
        else:
            add 1 to x-coordinate of {_1}
            add 1 to z-coordinate of {_1}
            subtract 1 from x-coordinate of {_2}
            subtract 1 from z-coordinate of {_2}
            loop blocks within {_1} to {_2}:
                if loop-block is not air:
                    loop-block.break naturally with player's tool
 
Hello, i don't tested, but can be problems:

if lore of player's tool is "&4&lRuby Killa I": - Try "contain"
I debug with code like this:
Code:
on mine:
    send lore of player's tool to player
You can understand if lore it's just "&4&lRuby Killa I", or contain another characters, just another space can make your script not work.