tag @s add jjc_om
tag @e[type=armor_stand,tag=jjc_start,distance=..40] add jjc_om
# particle minecraft:trial_omen ~ ~1 ~ 0.25 0.5 0.25 0.1 20
# particle minecraft:soul_fire_flame ~ ~1 ~ 0.25 0.5 0.25 0.1 10
execute as @a[distance=..17] at @s run particle minecraft:trial_omen ~ ~1 ~ 0.25 0.5 0.25 0.1 20
execute as @a[distance=..17] at @s run particle minecraft:soul_fire_flame ~ ~1 ~ 0.25 0.5 0.25 0.1 10
execute as @a[distance=..17] at @s run playsound block.trial_spawner.ominous_activate block @a[distance=..200] ~ ~1 ~ 1 1
execute store result score @s jjc_ominous run data get entity @p[nbt={active_effects:[{id:"minecraft:bad_omen"}]},distance=..17] active_effects[{id:"minecraft:bad_omen"}].amplifier 1
scoreboard players add @s jjc_ominous 1
advancement grant @a[distance=..40] only colosseum_of_fools:ominous
effect clear @a[distance=..17] bad_omen
effect give @a[distance=..17] trial_omen 1200