function attacks:spider_egg/crack

scoreboard players set boss_spawn EB_generic 1
function enemies_py:spider

scoreboard players set boss_spawn EB_generic 1
execute if block ~ ~ ~ turtle_egg[eggs=2] run function enemies_py:spider

scoreboard players set boss_spawn EB_generic 1
execute if block ~ ~ ~ turtle_egg[eggs=3] run function enemies_py:spider

fill ~ ~ ~ ~ ~ ~ air replace turtle_egg
