{
	"display": {
		"icon": {
			"id": "minecraft:netherite_chestplate",
			"components": {
				"minecraft:enchantment_glint_override": true
			}
		},
		"title": {"translate":"Maximum Resistance"},
		"description": {"color":"dark_purple","translate":"Take a hit from the Warden with the maximum possible protection"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:monsters/warden_frostbite",
	"rewards": {
		"function": "bacap_rewards:monsters/maximum_resistance"
	},		
	"criteria": {
		"phantom": {
			"trigger": "minecraft:entity_hurt_player",
			"conditions": {
				"damage": {
					"blocked": false,
					"source_entity": {
						"entity_type": "warden"
					}
				},
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"head": {
									"items": [
										"minecraft:netherite_helmet"
									],
									"predicates": {
										"enchantments": [
											{
												"enchantments": "minecraft:protection",
												"levels": {
													"min": 4
												}
											}
										]
									}
								},
								"chest": {
									"items": [
										"minecraft:netherite_chestplate"
									],
									"predicates": {
										"enchantments": [
											{
												"enchantments": "minecraft:protection",
												"levels": {
													"min": 4
												}
											}
										]
									}
								},
								"legs": {
									"items": [
										"minecraft:netherite_leggings"
									],
									"predicates": {
										"enchantments": [
											{
												"enchantments": "minecraft:protection",
												"levels": {
													"min": 4
												}
											}
										]
									}
								},
								"feet": {
									"items": [
										"minecraft:netherite_boots"
									],
									"predicates": {
										"enchantments": [
											{
												"enchantments": "minecraft:protection",
												"levels": {
													"min": 4
												}
											}
										]
									}
								}
							},
							"effects": {
								"minecraft:resistance": {
									"amplifier": {
										"min": 3
									}
								}
							}
						}
					}
				]
			}
		}
	}
}
