{
	"display": {
		"icon": {
			"id": "minecraft:elytra"
		},
		"title": {"translate":"When Piglins Fly"},
		"description": {"color":"#75E1FF","translate":"Give a piglin elytra then kill it"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "blazeandcave:nether/we_got_a_live_one",
	"rewards": {
		"function": "bacap_rewards:nether/when_piglins_fly"
	},		
	"criteria": {
		"piglin": {
			"trigger": "minecraft:player_killed_entity",
			"conditions": {
				"entity": {
					"entity_type": "#blazeandcave:piglins",
					"equipment": {
						"chest": {
							"items": [
								"minecraft:elytra"
							]
						}
					}
				}
			}
		}
	},
	"requirements": [
		[
		"piglin"
		]
	]
}
