execute unless entity @e[tag=easter_egg_creeper] run function subchronos:lobby/eastereggs/gen_creeper

scoreboard players add rotation easter_cueva 1
execute if score rotation easter_cueva matches 21.. run scoreboard players set rotation easter_cueva 0

execute if score rotation easter_cueva matches 0..10 as @e[tag=easter_egg_creeper] at @s run tp @s ~ ~ ~ ~ ~25
execute if score rotation easter_cueva matches 10..20 as @e[tag=easter_egg_creeper] at @s run tp @s ~ ~ ~ ~ ~-25

execute as @e[tag=easter_egg_creeper] if entity @a[x=536,y=88,z=-1002,dx=5,dy=5,dz=7] run data merge entity @s {CustomNameVisible:1}
execute as @e[tag=easter_egg_creeper] unless entity @a[x=536,y=88,z=-1002,dx=5,dy=5,dz=7] run data merge entity @s {CustomNameVisible:0}