# X rotation
scoreboard players set min rng -180
scoreboard players set max rng 179
function rng:interval
execute store result entity @e[type=#aec,tag=summon_center,limit=1] Rotation[0] float 1 run scoreboard players get out rng

scoreboard players set boss_spawn EB_generic 1
execute rotated as @e[type=#aec,tag=summon_center,limit=1] positioned ^ ^ ^1 run function bosses:troll/minions/summon2
