#creates the scoreboard proto for the proto modifiers
scoreboard objectives add capullin dummy "capullin start"
scoreboard players add !capullin capullin 1

execute if score !capullin capullin matches 1 run kill @e[ type= spore:mound , nbt={age:5}]
execute if score !capullin capullin matches 1 run summon spore:mound ~ ~2500 ~ {active_effects:[{id:"minecraft:slow_falling",duration:999999999,show_particles:false},{id:"minecraft:regeneration",duration:999999999,amplifier:49,show_particles:false},{id:"minecraft:resistance",duration:999999999,amplifier:19,show_particles:false},{id:"minecraft:health_boost",duration:999999999,amplifier:49,show_particles:false}],age:5,max_age:5}
execute if score !capullin capullin matches 1 run summon spore:inf_player ~15 ~2500 ~15 {Tags:["apostle"],active_effects:[{id:"minecraft:slow_falling",duration:7000,show_particles:false}, {id:"minecraft:regeneration",duration:999999999,show_particles:false}, {id:"minecraft:resistance",duration:999999999,show_particles:false}, {id:"minecraft:speed",duration:999999999,show_particles:false}, {id:"minecraft:strength",duration:999999999,show_particles:false}, {id:"minecraft:jump_boost",duration:999999999,show_particles:false}],PersistenceRequired:1b,CustomName:'{"text":"APOSTLE","color":"red"}',CustomNameVisible:0b,ArmorItems:[{id:"spore:inf_boots",Count:1b},{id:"spore:inf_pants",Count:1b},{id:"spore:inf_chest",Count:1b},{id:"spore:inf_helmet",Count:1b}],HandItems:[{id:"spore:infected_bow",Count:1b},{id:"spore:vigil_eye",Count:1b}]}
execute if score !capullin capullin matches 1 run summon spore:inf_player ~-15 ~2500 ~15 {Tags:["apostle"],active_effects:[{id:"minecraft:slow_falling",duration:7000,show_particles:false}, {id:"minecraft:regeneration",duration:999999999,show_particles:false}, {id:"minecraft:resistance",duration:999999999,show_particles:false}, {id:"minecraft:speed",duration:999999999,show_particles:false}, {id:"minecraft:strength",duration:999999999,show_particles:false}, {id:"minecraft:jump_boost",duration:999999999,show_particles:false}],PersistenceRequired:1b,CustomName:'{"text":"APOSTLE","color":"red"}',CustomNameVisible:0b,ArmorItems:[{id:"spore:inf_boots",Count:1b},{id:"spore:inf_pants",Count:1b},{id:"spore:inf_chest",Count:1b},{id:"spore:inf_helmet",Count:1b}],HandItems:[{id:"spore:scythe",Count:1b},{id:"spore:vigil_eye",Count:1b}]}
execute if score !capullin capullin matches 1 run summon spore:inf_player ~15 ~2500 ~-15 {Tags:["apostle"],active_effects:[{id:"minecraft:slow_falling",duration:7000,show_particles:false}, {id:"minecraft:regeneration",duration:999999999,show_particles:false}, {id:"minecraft:resistance",duration:999999999,show_particles:false}, {id:"minecraft:speed",duration:999999999,show_particles:false}, {id:"minecraft:strength",duration:999999999,show_particles:false}, {id:"minecraft:jump_boost",duration:999999999,show_particles:false}],PersistenceRequired:1b,CustomName:'{"text":"APOSTLE","color":"red"}',CustomNameVisible:0b,ArmorItems:[{id:"spore:inf_boots",Count:1b},{id:"spore:inf_pants",Count:1b},{id:"spore:inf_chest",Count:1b},{id:"spore:inf_helmet",Count:1b}],HandItems:[{id:"spore:infected_spear",Count:1b},{id:"spore:vigil_eye",Count:1b}]}
execute if score !capullin capullin matches 1 run summon spore:inf_player ~-15 ~2500 ~-15 {Tags:["apostle"],active_effects:[{id:"minecraft:slow_falling",duration:7000,show_particles:false}, {id:"minecraft:regeneration",duration:999999999,show_particles:false}, {id:"minecraft:resistance",duration:999999999,show_particles:false}, {id:"minecraft:speed",duration:999999999,show_particles:false}, {id:"minecraft:strength",duration:999999999,show_particles:false}, {id:"minecraft:jump_boost",duration:999999999,show_particles:false}],PersistenceRequired:1b,CustomName:'{"text":"APOSTLE","color":"red"}',CustomNameVisible:0b,ArmorItems:[{id:"spore:inf_boots",Count:1b},{id:"spore:inf_pants",Count:1b},{id:"spore:inf_chest",Count:1b},{id:"spore:inf_helmet",Count:1b}],HandItems:[{id:"spore:saber",Count:1b},{id:"spore:vigil_eye",Count:1b}]}
execute if score !capullin capullin matches 1 run summon spore:inf_player ~30 ~2500 ~ {Tags:["apostle"],active_effects:[{id:"minecraft:slow_falling",duration:7000,show_particles:false}, {id:"minecraft:regeneration",duration:999999999,show_particles:false}, {id:"minecraft:resistance",duration:999999999,show_particles:false}, {id:"minecraft:speed",duration:999999999,show_particles:false}, {id:"minecraft:strength",duration:999999999,show_particles:false}, {id:"minecraft:jump_boost",duration:999999999,show_particles:false}],PersistenceRequired:1b,CustomName:'{"text":"APOSTLE","color":"red"}',CustomNameVisible:0b,ArmorItems:[{id:"spore:inf_boots",Count:1b},{id:"spore:inf_pants",Count:1b},{id:"spore:inf_chest",Count:1b},{id:"spore:inf_helmet",Count:1b}],HandItems:[{id:"spore:saber",Count:1b},{id:"spore:vigil_eye",Count:1b}]}
execute if score !capullin capullin matches 1 run summon spore:inf_player ~-30 ~2500 ~ {Tags:["apostle"],active_effects:[{id:"minecraft:slow_falling",duration:7000,show_particles:false}, {id:"minecraft:regeneration",duration:999999999,show_particles:false}, {id:"minecraft:resistance",duration:999999999,show_particles:false}, {id:"minecraft:speed",duration:999999999,show_particles:false}, {id:"minecraft:strength",duration:999999999,show_particles:false}, {id:"minecraft:jump_boost",duration:999999999,show_particles:false}],PersistenceRequired:1b,CustomName:'{"text":"APOSTLE","color":"red"}',CustomNameVisible:0b,ArmorItems:[{id:"spore:inf_boots",Count:1b},{id:"spore:inf_pants",Count:1b},{id:"spore:inf_chest",Count:1b},{id:"spore:inf_helmet",Count:1b}],HandItems:[{id:"spore:infected_spear",Count:1b},{id:"spore:vigil_eye",Count:1b}]}
execute if score !capullin capullin matches 1 run summon spore:inf_player ~ ~2500 ~30 {Tags:["apostle"],active_effects:[{id:"minecraft:slow_falling",duration:7000,show_particles:false}, {id:"minecraft:regeneration",duration:999999999,show_particles:false}, {id:"minecraft:resistance",duration:999999999,show_particles:false}, {id:"minecraft:speed",duration:999999999,show_particles:false}, {id:"minecraft:strength",duration:999999999,show_particles:false}, {id:"minecraft:jump_boost",duration:999999999,show_particles:false}],PersistenceRequired:1b,CustomName:'{"text":"APOSTLE","color":"red"}',CustomNameVisible:0b,ArmorItems:[{id:"spore:inf_boots",Count:1b},{id:"spore:inf_pants",Count:1b},{id:"spore:inf_chest",Count:1b},{id:"spore:inf_helmet",Count:1b}],HandItems:[{id:"spore:scythe",Count:1b},{id:"spore:vigil_eye",Count:1b}]}
execute if score !capullin capullin matches 1 run summon spore:inf_player ~ ~2500 ~-30 {Tags:["apostle"],active_effects:[{id:"minecraft:slow_falling",duration:7000,show_particles:false}, {id:"minecraft:regeneration",duration:999999999,show_particles:false}, {id:"minecraft:resistance",duration:999999999,show_particles:false}, {id:"minecraft:speed",duration:999999999,show_particles:false}, {id:"minecraft:strength",duration:999999999,show_particles:false}, {id:"minecraft:jump_boost",duration:999999999,show_particles:false}],PersistenceRequired:1b,CustomName:'{"text":"APOSTLE","color":"red"}',CustomNameVisible:0b,ArmorItems:[{id:"spore:inf_boots",Count:1b},{id:"spore:inf_pants",Count:1b},{id:"spore:inf_chest",Count:1b},{id:"spore:inf_helmet",Count:1b}],HandItems:[{id:"spore:infected_bow",Count:1b},{id:"spore:vigil_eye",Count:1b}]}

execute as @e[type=spore:mound,nbt={age:5}] run scoreboard objectives add rednight dummy "yapper"
execute as @e[type=spore:mound,nbt={age:5}] unless score @s rednight matches 0.. run scoreboard players set @s rednight 6
execute if score !capullin capullin matches 1 run schedule function inqui:calls/start1 5s
scoreboard players add !capullin capullin 1
# 1728000 and 3456000