## Runs from 'function player/spawning/enderman_spawn_clock'
## @s = player

scoreboard objectives add SpawnMainIsland dummy
scoreboard objectives add SpawnBeast dummy
scoreboard objectives add SpawnMystic dummy
scoreboard objectives add SpawnScourge dummy
scoreboard objectives add SpawnWraith dummy

#scoreboard objectives setdisplay sidebar MainIslandClock
#scoreboard objectives setdisplay sidebar BeastClock
#scoreboard objectives setdisplay sidebar MysticClock
#scoreboard objectives setdisplay sidebar ScourgeClock
#scoreboard objectives setdisplay sidebar WraithClock


###################################################################################################
## Set how many seconds for "_____Clock" objective at the rate you want dungeon Endermen to spawn
scoreboard players set @s[scores={MainIslandClock=15..}] SpawnMainIsland 1
scoreboard players set @s[scores={BeastClock=10..}] SpawnBeast 1
scoreboard players set @s[scores={MysticClock=10..}] SpawnMystic 1
scoreboard players set @s[scores={ScourgeClock=10..}] SpawnScourge 1
scoreboard players set @s[scores={WraithClock=10..}] SpawnWraith 1

scoreboard players set .period WorldSpawnClock 7
###################################################################################################