execute as @e[tag=center] at @s positioned ~-22 ~ ~-22 as @e[sort=random,dx=44,dy=28,dz=44] run function rooms:4_markers/main_

execute as @e[tag=mob] run scoreboard players add n_enemies dungeon 1

scoreboard players set markers generation 0