#desert island biomes
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ desert run tag @s add DesertIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ beach run tag @s add DesertIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ cold_ocean run tag @s add DesertIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ deep_cold_ocean run tag @s add DesertIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ deep_lukewarm_ocean run tag @s add DesertIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ deep_ocean run tag @s add DesertIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ lukewarm_ocean run tag @s add DesertIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ warm_ocean run tag @s add DesertIsland
execute as @s[tag=DesertIsland] run tag @s add BiomeIslandFound


#snow island biomes - snowy taiga and grove only have a 50% chance
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ snowy_plains run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ ice_spikes run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if predicate suhc:50percent run execute if biome ~ ~ ~ snowy_taiga run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ snowy_beach run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if predicate suhc:50percent run execute if biome ~ ~ ~ grove run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ snowy_slopes run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ jagged_peaks run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ frozen_peaks run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ frozen_river run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ frozen_ocean run tag @s add SnowIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ deep_frozen_ocean run tag @s add SnowIsland
execute as @s[tag=SnowIsland] run tag @s add BiomeIslandFound


#jungle island biomes
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ jungle run tag @s add JungleIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ sparse_jungle run tag @s add JungleIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ bamboo_jungle run tag @s add JungleIsland
execute as @s[tag=!BiomeIslandFound] run execute if predicate suhc:50percent run execute if biome ~ ~ ~ mangrove_swamp run tag @s add JungleIsland
execute as @s[tag=JungleIsland] run tag @s add BiomeIslandFound


#taiga island biomes, 
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ taiga run tag @s add TaigaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ old_growth_pine_taiga run tag @s add TaigaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ old_growth_spruce_taiga run tag @s add TaigaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ snowy_taiga run tag @s add TaigaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ grove run tag @s add TaigaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ stony_peaks run tag @s add TaigaIsland
execute as @s[tag=!BiomeIslandFound] run execute if predicate suhc:50percent run execute if biome ~ ~ ~ windswept_forest run tag @s add TaigaIsland
execute as @s[tag=!BiomeIslandFound] run execute if predicate suhc:50percent run execute if biome ~ ~ ~ windswept_hills run tag @s add TaigaIsland
execute as @s[tag=TaigaIsland] run tag @s add BiomeIslandFound


#swamp island biomes
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ swamp run tag @s add SwampIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ mangrove_swamp run tag @s add SwampIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ dark_forest run tag @s add SwampIsland
execute as @s[tag=SwampIsland] run tag @s add BiomeIslandFound


#savanna island biomes
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ savanna run tag @s add SavannaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ savanna_plateau run tag @s add SavannaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ windswept_savanna run tag @s add SavannaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ badlands run tag @s add SavannaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ eroded_badlands run tag @s add SavannaIsland
execute as @s[tag=!BiomeIslandFound] run execute if biome ~ ~ ~ wooded_badlands run tag @s add SavannaIsland
execute as @s[tag=SavannaIsland] run tag @s add BiomeIslandFound


tag @e[name=IslandMake,type=minecraft:armor_stand] add FoundArea


#25% chance to replace any given island as a default one
execute if predicate suhc:25percent run tag @s remove BiomeIslandFound

execute in overworld run execute as @s[tag=!BiomeIslandFound] run data merge block 999993 120 999969 {auto:1b}
execute in overworld run execute as @s[tag=BiomeIslandFound,tag=SavannaIsland] run data merge block 999992 120 999969 {auto:1b}
execute in overworld run execute as @s[tag=BiomeIslandFound,tag=SwampIsland] run data merge block 999991 120 999969 {auto:1b}
execute in overworld run execute as @s[tag=BiomeIslandFound,tag=DesertIsland] run data merge block 999990 120 999969 {auto:1b}
execute in overworld run execute as @s[tag=BiomeIslandFound,tag=SnowIsland] run data merge block 999989 120 999969 {auto:1b}
execute in overworld run execute as @s[tag=BiomeIslandFound,tag=TaigaIsland] run data merge block 999988 120 999969 {auto:1b}
execute in overworld run execute as @s[tag=BiomeIslandFound,tag=JungleIsland] run data merge block 999987 120 999969 {auto:1b}





