{ "criteria": { "requirement": { "trigger": "minecraft:player_hurt_entity", "conditions": { "player": [ { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "head": { "items": [ "minecraft:tnt" ] } } } } ], "entity": [ { "condition": "minecraft:all_of", "terms": [ { "condition": "minecraft:inverted", "term": { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "head": { "items": [ "minecraft:tnt" ] } } } } }, { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "type": "minecraft:player" } } ] } ] } } }, "rewards": { "function": "herohost:tnt/give_tnt" } }