#basic infected spawn3
schedule function inqui:age4_2 1500s

execute as @e[type=spore:mound,nbt={age:4, max_age:4}] at @s run summon spore:scamper ~ ~ ~ {PersistenceRequired:1b}
execute as @e[type=spore:mound,nbt={age:4, max_age:4}, limit=4, sort=random] at @s unless entity @e[ type= spore:proto , distance= ..215 ] run fill ~ ~ ~ ~ ~ ~ spore:hive_spawn
execute as @e[type=spore:mound,nbt={age:5}] at @s unless block ~ ~1 ~ minecraft:air run fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:air
execute as @e[type=spore:mound,nbt={age:5}] at @s run fill ~ ~ ~ ~ ~ ~ spore:hive_spawn
execute as @e[type=spore:mound,nbt={age:5}] at @s run summon spore:scamper ~ ~ ~ {PersistenceRequired:1b,ActiveEffects:[{Id:13,Duration:9000,ShowParticles:0}, {Id:1,Duration:9000,ShowParticles:0}, {Id:5,Duration:9000,ShowParticles:0}, {Id:10,Duration:9000,ShowParticles:0}, {Id:11,Duration:9000,ShowParticles:0}, {Id:21,Duration:9000,ShowParticles:0}]}
kill @e[type=spore:mound, nbt={age:4, max_age:4}]
