My Generator Skript Stopped 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.
Jan 13, 2021
3
0
1
24
I've made this skript work before but when I tested this morning it didn't? Does anyone see anything that could help?

Code:
variables:
   {_block1} = black glazed terracotta
   {_block2} = white glazed terracotta
   {_block3} = blue glazed terracotta
   {_range} = 20

#COAL GEN
every 5 seconds:
    loop all players:
        loop all blocks in radius {_range} around loop-player:
            if loop-block is {_block1}:
                drop a coal at loop-block's position

#IRON GEN
every 5 seconds:
    loop all players:
        loop all blocks in radius {_range} around loop-player:
            if loop-block is {_block2}:
                drop a iron ingot at loop-block's position


#DIAMOND GEN
every 5 seconds:
    loop all players:
        loop all blocks in radius {_range} around loop-player:
            if loop-block is {_block3}:
                drop a diamond at loop-block's position


on first join:
    set join message to "Welcome %player% to Darkminey!"
on join:
    player has played before
    set join message to "Welcome back, %player%!"
 
Status
Not open for further replies.