{
	"display": {
		"icon": {
			"id": "minecraft:leather_helmet",
			"components": {
				"minecraft:dyed_color": 15743786,
				"minecraft:trim": {
					"material": "minecraft:quartz",
					"pattern": "minecraft:tide"
				}
			}
		},
		"title": {"translate":"The Perfect Run"},
		"description": {"color":"#FF2A2A","translate":"Summon the Ender Dragon, the Wither, and a Raid within thirty seconds of each other, then defeat all of them without taking damage"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:challenges/at_the_rim_of_the_sky",
	"rewards": {
		"function": "bacap_rewards:challenges/the_perfect_run"
	},		
	"criteria": {
		"dragon": {
			"trigger": "minecraft:player_killed_entity",
			"conditions": {
				"entity": {
					"entity_type": "ender_dragon"
				},
				"player":  {
					"minecraft:type_specific/player": {

						"advancements": {
							"blazeandcave:technical/spawn_perfect_one": true
						}
					}
				}
			}
		},
		"wither": {
			"trigger": "minecraft:player_killed_entity",
			"conditions": {
				"entity": {
					"entity_type": "wither"
				},
				"player":  {
					"minecraft:type_specific/player": {

						"advancements": {
							"blazeandcave:technical/spawn_perfect_one": true
						}
					}
				}
			}
		},
		"raid": {
			"trigger": "minecraft:hero_of_the_village",
			"conditions": {
				"player":  {
					"minecraft:type_specific/player": {

						"advancements": {
							"blazeandcave:technical/spawn_perfect_one": true
						}
					}
				}
			}
		}
	}
}
