options:
item: mob spawner named "&6Spawner rudy"
faze-time: 5 second
block-time: 0.1 second
on load:
set {blocks::*} to stone and cobblestone, lapis ore, diamond ore, gold ore, iron ore, emerald ore, stone, stone, stone, stone, stone, stone, stone
command /ds:
trigger:
add {@item} to player
on place:
if player's tool is {@item}:
while block at event-block is mob spawner:
loop all blocks in radius 4 around event-block:
if block at event-block is not event-block:
stop
if loop-block is AIR:
set {_block} to random element out of {blocks::*}
set loop-block to {_block}
wait {@block-time}
wait {@faze-time}