{
	"display": {
		"icon": {
			"id": "minecraft:diamond_helmet",
			"components": {
				"minecraft:enchantment_glint_override": true
			}
		},
		"title": {"translate":"Master Armorer"},
		"description": {"color":"dark_purple","translate":"Create a full suit of armor with all possible enchantments at max level"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:enchanting/unbreakable",
	"rewards": {
		"function": "bacap_rewards:enchanting/master_armorer"
	},		
	"criteria": {
		"helmet_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_helmets",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:aqua_affinity",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:respiration",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"helmet_fire_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_helmets",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:fire_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:aqua_affinity",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:respiration",
									"levels": {
										"min": 3
									}
								}	
							]
						}
					}
				]
			}
		},
		"helmet_projectile_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_helmets",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:projectile_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:aqua_affinity",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:respiration",
									"levels": {
										"min": 3
									}
								}	
							]
						}
					}
				]
			}
		},
		"helmet_blast_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_helmets",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:blast_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:aqua_affinity",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:respiration",
									"levels": {
										"min": 3
									}
								}	
							]
						}
					}
				]
			}
		},
		"chestplate_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_chestplates",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:thorns",
									"levels": {
										"min": 3
									}
								}	
							]
						}
					}
				]
			}
		},
		"chestplate_fire_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_chestplates",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:fire_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:thorns",
									"levels": {
										"min": 3
									}
								}	
							]
						}
					}
				]
			}
		},
		"chestplate_projectile_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_chestplates",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:projectile_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:thorns",
									"levels": {
										"min": 3
									}
								}	
							]
						}
					}
				]
			}
		},
		"chestplate_blast_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_chestplates",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:blast_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:thorns",
									"levels": {
										"min": 3
									}
								}	
							]
						}
					}
				]
			}
		},
		"leggings_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_leggings",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:swift_sneak",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"leggings_fire_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_leggings",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:fire_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:swift_sneak",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"leggings_projectile_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_leggings",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:projectile_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:swift_sneak",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"leggings_blast_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_leggings",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:blast_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:swift_sneak",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"boots_protection_depth_strider": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_boots",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:depth_strider",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:feather_falling",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:soul_speed",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"boots_fire_protection_depth_strider": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_boots",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:fire_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:depth_strider",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:feather_falling",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:soul_speed",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"boots_projectile_protection_depth_strider": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_boots",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:projectile_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:depth_strider",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:feather_falling",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:soul_speed",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"boots_blast_protection_depth_strider": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_boots",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:blast_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:depth_strider",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:feather_falling",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:soul_speed",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"boots_protection_frost_walker": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_boots",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:frost_walker",
									"levels": {
										"min": 2
									}
								},
								{
									"enchantments": "minecraft:feather_falling",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:soul_speed",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"boots_fire_protection_frost_walker": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_boots",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:fire_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:frost_walker",
									"levels": {
										"min": 2
									}
								},
								{
									"enchantments": "minecraft:feather_falling",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:soul_speed",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"boots_projectile_protection_frost_walker": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_boots",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:projectile_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:frost_walker",
									"levels": {
										"min": 2
									}
								},
								{
									"enchantments": "minecraft:feather_falling",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:soul_speed",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		},
		"boots_blast_protection_frost_walker": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"items": "#blazeandcave:master_boots",
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:blast_protection",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:unbreaking",
									"levels": {
										"min": 3
									}
								},
								{
									"enchantments": "minecraft:mending",
									"levels": {
										"min": 1
									}
								},
								{
									"enchantments": "minecraft:frost_walker",
									"levels": {
										"min": 2
									}
								},
								{
									"enchantments": "minecraft:feather_falling",
									"levels": {
										"min": 4
									}
								},
								{
									"enchantments": "minecraft:soul_speed",
									"levels": {
										"min": 3
									}
								}
							]
						}
					}
				]
			}
		}
	},
	"requirements": [
		[
			"helmet_protection",
			"helmet_fire_protection",
			"helmet_projectile_protection",
			"helmet_blast_protection"
		],
		[
			"chestplate_protection",
			"chestplate_fire_protection",
			"chestplate_projectile_protection",
			"chestplate_blast_protection"
		],
		[
			"leggings_protection",
			"leggings_fire_protection",
			"leggings_projectile_protection",
			"leggings_blast_protection"
		],
		[
			"boots_protection_depth_strider",
			"boots_fire_protection_depth_strider",
			"boots_projectile_protection_depth_strider",
			"boots_blast_protection_depth_strider",
			"boots_protection_frost_walker",
			"boots_fire_protection_frost_walker",
			"boots_projectile_protection_frost_walker",
			"boots_blast_protection_frost_walker"
		]
	]
}
