{
	"display": {
		"icon": {
			"id": "minecraft:iron_chestplate"
		},
		"title": {"translate":"Armor for the masses"},
		"description": {"color":"#75E1FF","translate":"Obtain every protection related enchantment"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "blazeandcave:enchanting/echidna",
	"rewards": {
		"function": "bacap_rewards:enchanting/armor_for_the_masses"
	},			
	"criteria": {
		"protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:protection"
								}
							]
						}
					}
				]
			}
		},	
		"fire_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:fire_protection"
								}
							]
						}
					}
				]
			}
		},
		"blast_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:blast_protection"
								}
							]
						}
					}
				]
			}
		},
		"projectile_protection": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"predicates": {
							"enchantments": [
								{
									"enchantments": "minecraft:projectile_protection"
								}
							]
						}
					}
				]
			}
		},
		"protection_book": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"predicates": {
							"stored_enchantments": [
								{
									"enchantments": "minecraft:protection"
								}
							]
						}
					}
				]
			}
		},	
		"fire_protection_book": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"predicates": {
							"stored_enchantments": [
								{
									"enchantments": "minecraft:fire_protection"
								}
							]
						}
					}
				]
			}
		},
		"blast_protection_book": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"predicates": {
							"stored_enchantments": [
								{
									"enchantments": "minecraft:blast_protection"
								}
							]
						}
					}
				]
			}
		},
		"projectile_protection_book": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"items": [
					{
						"predicates": {
							"stored_enchantments": [
								{
									"enchantments": "minecraft:projectile_protection"
								}
							]
						}
					}
				]
			}
		}
	},	
	"requirements": [
		[
			"protection",
			"protection_book"
		],
		[
			"fire_protection",
			"fire_protection_book"
		],
		[
			"blast_protection",
			"blast_protection_book"
		],
		[
			"projectile_protection",
			"projectile_protection_book"
		]
	]
}