{
	"display": {
		"icon": {
			"id": "minecraft:lead"
		},
		"title": {"translate":"When the Squad Hops into Town"},
		"description": {"color":"#75E1FF","translate":"Attach a lead to each variant of Frog"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "minecraft:husbandry/tadpole_in_a_bucket",
	"rewards": {
		"function": "bacap_rewards:animal/when_the_squad_hops_into_town"
	},
	"criteria": {
		"minecraft:temperate": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:frog",
							"components": {
								"minecraft:frog/variant": "minecraft:temperate"
							}
						}
					}
				]
			}
		},
		"minecraft:warm": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:frog",
							"components": {
								"minecraft:frog/variant": "minecraft:warm"
							}
						}
					}
				]
			}
		},
		"minecraft:cold": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:lead"
					]
				},
				"entity": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"entity_type": "minecraft:frog",
							"components": {
								"minecraft:frog/variant": "minecraft:cold"
							}
						}
					}
				]
			}
		}
	}
}
