Spreading not working

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

Asobu

Member
Mar 17, 2023
1
0
1
25
Hello, this skript is supposed to spread the block (purple concrete) but instead when i place it, nothing starts to spread ( i used the command /spread start ) ( if you dont understand what i mean, when the block is placed, it should start slowly taking over other blocks near it )


  1. Code:
    on place of purple concrete:
      if {dospread} is 1:
        set {blocklocation} to event-block's location
        loop {looploop} times:
          add 1 to {looploop}
          add 1 to {blockspread}
          loop all blocks in radius {blockspread} of event-block:
            if loop-block is not air:
              set loop-block to purple concrete
     
    on script load:
      set {looploop} to 2
      set {blockspread} to 5
     
    command /spread [<text>]:
      permission: skunity.ontop
      trigger:
        if arg-1 is "stop":
          set {dospread} to 0
        else:
          if arg-1 is "start":
            set {dospread} to 1
 
Last edited:
Status
Not open for further replies.