###################################################################################################### *** PHASE 13 - PALE GARDEN *** ######################################################################################################



# BIOME SET #

execute if score fake_player ib_minedcount matches 5001 run function simply_oneblock:ib_biomefill/pale_garden

execute if score fake_player ib_minedcount matches 5001 run tellraw @a ["",{"text":"\n\n\n\n\n\n\n\nThe block's energy seems to have changed again","italic":true,"color":"gray"},{"text":"\n\n"},{"text":"A strange atmosphere slowly descends around you. It is not particularly cold, but all the colours seem drained of their substance, desaturated and livid. The distant crackling of branches sends an unpleasant shiver down your spine, and you feel it is best to remain on your guard.","color":"aqua"}]



# GRAVITY WARNING #

execute if entity @e[type=minecraft:falling_block,x=0,y=64,z=0] run tellraw @a {"text":"\n\n\n\n\n\n\n\nSome blocks are subject to gravity, placing a solid block under the infinite block should help","italic":true,"color":"yellow"}



# PARTICLE #

kill @e[type=area_effect_cloud,x=0,y=64,z=0]
summon area_effect_cloud 0.5 65.5 0.5 {custom_particle:{type:ash},Radius:0.2,Duration:100000}



# BLOCK RANDOMIZER #

execute if score fake_player ib_minedcount matches 5001..5499 store result score fake_player ib_randomizer run random value 1..130

execute if score fake_player ib_randomizer matches 0..40 run setblock 0 64 0 minecraft:grass_block
execute if score fake_player ib_randomizer matches 41..80 run setblock 0 64 0 minecraft:pale_moss_block
execute if score fake_player ib_randomizer matches 81..100 run setblock 0 64 0 minecraft:pale_oak_log

execute if score fake_player ib_randomizer matches 101..102 run setblock 0 64 0 minecraft:gravel
execute if score fake_player ib_randomizer matches 103..104 run setblock 0 64 0 minecraft:clay
execute if score fake_player ib_randomizer matches 105..106 run setblock 0 64 0 minecraft:sand
execute if score fake_player ib_randomizer matches 107..108 run setblock 0 64 0 minecraft:stone
execute if score fake_player ib_randomizer matches 109..110 run setblock 0 64 0 minecraft:diorite
execute if score fake_player ib_randomizer matches 110..111 run setblock 0 64 0 minecraft:andesite
execute if score fake_player ib_randomizer matches 112..113 run setblock 0 64 0 minecraft:granite
execute if score fake_player ib_randomizer matches 114 run setblock 0 64 0 minecraft:deepslate
execute if score fake_player ib_randomizer matches 115..116 run setblock 0 64 0 minecraft:coal_ore
execute if score fake_player ib_randomizer matches 117 run setblock 0 64 0 minecraft:deepslate_coal_ore
execute if score fake_player ib_randomizer matches 118 run setblock 0 64 0 minecraft:copper_ore
execute if score fake_player ib_randomizer matches 119 run setblock 0 64 0 minecraft:deepslate_copper_ore
execute if score fake_player ib_randomizer matches 120..121 run setblock 0 64 0 minecraft:iron_ore
execute if score fake_player ib_randomizer matches 122 run setblock 0 64 0 minecraft:deepslate_iron_ore
execute if score fake_player ib_randomizer matches 123 run setblock 0 64 0 minecraft:gold_ore
execute if score fake_player ib_randomizer matches 124 run setblock 0 64 0 minecraft:deepslate_gold_ore
execute if score fake_player ib_randomizer matches 125 run setblock 0 64 0 minecraft:lapis_ore
execute if score fake_player ib_randomizer matches 126 run setblock 0 64 0 minecraft:deepslate_lapis_ore
execute if score fake_player ib_randomizer matches 127 run setblock 0 64 0 minecraft:redstone_ore
execute if score fake_player ib_randomizer matches 128 run setblock 0 64 0 minecraft:deepslate_redstone_ore
execute if score fake_player ib_randomizer matches 129 run setblock 0 64 0 minecraft:diamond_ore
execute if score fake_player ib_randomizer matches 130 run setblock 0 64 0 minecraft:deepslate_diamond_ore



# CHESTS #

execute if score fake_player ib_minedcount matches 5061 run setblock 0 64 0 chest{LootTable:"simply_oneblock:pale_garden"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 5062 run teleport @s 0 65 0

execute if score fake_player ib_minedcount matches 5121 run setblock 0 64 0 chest{LootTable:"simply_oneblock:pale_garden"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 5122 run teleport @s 0 65 0

execute if score fake_player ib_minedcount matches 5181 run setblock 0 64 0 chest{LootTable:"simply_oneblock:pale_garden"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 5182 run teleport @s 0 65 0

execute if score fake_player ib_minedcount matches 5241 run setblock 0 64 0 chest{LootTable:"simply_oneblock:pale_garden"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 5242 run teleport @s 0 65 0

execute if score fake_player ib_minedcount matches 5301 run setblock 0 64 0 chest{LootTable:"simply_oneblock:pale_garden"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 5302 run teleport @s 0 65 0

execute if score fake_player ib_minedcount matches 5361 run setblock 0 64 0 chest{LootTable:"simply_oneblock:pale_garden"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 5362 run teleport @s 0 65 0

execute if score fake_player ib_minedcount matches 5421 run setblock 0 64 0 chest{LootTable:"simply_oneblock:pale_garden"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 5422 run teleport @s 0 65 0

execute if score fake_player ib_minedcount matches 5481 run setblock 0 64 0 chest{LootTable:"simply_oneblock:pale_garden"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 5482 run teleport @s 0 65 0



# MOBS RANDOMIZER #

# Zombie #

execute if score fake_player ib_minedcount matches 5060 store result score fake_player ib_mob_randomizer run random value 1..100
execute if score fake_player ib_minedcount matches 5060 run playsound minecraft:entity.player.teleport block @a 0 66 0
execute if score fake_player ib_minedcount matches 5060 run playsound minecraft:entity.zombie.ambient block @a 0 66 0

execute if score fake_player ib_minedcount matches 5060 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_minedcount matches 5060 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_minedcount matches 5060 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_minedcount matches 5060 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_minedcount matches 5060 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_minedcount matches 5060 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_minedcount matches 5060 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_minedcount matches 5120 store result score fake_player ib_mob_randomizer run random value 1..100
execute if score fake_player ib_minedcount matches 5120 run playsound minecraft:entity.player.teleport block @a 0 66 0
execute if score fake_player ib_minedcount matches 5120 run playsound minecraft:entity.spider.ambient block @a 0 66 0

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

# Creeper #

execute if score fake_player ib_minedcount matches 5180 store result score fake_player ib_mob_randomizer run random value 1..100
execute if score fake_player ib_minedcount matches 5180 run playsound minecraft:entity.player.teleport block @a 0 66 0
execute if score fake_player ib_minedcount matches 5180 run playsound minecraft:block.fire.extinguish block @a 0 66 0

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

# Skeleton #

execute if score fake_player ib_minedcount matches 5240 store result score fake_player ib_mob_randomizer run random value 1..100
execute if score fake_player ib_minedcount matches 5240 run playsound minecraft:entity.player.teleport block @a 0 66 0
execute if score fake_player ib_minedcount matches 5240 run playsound minecraft:entity.skeleton.ambient block @a 0 66 0

execute if score fake_player ib_minedcount matches 5240 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_minedcount matches 5240 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_minedcount matches 5240 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_minedcount matches 5240 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_minedcount matches 5300 store result score fake_player ib_mob_randomizer run random value 1..100
execute if score fake_player ib_minedcount matches 5300 run playsound minecraft:entity.player.teleport block @a 0 66 0
execute if score fake_player ib_minedcount matches 5300 run playsound minecraft:entity.zombie.ambient block @a 0 66 0

execute if score fake_player ib_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5300 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_minedcount matches 5360 store result score fake_player ib_mob_randomizer run random value 1..100
execute if score fake_player ib_minedcount matches 5360 run playsound minecraft:entity.player.teleport block @a 0 66 0
execute if score fake_player ib_minedcount matches 5360 run playsound minecraft:entity.spider.ambient block @a 0 66 0

execute if score fake_player ib_minedcount matches 5360 run playsound minecraft:entity.skeleton.ambient block @a 0 66 0
execute if score fake_player ib_minedcount matches 5360 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 5360 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_minedcount matches 5360 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 5360 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_minedcount matches 5360 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 5360 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_minedcount matches 5360 run summon minecraft:spider 0 66 0 {PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 5360 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_minedcount matches 5420 store result score fake_player ib_mob_randomizer run random value 1..100
execute if score fake_player ib_minedcount matches 5420 run playsound minecraft:entity.player.teleport block @a 0 66 0
execute if score fake_player ib_minedcount matches 5420 run playsound minecraft:block.fire.extinguish block @a 0 66 0

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

# Spider #

execute if score fake_player ib_minedcount matches 5480 store result score fake_player ib_mob_randomizer run random value 1..100
execute if score fake_player ib_minedcount matches 5480 run playsound minecraft:entity.player.teleport block @a 0 66 0
execute if score fake_player ib_minedcount matches 5480 run playsound minecraft:entity.skeleton.ambient block @a 0 66 0

execute if score fake_player ib_minedcount matches 5480 run playsound minecraft:entity.spider.ambient block @a 0 66 0
execute if score fake_player ib_minedcount matches 5480 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_minedcount matches 5480 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_minedcount matches 5480 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_minedcount matches 5480 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_minedcount matches 5480 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_minedcount matches 5480 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_minedcount matches 5480 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_minedcount matches 5480 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}}}]}


