execute as @a[scores={jjc_soul_nail=..5,jjc_soul=33..},advancements={colosseum_of_fools:item/soul_nail=false}] at @s if items entity @s weapon.* iron_sword[minecraft:custom_data~{colosseum_of_fools:{item:soul_nail}}] run function colosseum_of_fools:player/item/soul_nail/vengeful_spirit/0
execute as @a[scores={jjc_soul_nail=6..,jjc_soul=33..},predicate=colosseum_of_fools:is_sneaking] at @s if items entity @s weapon.* iron_sword[minecraft:custom_data~{colosseum_of_fools:{item:soul_nail}}] run function colosseum_of_fools:player/item/soul_nail/focus/1
scoreboard players set @a[scores={jjc_soul_nail=7..,jjc_soul=33..},predicate=!colosseum_of_fools:is_sneaking] jjc_soul_nail 6

scoreboard players reset @a[scores={jjc_soul_nail=1..},advancements={colosseum_of_fools:item/soul_nail=false}] jjc_soul_nail
advancement revoke @a only colosseum_of_fools:item/soul_nail
execute if entity @a[scores={jjc_soul_nail=1..}] run schedule function colosseum_of_fools:player/item/soul_nail/1 1t replace