######################################################################################################### *** PHASE 4 - TAIGA *** ##########################################################################################################



# BIOME SET #

execute if score fake_player ib_minedcount matches 551 run function simply_oneblock:ib_biomefill/taiga

execute if score fake_player ib_minedcount matches 551 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 powerful smell of spruce and mushrooms settles around you and you could swear you can hear scratching in the surrounding bushes. You're still a little chilly, but at least the sky has returned to a more natural colour.","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 551..999 store result score fake_player ib_randomizer run random value 1..130

execute if score fake_player ib_randomizer matches 1..30 run setblock 0 64 0 minecraft:podzol
execute if score fake_player ib_randomizer matches 31..50 run setblock 0 64 0 minecraft:spruce_log[axis=y]
execute if score fake_player ib_randomizer matches 51..65 run setblock 0 64 0 minecraft:grass_block
execute if score fake_player ib_randomizer matches 66..80 run setblock 0 64 0 minecraft:coarse_dirt
execute if score fake_player ib_randomizer matches 81..90 run setblock 0 64 0 minecraft:mossy_cobblestone
execute if score fake_player ib_randomizer matches 91..100 run setblock 0 64 0 minecraft:cobblestone

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 111..112 run setblock 0 64 0 minecraft:andesite
execute if score fake_player ib_randomizer matches 113..114 run setblock 0 64 0 minecraft:granite
execute if score fake_player ib_randomizer matches 115 run setblock 0 64 0 minecraft:deepslate
execute if score fake_player ib_randomizer matches 116..117 run setblock 0 64 0 minecraft:coal_ore
execute if score fake_player ib_randomizer matches 118 run setblock 0 64 0 minecraft:deepslate_coal_ore
execute if score fake_player ib_randomizer matches 119 run setblock 0 64 0 minecraft:copper_ore
execute if score fake_player ib_randomizer matches 120 run setblock 0 64 0 minecraft:deepslate_copper_ore
execute if score fake_player ib_randomizer matches 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 607 run setblock 0 64 0 chest{LootTable:"simply_oneblock:taiga"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 608 run teleport @s 0 65 0

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

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

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

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

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

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

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



# MOBS RANDOMIZER #

# Wolf #

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

execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 1..33 run summon minecraft:wolf 0 66 0 {variant:black,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 34..67 run summon minecraft:wolf 0 66 0 {variant:chestnut,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 68..100 run summon minecraft:wolf 0 66 0 {variant:pale,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 34..67 run summon minecraft:wolf 0 66 0 {variant:black,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 40..50 run summon minecraft:wolf 0 66 0 {variant:black,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 68..100 run summon minecraft:wolf 0 66 0 {variant:chestnut,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 80..90 run summon minecraft:wolf 0 66 0 {variant:chestnut,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 1..33 run summon minecraft:wolf 0 66 0 {variant:pale,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 595 if score fake_player ib_mob_randomizer matches 10..20 run summon minecraft:wolf 0 66 0 {variant:pale,PersistenceRequired:1b,Age:-24000}

# Chicken #

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

execute if score fake_player ib_minedcount matches 639 run summon minecraft:chicken 0 66 0 {variant:cold,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 639 if score fake_player ib_mob_randomizer matches 1..50 run summon minecraft:chicken 0 66 0 {variant:cold,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 639 if score fake_player ib_mob_randomizer matches 51..100 run summon minecraft:chicken 0 66 0 {variant:cold,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 639 if score fake_player ib_mob_randomizer matches 36..65 run summon minecraft:chicken 0 66 0 {variant:cold,PersistenceRequired:1b}

# Fox #

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

execute if score fake_player ib_minedcount matches 683 run summon minecraft:fox 0 66 0 {Type:red,PersistenceRequired:1b,CanPickUpLoot:1b}
execute if score fake_player ib_minedcount matches 683 if score fake_player ib_mob_randomizer matches 1..50 run summon minecraft:fox 0 66 0 {Type:red,PersistenceRequired:1b,CanPickUpLoot:1b}
execute if score fake_player ib_minedcount matches 683 if score fake_player ib_mob_randomizer matches 51..100 run summon minecraft:fox 0 66 0 {Type:red,PersistenceRequired:1b,Age:-24000,CanPickUpLoot:1b}
execute if score fake_player ib_minedcount matches 683 if score fake_player ib_mob_randomizer matches 36..65 run summon minecraft:fox 0 66 0 {Type:red,PersistenceRequired:1b,CanPickUpLoot:1b}

# Pig #

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

execute if score fake_player ib_minedcount matches 727 run summon minecraft:pig 0 66 0 {variant:cold,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 727 if score fake_player ib_mob_randomizer matches 1..50 run summon minecraft:pig 0 66 0 {variant:cold,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 727 if score fake_player ib_mob_randomizer matches 51..100 run summon minecraft:pig 0 66 0 {variant:cold,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 727 if score fake_player ib_mob_randomizer matches 36..65 run summon minecraft:pig 0 66 0 {variant:cold,PersistenceRequired:1b}

# Rabbit #

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

execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 1..33 run summon minecraft:rabbit 0 66 0 {RabbitType:0,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 34..67 run summon minecraft:rabbit 0 66 0 {RabbitType:2,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 68..100 run summon minecraft:rabbit 0 66 0 {RabbitType:5,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 34..67 run summon minecraft:rabbit 0 66 0 {RabbitType:0,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 40..50 run summon minecraft:rabbit 0 66 0 {RabbitType:0,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 68..100 run summon minecraft:rabbit 0 66 0 {RabbitType:2,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 80..90 run summon minecraft:rabbit 0 66 0 {RabbitType:2,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 1..33 run summon minecraft:rabbit 0 66 0 {RabbitType:5,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 771 if score fake_player ib_mob_randomizer matches 10..20 run summon minecraft:rabbit 0 66 0 {RabbitType:5,PersistenceRequired:1b,Age:-24000}

# Sheep #

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

execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 1..50 run summon minecraft:sheep 0 66 0 {Color:15,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 51..75 run summon minecraft:sheep 0 66 0 {Color:12,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 76..100 run summon minecraft:sheep 0 66 0 {Color:0,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 1..25 run summon minecraft:sheep 0 66 0 {Color:15,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 26..50 run summon minecraft:sheep 0 66 0 {Color:15,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 51..65 run summon minecraft:sheep 0 66 0 {Color:12,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 66..75 run summon minecraft:sheep 0 66 0 {Color:12,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 76..90 run summon minecraft:sheep 0 66 0 {Color:0,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 91..100 run summon minecraft:sheep 0 66 0 {Color:15,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 21..30 run summon minecraft:sheep 0 66 0 {Color:12,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 61..70 run summon minecraft:sheep 0 66 0 {Color:0,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 815 if score fake_player ib_mob_randomizer matches 86..95 run summon minecraft:sheep 0 66 0 {Color:15,PersistenceRequired:1b}

# Fox #

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

execute if score fake_player ib_minedcount matches 859 run summon minecraft:fox 0 66 0 {Type:red,PersistenceRequired:1b,CanPickUpLoot:1b}
execute if score fake_player ib_minedcount matches 859 if score fake_player ib_mob_randomizer matches 1..50 run summon minecraft:fox 0 66 0 {Type:red,PersistenceRequired:1b,CanPickUpLoot:1b}
execute if score fake_player ib_minedcount matches 859 if score fake_player ib_mob_randomizer matches 51..100 run summon minecraft:fox 0 66 0 {Type:red,PersistenceRequired:1b,Age:-24000,CanPickUpLoot:1b}
execute if score fake_player ib_minedcount matches 859 if score fake_player ib_mob_randomizer matches 36..65 run summon minecraft:fox 0 66 0 {Type:red,PersistenceRequired:1b,CanPickUpLoot:1b}

# Wolf #

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

execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 1..33 run summon minecraft:wolf 0 66 0 {variant:black,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 34..67 run summon minecraft:wolf 0 66 0 {variant:chestnut,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 68..100 run summon minecraft:wolf 0 66 0 {variant:pale,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 34..67 run summon minecraft:wolf 0 66 0 {variant:black,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 40..50 run summon minecraft:wolf 0 66 0 {variant:black,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 68..100 run summon minecraft:wolf 0 66 0 {variant:chestnut,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 80..90 run summon minecraft:wolf 0 66 0 {variant:chestnut,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 1..33 run summon minecraft:wolf 0 66 0 {variant:pale,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 903 if score fake_player ib_mob_randomizer matches 10..20 run summon minecraft:wolf 0 66 0 {variant:pale,PersistenceRequired:1b,Age:-24000}

# Cow #

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

execute if score fake_player ib_minedcount matches 947 run summon minecraft:cow 0 66 0 {variant:cold,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 947 if score fake_player ib_mob_randomizer matches 1..50 run summon minecraft:cow 0 66 0 {variant:cold,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 947 if score fake_player ib_mob_randomizer matches 51..100 run summon minecraft:cow 0 66 0 {variant:cold,PersistenceRequired:1b,Age:-24000}
execute if score fake_player ib_minedcount matches 947 if score fake_player ib_mob_randomizer matches 36..65 run summon minecraft:cow 0 66 0 {variant:cold,PersistenceRequired:1b}

# Villager #

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

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


