
## Place spawner
execute store result score #VB vb.dummy1 run random value 1..7
# HARD SPAWNER
execute if entity @s[tag=vb.structure.hard_spawner] store result score #VB vb.dummy1 run random value 1..25
# Drowned
$execute if score #VB vb.dummy1 matches ..6 run setblock ~ ~-1 ~ minecraft:trial_spawner{normal_config:{spawn_range:3,total_mobs:5,simultaneous_mobs:3,total_mobs_added_per_player:2,simultaneous_mobs_added_per_player:1,ticks_between_spawn:40,spawn_potentials:[{data:{entity:{id:"minecraft:drowned",Tags:["vb.loaded","vb.true_mob.drowned"]}},weight:1}],loot_tables_to_eject:[{data:"vb:spawners/monument$(loot)",weight:1}]},ominous_config:{spawn_range:3,total_mobs:10,simultaneous_mobs:4,total_mobs_added_per_player:3,simultaneous_mobs_added_per_player:1,ticks_between_spawn:40,spawn_potentials:[{data:{entity:{id:"minecraft:drowned"}},weight:1}],loot_tables_to_eject:[{data:"vb:spawners/monument_ominous$(loot)",weight:1}]},required_player_range:10,target_cooldown_length:30000}
execute if score #VB vb.dummy1 matches ..6 run setblock ~-1 ~-2 ~-1 gravel
execute if score #VB vb.dummy1 matches ..6 run setblock ~1 ~-2 ~1 gravel
execute if score #VB vb.dummy1 matches ..6 run setblock ~1 ~-2 ~-1 mossy_cobblestone
execute if score #VB vb.dummy1 matches ..6 run setblock ~-1 ~-2 ~1 mossy_cobblestone
# Guardian
$execute if score #VB vb.dummy1 matches 7..8 run setblock ~ ~-1 ~ minecraft:trial_spawner{normal_config:{spawn_range:3,total_mobs:3,simultaneous_mobs:2,total_mobs_added_per_player:1,simultaneous_mobs_added_per_player:1,ticks_between_spawn:40,spawn_potentials:[{data:{entity:{id:"minecraft:guardian",Tags:['vb.loaded']}},weight:1}],loot_tables_to_eject:[{data:"vb:spawners/monument$(loot)",weight:1}]},ominous_config:{spawn_range:3,total_mobs:6,simultaneous_mobs:2,total_mobs_added_per_player:2,simultaneous_mobs_added_per_player:1,ticks_between_spawn:40,spawn_potentials:[{data:{entity:{id:"minecraft:guardian",Tags:['vb.loaded']}},weight:1}],loot_tables_to_eject:[{data:"vb:spawners/monument_ominous$(loot)",weight:1}]},required_player_range:10,target_cooldown_length:30000}
# Sunken Drowned
$execute if score #VB vb.dummy1 matches 9.. run setblock ~ ~-1 ~ minecraft:trial_spawner{normal_config:{spawn_range:3,total_mobs:5,simultaneous_mobs:2,total_mobs_added_per_player:1,simultaneous_mobs_added_per_player:1,ticks_between_spawn:40,spawn_potentials:[{data:{entity:{id:"minecraft:drowned",Tags:['vb.convert_to.sunken']}},weight:1}],loot_tables_to_eject:[{data:"vb:spawners/monument$(loot)",weight:1}]},ominous_config:{spawn_range:3,total_mobs:6,simultaneous_mobs:2,total_mobs_added_per_player:2,simultaneous_mobs_added_per_player:1,ticks_between_spawn:40,spawn_potentials:[{data:{entity:{id:"minecraft:guardian",Tags:['vb.loaded']}},weight:1}],loot_tables_to_eject:[{data:"vb:spawners/monument_ominous$(loot)",weight:1}]},required_player_range:10,target_cooldown_length:30000}
execute if score #VB vb.dummy1 matches 9.. run setblock ~-1 ~-2 ~-1 dark_prismarine
execute if score #VB vb.dummy1 matches 9.. run setblock ~1 ~-2 ~1 dark_prismarine
execute if score #VB vb.dummy1 matches 9.. run setblock ~1 ~-2 ~-1 dried_kelp_block
execute if score #VB vb.dummy1 matches 9.. run setblock ~-1 ~-2 ~1 dried_kelp_block

## Kill
kill @s