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%!"