How to execute a function as the hurt entity

{ "criteria": { "hit_with_guardian_scythe": { "trigger": "minecraft:player_hurt_entity", "conditions": { "player": { "equipment": { "mainhand": { "items": "minecraft:netherite_axe" } } }, "entity": {} } } }, "requirements": [ [ "hit_with_guardian_scythe" ] ], "rewards": { "function": "jestem.cool_weapons:guardian_scythe/on_hit" } }
Continue to help post