######################################################################################################### *** PHASE 3 - CAVES *** ##########################################################################################################



execute store result score fake_player ib_mob_randomizer run random value 1..100
execute store result score fake_player ib_after_mob_randomizer run random value 1..8
execute run playsound minecraft:entity.player.teleport block @a 0 66 0

# Zombie #

execute if score fake_player ib_after_mob_randomizer matches 1 run playsound minecraft:entity.zombie.ambient block @a 0 66 0

execute if score fake_player ib_after_mob_randomizer matches 1 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 1 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 1 if score fake_player ib_mob_randomizer matches 1..50 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 1 if score fake_player ib_mob_randomizer matches 51..100 run summon minecraft:zombie 0 66 0 {IsBaby:1,CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 1 if score fake_player ib_mob_randomizer matches 36..65 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 1 if score fake_player ib_mob_randomizer matches 1..35 run summon minecraft:zombie 0 66 0 {IsBaby:1,CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 1 if score fake_player ib_mob_randomizer matches 66..100 run summon minecraft:zombie 0 66 0 {IsBaby:1,CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}

# Spider #

execute if score fake_player ib_after_mob_randomizer matches 2 run playsound minecraft:entity.spider.ambient block @a 0 66 0

execute if score fake_player ib_after_mob_randomizer matches 2 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 2 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 2 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 2 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}

# Creeper #

execute if score fake_player ib_after_mob_randomizer matches 3 run playsound minecraft:block.fire.extinguish block @a 0 66 0

execute if score fake_player ib_after_mob_randomizer matches 3 run summon minecraft:creeper 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 3 run summon minecraft:creeper 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 3 run summon minecraft:creeper 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 3 run summon minecraft:creeper 0 66 0 {PersistenceRequired:1b}

# Skeleton #

execute if score fake_player ib_after_mob_randomizer matches 4 run playsound minecraft:entity.skeleton.ambient block @a 0 66 0

execute if score fake_player ib_after_mob_randomizer matches 4 run summon minecraft:skeleton 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}
execute if score fake_player ib_after_mob_randomizer matches 4 run summon minecraft:skeleton 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}
execute if score fake_player ib_after_mob_randomizer matches 4 run summon minecraft:skeleton 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}
execute if score fake_player ib_after_mob_randomizer matches 4 run summon minecraft:skeleton 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}

# Zombie #

execute if score fake_player ib_after_mob_randomizer matches 5 run playsound minecraft:entity.zombie.ambient block @a 0 66 0

execute if score fake_player ib_after_mob_randomizer matches 5 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 5 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 5 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 5 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 5 if score fake_player ib_mob_randomizer matches 1..50 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 5 if score fake_player ib_mob_randomizer matches 15..35 run summon minecraft:chicken 0 66 0 {variant:temperate,IsChickenJockey:1,Passengers:[{id:zombie,IsBaby:1,CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}]}
execute if score fake_player ib_after_mob_randomizer matches 5 if score fake_player ib_mob_randomizer matches 51..100 run summon minecraft:zombie 0 66 0 {IsBaby:1,CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 5 if score fake_player ib_mob_randomizer matches 65..85 run summon minecraft:chicken 0 66 0 {variant:temperate,IsChickenJockey:1,Passengers:[{id:zombie,IsBaby:1,CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}]}
execute if score fake_player ib_after_mob_randomizer matches 5 if score fake_player ib_mob_randomizer matches 36..65 run summon minecraft:zombie 0 66 0 {CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 5 if score fake_player ib_mob_randomizer matches 1..35 run summon minecraft:zombie 0 66 0 {IsBaby:1,CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}
execute if score fake_player ib_after_mob_randomizer matches 5 if score fake_player ib_mob_randomizer matches 66..100 run summon minecraft:chicken 0 66 0 {variant:temperate,IsChickenJockey:1,Passengers:[{id:zombie,IsBaby:1,CanBreakDoors:1,CanPickUpLoot:1b,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}]}]}

# Skeleton #

execute if score fake_player ib_after_mob_randomizer matches 6 run playsound minecraft:entity.spider.ambient block @a 0 66 0

execute if score fake_player ib_after_mob_randomizer matches 6 run playsound minecraft:entity.skeleton.ambient block @a 0 66 0
execute if score fake_player ib_after_mob_randomizer matches 6 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 6 run summon minecraft:spider 0 66 0 {Passengers:[{id:skeleton,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}]}
execute if score fake_player ib_after_mob_randomizer matches 6 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 6 run summon minecraft:spider 0 66 0 {Passengers:[{id:skeleton,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}]}
execute if score fake_player ib_after_mob_randomizer matches 6 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 6 run summon minecraft:spider 0 66 0 {Passengers:[{id:skeleton,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}]}
execute if score fake_player ib_after_mob_randomizer matches 6 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 6 run summon minecraft:spider 0 66 0 {Passengers:[{id:skeleton,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}]}

# Creeper #

execute if score fake_player ib_after_mob_randomizer matches 7 run playsound minecraft:block.fire.extinguish block @a 0 66 0

execute if score fake_player ib_after_mob_randomizer matches 7 run summon minecraft:creeper 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 7 run summon minecraft:creeper 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 7 run summon minecraft:creeper 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_after_mob_randomizer matches 7 run summon minecraft:creeper 0 66 0 {PersistenceRequired:1b}

# Spider #

execute if score fake_player ib_after_mob_randomizer matches 8 run playsound minecraft:entity.skeleton.ambient block @a 0 66 0

execute if score fake_player ib_after_mob_randomizer matches 8 run playsound minecraft:entity.spider.ambient block @a 0 66 0
execute if score fake_player ib_after_mob_randomizer matches 8 run summon minecraft:skeleton 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}
execute if score fake_player ib_after_mob_randomizer matches 8 run summon minecraft:skeleton 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}
execute if score fake_player ib_after_mob_randomizer matches 8 run summon minecraft:skeleton 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}
execute if score fake_player ib_after_mob_randomizer matches 8 run summon minecraft:skeleton 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}
execute if score fake_player ib_after_mob_randomizer matches 8 run summon minecraft:spider 0 66 0 {Passengers:[{id:skeleton,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}]}
execute if score fake_player ib_after_mob_randomizer matches 8 run summon minecraft:spider 0 66 0 {Passengers:[{id:skeleton,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}]}
execute if score fake_player ib_after_mob_randomizer matches 8 run summon minecraft:spider 0 66 0 {Passengers:[{id:skeleton,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}]}
execute if score fake_player ib_after_mob_randomizer matches 8 run summon minecraft:spider 0 66 0 {Passengers:[{id:skeleton,PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}]}


