{
	"display": {
		"icon": {
			"id": "minecraft:mace"
		},
		"title": {"translate":"At the Rim of the Sky"},
		"description": {"color":"#FF2A2A","translate":"Slay the Ender Dragon in one hit using a Mace"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:challenges/dragon_vs_wither_the_pre_sequel",
	"rewards": {
		"function": "bacap_rewards:challenges/at_the_rim_of_the_sky"
	},
	"criteria": {
		"ender_dragon": {
			"trigger": "minecraft:player_hurt_entity",
			"conditions": {
				"damage": {
					"type": {
						"direct_entity": {
							"entity_type": "minecraft:player",
							"equipment": {
								"mainhand": {
									"items": "minecraft:mace"
								}
							}
						},
						"tags": [
							{
								"id": "minecraft:mace_smash",
								"expected": true
							}
						]
					},
					"dealt": {
						"min": 200.0
					}
				},
				"entity": {
					"entity_type": "minecraft:ender_dragon"
				}
			}
		}
	}
}
