######################################################################################################### *** PHASE 10 - SWAMP *** #########################################################################################################



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..4
execute run playsound minecraft:entity.player.teleport block @a 0 66 0

# Frog #

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

execute if score fake_player ib_after_mob_randomizer matches 1 run summon minecraft:frog 0 66 0 {PersistenceRequired:1b,variant:warm}
execute if score fake_player ib_after_mob_randomizer matches 1 run summon minecraft:frog 0 66 0 {PersistenceRequired:1b,variant:warm}
execute if score fake_player ib_after_mob_randomizer matches 1 if score fake_player ib_mob_randomizer matches 36..65 run summon minecraft:frog 0 66 0 {PersistenceRequired:1b,variant:warm}

# Bogged #

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

execute if score fake_player ib_after_mob_randomizer matches 2 run summon minecraft:bogged 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 2 run summon minecraft:bogged 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 2 run summon minecraft:bogged 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 2 run summon minecraft:bogged 0 66 0 {PersistenceRequired:1b,active_effects:[{id:fire_resistance,duration:24000,show_particles:0b}],equipment:{mainhand:{id:bow,count:1}}}

# Villager #

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

execute if score fake_player ib_after_mob_randomizer matches 3 run summon minecraft:villager 0 66 0 {VillagerData:{type:swamp},PersistenceRequired:1b,Age:-24000,CanPickUpLoot:1b}
execute if score fake_player ib_after_mob_randomizer matches 3 run summon minecraft:villager 0 66 0 {VillagerData:{type:swamp},PersistenceRequired:1b,Age:-24000,CanPickUpLoot:1b}

# Slime #

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

execute if score fake_player ib_after_mob_randomizer matches 4 run summon minecraft:slime 0 66 0 {PersistenceRequired:1b,Size:3}
execute if score fake_player ib_after_mob_randomizer matches 4 run summon minecraft:slime 0 66 0 {PersistenceRequired:1b,Size:3}
execute if score fake_player ib_after_mob_randomizer matches 4 run summon minecraft:slime 0 66 0 {PersistenceRequired:1b,Size:3}
execute if score fake_player ib_after_mob_randomizer matches 4 run summon minecraft:slime 0 66 0 {PersistenceRequired:1b,Size:3}


