execute if doesnt work
execute as @a[scores={Caos=1..}] if items entity @s weapon.mainhand minecraft:carrot_on_a_stick[minecraft:custom_data={TNTSword:1b}] run function swordrevival:tntsword/tntsword
Doesnt work in game or in datapack, function works fine so I know its the check