{ "criteria": { "on_hurt_entity_with_tools": { "trigger": "minecraft:player_hurt_entity", "conditions": { "player": { "equipment": { "mainhand": { "tag": "fz:tools" } } } } } }, "rewards": { "function": "fz:event/player/on_hurt_entity_with_tools" } }