################################################################################################### *** PHASE 1 - OAK & BIRCH FOREST *** ###################################################################################################



# BIOME SET #

execute if score fake_player ib_minedcount matches 1 run function simply_oneblock:ib_biomefill/forest

execute if score fake_player ib_minedcount matches 1 run tellraw @a ["",{"text":"\n\n\n\n\n\n\n\nThat block... A great energy seems to be emanating from it, now the void feels... diferent ?","italic":true,"color":"gray"},{"text":"\n\n"},{"text":"The air is warm and the scent of flowers and forest gently settles around you. You can't explain how, but it's almost as if you can hear the wind rustling through the leaves and the cries of wolves in the distance","color":"aqua"}]



# PARTICLE #

kill @e[type=area_effect_cloud,x=0,y=65,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 1..54 store result score fake_player ib_randomizer run random value 1..100

execute if score fake_player ib_randomizer matches 1..40 run setblock 0 64 0 minecraft:grass_block
execute if score fake_player ib_randomizer matches 41..75 run setblock 0 64 0 minecraft:oak_log[axis=y]
execute if score fake_player ib_randomizer matches 76..100 run setblock 0 64 0 minecraft:birch_log[axis=y]



# CHESTS #

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

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

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

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

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



# MOBS RANDOMIZER #

# wolf #

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

execute if score fake_player ib_minedcount matches 15 run summon minecraft:wolf 0 66 0 {variant:woods,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 15 if score fake_player ib_mob_randomizer matches 1..40 run summon minecraft:wolf 0 66 0 {variant:woods,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 15 if score fake_player ib_mob_randomizer matches 41..66 run summon minecraft:wolf 0 66 0 {variant:woods,PersistenceRequired:1b,Age:-24000}

# wolf #

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

execute if score fake_player ib_minedcount matches 35 run summon minecraft:wolf 0 66 0 {variant:woods,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 35 if score fake_player ib_mob_randomizer matches 1..40 run summon minecraft:wolf 0 66 0 {variant:woods,PersistenceRequired:1b}
execute if score fake_player ib_minedcount matches 35 if score fake_player ib_mob_randomizer matches 41..66 run summon minecraft:wolf 0 66 0 {variant:woods,PersistenceRequired:1b,Age:-24000}


