scoreboard players set min rng 1
scoreboard players set max rng 14
function rng:interval

execute if score out rng matches 1..1 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_small_corridor"} replace
execute if score out rng matches 1..1 run tag @s add small_corridor
execute if score out rng matches 2..2 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_bamboo_forest"} replace
execute if score out rng matches 2..2 run tag @s add bamboo_forest
execute if score out rng matches 3..3 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_triple_hight"} replace
execute if score out rng matches 3..3 run tag @s add triple_hight
execute if score out rng matches 4..4 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_assassin_tutorial"} replace
execute if score out rng matches 4..4 run tag @s add assassin_tutorial
execute if score out rng matches 5..5 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_spier_cave"} replace
execute if score out rng matches 5..5 run tag @s add spier_cave
execute if score out rng matches 6..6 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_hydroangeas_cave_lake"} replace
execute if score out rng matches 6..6 run tag @s add hydroangeas_cave_lake
execute if score out rng matches 7..7 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_mandragora_garden"} replace
execute if score out rng matches 7..7 run tag @s add mandragora_garden
execute if score out rng matches 8..8 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_frog_pond"} replace
execute if score out rng matches 8..8 run tag @s add frog_pond
execute if score out rng matches 9..9 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_elf_ruin"} replace
execute if score out rng matches 9..9 run tag @s add elf_ruin
execute if score out rng matches 10..10 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_ruin_1"} replace
execute if score out rng matches 10..10 run tag @s add ruin_1
execute if score out rng matches 11..11 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_labyrinth"} replace
execute if score out rng matches 11..11 run tag @s add labyrinth
execute if score out rng matches 12..12 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_island_1"} replace
execute if score out rng matches 12..12 run tag @s add island_1
execute if score out rng matches 13..13 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_spider_cave_2"} replace
execute if score out rng matches 13..13 run tag @s add spider_cave_2
execute if score out rng matches 14..14 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_2/enemy_all"} replace
execute if score out rng matches 14..14 run tag @s add all
