execute if entity @a[nbt={active_effects:[{id:"minecraft:trial_omen"}]},distance=..20] run function survivalplus:mobs/trial_chamber/ominous

execute if entity @s[type=bogged,tag=!plussed] run function survivalplus:mobs/trial_chamber/bogged
execute if entity @s[type=cave_spider,tag=!plussed] run function survivalplus:mobs/trial_chamber/cave_spider
execute if entity @s[type=husk,tag=!plussed] run function survivalplus:mobs/trial_chamber/husk
execute if entity @s[type=skeleton,tag=!plussed] run function survivalplus:mobs/trial_chamber/skeleton
execute if entity @s[type=spider,tag=!plussed] run function survivalplus:mobs/trial_chamber/spider
execute if entity @s[type=stray,tag=!plussed] run function survivalplus:mobs/trial_chamber/stray
execute if entity @s[type=zombie,tag=!plussed] run function survivalplus:mobs/trial_chamber/zombie

execute if entity @s[tag=resistme] run function survivalplus:mobs/trial_chamber/resistme
execute if entity @s[tag=strongme] run function survivalplus:mobs/trial_chamber/strongme
tag @s add noreroll
tag @s add rerare
tag @s add plussed
tag @s add trialmob