########################################################################################################## *** PHASE 8 - OCEAN *** #########################################################################################################



# BIOME SET #

execute in minecraft:overworld unless biome 0 64 0 minecraft:ocean run function simply_oneblock:ib_biomefill/ocean



# 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 {Particle:{type:ash},Radius:0.2,Duration:100000}



# BLOCK RANDOMIZER #

execute store result score fake_player ib_randomizer run random value 1..130

execute if score fake_player ib_randomizer matches 1..25 run setblock 0 64 0 minecraft:sand
execute if score fake_player ib_randomizer matches 26..45 run setblock 0 64 0 minecraft:gravel
execute if score fake_player ib_randomizer matches 46..55 run setblock 0 64 0 minecraft:dirt
execute if score fake_player ib_randomizer matches 56..60 run setblock 0 64 0 minecraft:stone
execute if score fake_player ib_randomizer matches 61..70 run setblock 0 64 0 minecraft:clay
execute if score fake_player ib_randomizer matches 71..75 run setblock 0 64 0 minecraft:magma_block
execute if score fake_player ib_randomizer matches 76..80 run setblock 0 64 0 minecraft:sponge
execute if score fake_player ib_randomizer matches 81..88 run setblock 0 64 0 minecraft:prismarine
execute if score fake_player ib_randomizer matches 89..93 run setblock 0 64 0 minecraft:prismarine_bricks
execute if score fake_player ib_randomizer matches 94..96 run setblock 0 64 0 minecraft:dark_prismarine
execute if score fake_player ib_randomizer matches 97..100 run setblock 0 64 0 minecraft:sea_lantern

execute if score fake_player ib_randomizer matches 101..105 run setblock 0 64 0 minecraft:diorite
execute if score fake_player ib_randomizer matches 106..109 run setblock 0 64 0 minecraft:andesite
execute if score fake_player ib_randomizer matches 110..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 8550 run setblock 0 64 0 chest{LootTable:"simply_oneblock:after_ocean"} replace
execute as @e[y=64,dy=1] at @s if score fake_player ib_minedcount matches 8551 run teleport @s 0 65 0

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

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

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

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

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

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

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

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

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

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

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



# MOBS RANDOMIZER #

execute if score fake_player ib_minedcount matches 8575 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 8650 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 8725 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 8800 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 8875 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 8950 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9025 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9100 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9175 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9250 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9325 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9400 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9475 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9550 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9625 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9700 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9775 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9850 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 9925 run function simply_oneblock:ib_after_phase/phase_12_mob
execute if score fake_player ib_minedcount matches 10000 run function simply_oneblock:ib_after_phase/phase_12_mob


