## Runs from controller.animation.dungeon_spawner.detect
## @s = ldz:dungeon_spawner,family=main_island_spawner

scoreboard objectives add temp dummy
scoreboard players random @s temp 1 5
execute as @s[scores={temp=1}] run summon enderman ~ ~ ~ 0 0 main_island
execute as @s[scores={temp=2}] run summon enderman ~ ~ ~1 0 0 main_island
execute as @s[scores={temp=3}] run summon enderman ~ ~ ~-1 0 0 main_island
execute as @s[scores={temp=4}] run summon enderman ~1 ~ ~ 0 0 main_island
execute as @s[scores={temp=5}] run summon enderman ~-1 ~ ~ 0 0 main_island
scoreboard objectives remove temp