How to break blocks below player in a 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 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!

Status
Not open for further replies.

JakeIsNugget

New Member
Sep 13, 2020
8
1
3
23
So I'm making a script where blocks will be set to air below the player for a challenge.
I've got this part figured out, but if the player stands on the edge of a block it won't disappear, just the one next to it, and I'm looking for a solution

Code:
every 0.15 seconds in "SkriptTest":
    loop all players:
        if loop-player is alive:
            set the block below loop-player to air

All of the ones the player touches with their feet I want to be air
I realize now I picked the wrong title sorry bout that
 
Last edited:
So I'm making a script where blocks will be set to air below the player for a challenge.
I've got this part figured out, but if the player stands on the edge of a block it won't disappear, just the one next to it, and I'm looking for a solution

Code:
every 0.15 seconds in "SkriptTest":
    loop all players:
        if loop-player is alive:
            set the block below loop-player to air

All of the ones the player touches with their feet I want to be air
I realize now I picked the wrong title sorry bout that
Code:
every 0.5 seconds in "SkriptTest":
    loop all players:
        set {_loop-player} to loop-player
        if {_loop-player} is alive:
            set {_b.%{_loop-player}%} to block below {_loop-player}
            if {_b.%{_loop-player}%} != air:
                set {_lb.%{_loop-player}%} to {_b.%{_loop-player}%}'s location
                set block at {_lb.%{_loop-player}%} to air
 
instead of using the same command for every type of hostile mob, you could use tags to make the selection process a little easier:

/scoreboard players tag @e[type=Creeper] add Hostile
WTFFFFFFFFFFFF??????? wrong thread
 
Status
Not open for further replies.