Make my datapack work
Ok my datapack has all the functions but i cant make it work can i have some help?
The premise of it is, while your wearing the specfic helmet (crown) you get a bunch of effects, problem is, it doesnt work:
the files i have rn are these:
give_effects:
effect give @s dolphins_grace infinite 1 true effect give @s fire_resistance infinite 1 true effect give @s strength infinite 2 true effect give @s hero_of_the_village infinite 1 true effect give @s health_boost infinite 1 true effect give @s luck infinite 1 true effect give @s resistance infinite 1 truegive_random_player_crown:
give @r netherite_helmet{Trim:{pattern:vex,material:gold},display:{Name:'["",{"text":"Kings Crown","italic":false,"color":"yellow"}]'},Enchantments:[{lvl:1,id:aqua_affinity},{lvl:1,id:binding_curse},{lvl:1,id:blast_protection},{lvl:0,id:fire_protection},{lvl:1,id:projectile_protection},{lvl:4,id:protection},{lvl:6,id:respiration},{lvl:3,id:thorns}],Unbreakable:1,tags:{MyTag:1b}}tick:
execute as @a[nbt={Inventory:[{Slot:103b,id:"minecraft:netherite_helmet",tag:{MyTag:1b}}]}] run function monarchy:give_effectsAnd tick.json:
json { "values": [ "monarchy:tick" ] }Any ideas?