Replace all glass around player with air, then undo

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

Status
Not open for further replies.

GamingGeek

Supporter
Aug 1, 2017
46
0
0
I'm trying to replace all the glass in a certain radius around a loop-player to air so they get released from the cage, then undo it so the glass is back for when they respawn in the cage. I've only been able to get it to replace the blocks one by one...
IMAGE:
upload_2018-3-29_16-18-58.png


This is what I have....
code_language.skript:
                loop blocks in radius 10 around loop-player:
                    if loop-block is glass:
                        set loop-blocks to air
                        wait 2 seconds
                        set loop-blocks to glass
 
code_language.skript:
                loop blocks in radius 10 around loop-player:
                    loop-block is glass
                    add loop-block to {_list::*}
                loop {_list::*}:
                    set loop-value to air
                wait 2 seconds
                loop {_list::*}:
                    set loop-value to glass
 
Status
Not open for further replies.