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

execute if score out rng matches 1..2 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_4_acrhers"} replace
execute if score out rng matches 1..2 run tag @s add 4_acrhers
execute if score out rng matches 3..4 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_two_floor"} replace
execute if score out rng matches 3..4 run tag @s add two_floor
execute if score out rng matches 5..5 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_small"} replace
execute if score out rng matches 5..5 run tag @s add small
execute if score out rng matches 6..6 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_small_secret"} replace
execute if score out rng matches 6..6 run tag @s add small_secret
execute if score out rng matches 7..9 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_big_random"} replace
execute if score out rng matches 7..9 run tag @s add big_random
execute if score out rng matches 10..11 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_island"} replace
execute if score out rng matches 10..11 run tag @s add island
execute if score out rng matches 12..13 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_cave"} replace
execute if score out rng matches 12..13 run tag @s add cave
execute if score out rng matches 14..15 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_winding_cave"} replace
execute if score out rng matches 14..15 run tag @s add winding_cave
execute if score out rng matches 16..17 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_castle_circle"} replace
execute if score out rng matches 16..17 run tag @s add castle_circle
execute if score out rng matches 18..19 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_hydroangeas_4_arches"} replace
execute if score out rng matches 18..19 run tag @s add hydroangeas_4_arches
execute if score out rng matches 20..21 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_hydroangeas_dolme"} replace
execute if score out rng matches 20..21 run tag @s add hydroangeas_dolme
execute if score out rng matches 22..23 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_hydroangeas_storage"} replace
execute if score out rng matches 22..23 run tag @s add hydroangeas_storage
execute if score out rng matches 24..25 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_min3erminor_end_mysuffering_island"} replace
execute if score out rng matches 24..25 run tag @s add min3erminor_end_mysuffering_island
execute if score out rng matches 26..27 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_jonloveslegos_mineshaft"} replace
execute if score out rng matches 26..27 run tag @s add jonloveslegos_mineshaft
execute if score out rng matches 28..29 run setblock ~ ~ ~ structure_block{mode:"LOAD",name:"rooms:floor_1/enemy_jonloveslegos_mine"} replace
execute if score out rng matches 28..29 run tag @s add jonloveslegos_mine
