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 our 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 How to place blocks on variable list's locations?

Discussion in 'Skript' started by PantherBoy, Dec 10, 2017.

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

    PantherBoy Well-Known Member

    Joined:
    Jul 20, 2017
    Messages:
    72
    Likes Received:
    0
    I did this code:
    Code (Skript):
    1.  
    2. variables:
    3.     {edit} = false
    4.    
    5. on skript start:
    6.     loop 10000 times:
    7.         wait 3600 seconds
    8.         execute command "/magusfelho"
    9.  
    10. command /magusfelho [<text>] [<int>]:
    11.     trigger:
    12.         if arg 1 is "edit":
    13.             if {edit} is false:
    14.                 set {edit} to true
    15.                 loop {magusfelhok::*}:
    16.                     replace blocks on looped-locations to air
    17.                 broadcast "Edit started"
    18.             else if {edit} is true:
    19.                 set {edit} to false
    20.                 set {magusfelhok::*} to air
    21.                 broadcast "Edit stopped"
    22.         if arg 1 is "list":
    23.             broadcast "%{magusfelhok::*}%"
    24.         if arg 1 is "del":
    25.             delete {magusfelhok::%arg 2%}
    26.             broadcast "%arg 2% item deleted from the list"
    27.        
    28. on place of bedrock:
    29.     if {edit} = true:
    30.         broadcast "Block placed"
    31.         set event-block to bedrock
    32.         add location of event-blocks to {magusfelhok::*}
    33.        
    34. on break of bedrock:
    35.     if {edit} = true:
    36.         broadcast "Block removed"
    37.         set event-block to air
    38.         remove location of event-blocks from {magusfelhok::*}
    39.  
    But I have a problem:
    "Can' understand this condition/effect: replace blocks on looped-locations to air (line:15)"
    How can I fix it?
     
  2. Donut

    Addon Developer

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    175
    Medals:
    Code (Skript):
    1. loop {magusfelhok::*}:
    2.     set block at loop-value to air
     
    • Winner Winner x 1
  3. P

    PantherBoy Well-Known Member

    Joined:
    Jul 20, 2017
    Messages:
    72
    Likes Received:
    0
Thread Status:
Not open for further replies.
Loading...