Solved Auto Resetting Arena

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

Instanity

Member
May 31, 2017
17
0
0
23
I want to make a system kinda like Badlion Arena, whenever a game ends it would remove all the blocks. How in hell do I do this?!

Help is welcomed :emoji_slight_smile::emoji_stuck_out_tongue_closed_eyes:
 
Last edited:
Add the location of places blocks into a variable list.
At the restarting just loop that variable list and set the block at loop-location to air.
 
code_language.skript:
on place:
    set {Arena::%Location of event-block%} to block-type

command /loop:
    trigger:
        loop {Arena::*}
            set block at loop-index to loop-value
I get 2 errors -.-

'block-type' is not an entity type (Arena.sk, line 667: set {Arena::%Location of event-block%} to block-type')
[10:51:21 ERROR]: 'block' is not a text (Arena.sk, line 672: set block at loop-index to loop-value')
 
code_language.skript:
on place:
    add location of event-block to {locations::*}
    
command /regen:
    trigger:
        loop {locations::*}:
            set block at loop-value to air
 
Here you go!
It's not too difficult to understand.

You just add locations of placed blocks into a variable list.
The command just loop those locations and set the block to air.
 
  • Like
Reactions: Instanity
Status
Not open for further replies.