{
	"display": {
		"icon": {
			"id": "minecraft:oak_fence"
		},
		"title": {"translate":"Follow the Leader"},
		"description": {"color":"dark_purple","translate":"Attach a lead to every mob that can be leashed"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:animal/you_lead_ill_follow",
	"rewards": {
		"function": "bacap_rewards:animal/follow_the_leader"
	},		
	"criteria": {
		"bee": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:bee"
						}
					}
				]
			}
		},
		"cat": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:cat"
						}
					}
				]
			}
		},
		"chicken": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:chicken"
						}
					}
				]
			}
		},
		"cow": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:cow"
						}
					}
				]
			}
		},
		"dolphin": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:dolphin"
						}
					}
				]
			}
		},
		"donkey": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:donkey"
						}
					}
				]
			}
		},
		"fox": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:fox"
						}
					}
				]
			}
		},
		"hoglin": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:hoglin"
						}
					}
				]
			}
		},
		"horse": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:horse"
						}
					}
				]
			}
		},
		"skeleton_horse": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:skeleton_horse"
						}
					}
				]
			}
		},
		"iron_golem": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:iron_golem"
						}
					}
				]
			}
		},
		"llama": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:llama"
						}
					}
				]
			}
		},
		"trader_llama": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:trader_llama"
						}
					}
				]
			}
		},
		"mooshroom": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:mooshroom"
						}
					}
				]
			}
		},
		"mule": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:mule"
						}
					}
				]
			}
		},
		"ocelot": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:ocelot"
						}
					}
				]
			}
		},
		"parrot": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:parrot"
						}
					}
				]
			}
		},
		"pig": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:pig"
						}
					}
				]
			}
		},
		"polar_bear": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:polar_bear"
						}
					}
				]
			}
		},
		"rabbit": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:rabbit"
						}
					}
				]
			}
		},
		"sheep": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:sheep"
						}
					}
				]
			}
		},
		"snow_golem": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:snow_golem"
						}
					}
				]
			}
		},
		"strider": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:strider"
						}
					}
				]
			}
		},
		"wolf": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:wolf"
						}
					}
				]
			}
		},
		"zoglin": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:zoglin"
						}
					}
				]
			}
		},
		"axolotl": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:axolotl"
						}
					}
				]
			}
		},
		"goat": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:goat"
						}
					}
				]
			}
		},
		"squid": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:squid"
						}
					}
				]
			}
		},
		"glow_squid": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:glow_squid"
						}
					}
				]
			}
		},
		"frog": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:frog"
						}
					}
				]
			}
		},
		"allay": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:allay"
						}
					}
				]
			}
		},
		"camel": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:camel"
						}
					}
				]
			}
		},
		"sniffer": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:sniffer"
						}
					}
				]
			}
		},
		"armadillo": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:armadillo"
						}
					}
				]
			}
		},
		"happy_ghast": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:happy_ghast"
						}
					}
				]
			}
		},
		"copper_golem": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:copper_golem"
						}
					}
				]
			}
		},
		"nautilus": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:nautilus"
						}
					}
				]
			}
		},
		"zombie_nautilus": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:zombie_nautilus"
						}
					}
				]
			}
		},
		"zombie_horse": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:zombie_horse"
						}
					}
				]
			}
		},
		"camel_husk": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:camel_husk"
						}
					}
				]
			}
		}
	}
}
