execute as @e[type=vex,tag=jjc_vex_big,predicate=colosseum_of_fools:ss/target,nbt=!{active_effects:[{id:"minecraft:unluck",amplifier:97b}]}] at @s on target run tag @s add jjc_vex_big_t
execute as @e[type=vex,tag=jjc_vex_big,predicate=colosseum_of_fools:ss/target,tag=!jjc_vex_big_1,nbt=!{active_effects:[{id:"minecraft:unluck",amplifier:97b}]}] at @s unless entity @e[tag=jjc_vex_big_t,distance=..4] facing entity @e[tag=jjc_vex_big_t,distance=..40] eyes run tp @s ^ ^ ^0.2
execute as @e[type=vex,tag=jjc_vex_big,predicate=colosseum_of_fools:ss/target] at @s store result score @s jjc_y1 run data get entity @s Pos[1] 10
scoreboard players remove @e[type=vex,tag=jjc_vex_big,predicate=colosseum_of_fools:ss/target,nbt=!{active_effects:[{id:"minecraft:luck",amplifier:98b}]}] jjc_y1 5
scoreboard players remove @e[type=vex,tag=jjc_vex_big,predicate=colosseum_of_fools:ss/target,nbt={active_effects:[{id:"minecraft:luck",amplifier:98b}]}] jjc_y1 40
execute as @e[tag=jjc_vex_big_t] at @s store result score @s jjc_y2 run data get entity @s Pos[1] 10
execute as @e[type=vex,tag=jjc_vex_big,predicate=colosseum_of_fools:ss/target,nbt=!{active_effects:[{id:"minecraft:unluck",amplifier:97b}]}] at @s store result entity @s Motion[1] double -0.005 run scoreboard players operation @s jjc_y1 -= @e[tag=jjc_vex_big_t,distance=..10] jjc_y2

execute as @e[type=vex,tag=jjc_vex_big,nbt=!{active_effects:[{id:"minecraft:luck",amplifier:98b}]},predicate=colosseum_of_fools:ss/target] at @s positioned ~-3.5 ~ ~-3.5 if entity @n[distance=..200,tag=jjc_vex_big_t,dx=6,dy=2,dz=6] run tag @s add jjc_vex_big_1
scoreboard players add @e[type=vex,tag=jjc_vex_big_1] jjc_303 1
execute if entity @e[type=vex,tag=jjc_vex_big_1,scores={jjc_303=1}] run function colosseum_of_fools:ss/vex/vex3/2

execute as @e[type=vex,tag=jjc_vex_big_1,scores={jjc_303=10}] at @s run data merge entity @s {active_effects:[{id:"minecraft:luck",amplifier:98b,duration:40,ambient:0b,show_icon:0b,show_particles:0b},{id:"minecraft:unluck",amplifier:98b,duration:15,ambient:0b,show_icon:0b,show_particles:0b},{id:"minecraft:saturation",amplifier:98b,duration:20,ambient:0b,show_icon:0b,show_particles:0b}]}
execute as @e[type=vex,tag=jjc_vex_big_1,scores={jjc_303=10}] at @s run playsound entity.player.attack.sweep master @a[distance=..200] ~ ~1 ~ 1 1
tag @e[type=vex,tag=jjc_vex_big_1,scores={jjc_303=10}] remove jjc_vex_big_1
scoreboard players reset @e[type=vex,tag=jjc_vex_big,scores={jjc_303=10..}] jjc_303

execute if entity @e[type=vex,tag=jjc_vex_big,nbt={active_effects:[{id:"minecraft:unluck",amplifier:98b}]}] run function colosseum_of_fools:ss/vex/vex3/3
tag @e[tag=jjc_vex_big_t] remove jjc_vex_big_t