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 Set block

Discussion in 'Skript' started by SniperFox, Jul 16, 2018.

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

    SniperFox Member

    Joined:
    May 31, 2017
    Messages:
    29
    Likes Received:
    0
    Code (Skript):
    1. loop all blocks in radius 5 around {_plotloc}:
    2.     set {_block} to loop-block      
    3.     set {_blockloc} to location of loop-block      
    4.     if {_block} is stone slab:      
    5.         set block {_blockloc} to magma block
    Can someone help me with this?

    Here's the error:
    Code (Skript):
    1. [13:43:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (System.sk, line 485: set block {_blockloc} to magma block')
     
  2. Best Answer:
    Post #2 by Mr_Simba, Jul 16, 2018
  3. Mr_Simba

    Mr_Simba King of the Pridelands
    Moderator Supporter

    Joined:
    Dec 9, 2016
    Messages:
    257
    Likes Received:
    55
    Medals:
    set loop-block, not set block
     
  4. SniperFox

    SniperFox Member

    Joined:
    May 31, 2017
    Messages:
    29
    Likes Received:
    0
    OH, sorry, now it works, thanks a lot. (I'm just a little idiot: \)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...