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.

My Generator Skript Stopped Working?

Discussion in 'Skript' started by ReaperProgrammer, Jan 13, 2021.

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

    Joined:
    Jan 13, 2021
    Messages:
    3
    Likes Received:
    0
    I've made this skript work before but when I tested this morning it didn't? Does anyone see anything that could help?

    Code (Text):
    1. variables:
    2.    {_block1} = black glazed terracotta
    3.    {_block2} = white glazed terracotta
    4.    {_block3} = blue glazed terracotta
    5.    {_range} = 20
    6.  
    7. #COAL GEN
    8. every 5 seconds:
    9.     loop all players:
    10.         loop all blocks in radius {_range} around loop-player:
    11.             if loop-block is {_block1}:
    12.                 drop a coal at loop-block's position
    13.  
    14. #IRON GEN
    15. every 5 seconds:
    16.     loop all players:
    17.         loop all blocks in radius {_range} around loop-player:
    18.             if loop-block is {_block2}:
    19.                 drop a iron ingot at loop-block's position
    20.  
    21.  
    22. #DIAMOND GEN
    23. every 5 seconds:
    24.     loop all players:
    25.         loop all blocks in radius {_range} around loop-player:
    26.             if loop-block is {_block3}:
    27.                 drop a diamond at loop-block's position
    28.  
    29.  
    30. on first join:
    31.     set join message to "Welcome %player% to Darkminey!"
    32. on join:
    33.     player has played before
    34.     set join message to "Welcome back, %player%!"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...