1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Auto Resetting Arena

Discussion in 'Skript' started by Instanity, Jul 23, 2017.

Thread Status:
Not open for further replies.
  1. Instanity

    Instanity Member

    Joined:
    May 31, 2017
    Messages:
    17
    Likes Received:
    0
    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:


     
    #1 Instanity, Jul 23, 2017
    Last edited: Jul 23, 2017
  2. Best Answer:
    Post #10 by ShaneBee, Jul 24, 2017
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    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.
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Can you show me an example code?
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Code (Skript):
    1. on place:
    2.     set {Arena::%Location of event-block%} to block-type
    3.  
    4. command /loop:
    5.     trigger:
    6.         loop {Arena::*}
    7.             set block at loop-index to loop-value
    8.  
     
    • Like Like x 1
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Thanks
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Couldn't of asked for a more inefficient system if i tried, thanks :emoji_slight_smile:
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    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')
     
  9. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Use: type of event-block & location of loop-block
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Not working.
    I don't wanna sound rude, but can you send a code that you tested and is work?
     
  11. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Code (Skript):
    1. on place:
    2.     add location of event-block to {locations::*}
    3.    
    4. command /regen:
    5.     trigger:
    6.         loop {locations::*}:
    7.             set block at loop-value to air
     
  12. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Thanks!!!!! I'm now gonna try to understand it, Probably not gonna go well xD
     
  13. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    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 Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...