{
	"parent": "logical_iframes:root",
	"criteria": {
		"requirement": {
			"trigger": "minecraft:player_hurt_entity",
			"conditions": {
				"damage": {
					"type": {
						"tags": [
							{
								"id": "logical_iframes:melee",
								"expected": true
							}
						]
					}
				},
				"entity": [
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_scores",
							"entity": "this",
							"scores": {
								"logical_iframes.timer": {
									"min": 1
								}
							}
						}
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_properties",
							"entity": "this",
							"predicate": {
								"type": "minecraft:player"
							}
						}
					}
				]
			}
		}
	},
	"rewards": {
		"function": "logical_iframes:damage/player_hurt_entity"
	}
}
