{
	"display": {
		"icon": {
			"id": "minecraft:leather_leggings",
			"components": {
				"minecraft:dyed_color": 13061821
			}
		},
		"title": {"translate":"Fashion Statement"},
		"description": {"color":"green","translate":"Dye some leather pants with one color, then put them on"},
		"announce_to_chat": true
	},
	"parent": "blazeandcave:animal/cool_kids",
	"rewards": {
		"function": "bacap_rewards:animal/fashion_statement"
	},		
	"criteria": {
		"white": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 16383998
									}
								}
							}
						}
					}
				]
			}
		},
		"orange": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 16351261
									}
								}
							}
						}
					}
				]
			}
		},
		"magenta": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 13061821
									}
								}
							}
						}
					}
				]
			}
		},
		"light_blue": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 3847130
									}
								}
							}
						}
					}
				]
			}
		},
		"yellow": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 16701501
									}
								}
							}
						}
					}
				]
			}
		},
		"lime": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 8439583
									}
								}
							}
						}
					}
				]
			}
		},
		"pink": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 15961002
									}
								}
							}
						}
					}
				]
			}
		},
		"gray": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 4673362
									}
								}
							}
						}
					}
				]
			}
		},
		"light_gray": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 10329495
									}
								}
							}
						}
					}
				]
			}
		},
		"cyan": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 1481884
									}
								}
							}
						}
					}
				]
			}
		},
		"purple": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 8991416
									}
								}
							}
						}
					}
				]
			}
		},
		"blue": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 3949738
									}
								}
							}
						}
					}
				]
			}
		},
		"brown": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 8606770
									}
								}
							}
						}
					}
				]
			}
		},
		"green": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 6192150
									}
								}
							}
						}
					}
				]
			}
		},
		"red": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 11546150
									}
								}
							}
						}
					}
				]
			}
		},
		"black": {
			"trigger": "minecraft:inventory_changed",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"legs": {
									"items": [
										"minecraft:leather_leggings"
									],
									"components": {
										"minecraft:dyed_color": 1908001
									}
								}
							}
						}
					}
				]
			}
		}
	},
	"requirements": [
		[
		"white",
		"orange",
		"magenta",
		"light_blue",
		"yellow",
		"lime",
		"pink",
		"gray",
		"light_gray",
		"cyan",
		"purple",
		"blue",
		"brown",
		"green",
		"red",
		"black"
		]
	]
}