i have problem with skript 3x3 block radius

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

agakcw

New Member
Oct 19, 2023
9
0
1
Hello i have a problem with this skript, so this is all going smoothly but I want to ask for help to change it a little, so this script can destroy the surrounding blocks with a 3x3 block radius but can also destroy the bedrock, so I want to ask how the surrounding blocks such as the bedrock are not also destroyed?

on break of stone or deepslate or netherrack:
if name of player's tool is "&eAstral Pickaxe":
loop blocks in radius 2 around the targeted block:
give loop-block to player
set loop-block to air
 
Just add the condition that the loop-block cant be bedrock and done, in your case:
Code:
on break of stone or deepslate or netherrack:
    if name of player's tool is "&eAstral Pickaxe":
        loop blocks in radius 2 around the targeted block:
            if loop-block is not bedrock:
                give loop-block to player
                set loop-block to air
 
i still got bedrock
1697732236418.png
 
Its working for me, so probably some settings in itemsadder or smth like that, mby some other skript?