{
	"display": {
		"icon": {
			"id": "minecraft:bow"
		},
		"title": {"translate":"Anti-Air"},
		"description": {"color":"dark_purple","translate":"Shoot down a phantom with an arrow from 30 blocks away"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:monsters/phantom_slayer",
	"rewards": {
		"function": "bacap_rewards:monsters/anti_air"
	},	
	"criteria": {
		"killed_phantom": {
			"trigger": "minecraft:player_killed_entity",
			"conditions": {
				"killing_blow": {
					"tags": [
						{
							"id": "minecraft:is_projectile",
							"expected": true
						}
					],
					"direct_entity": {
						"entity_type": "#blazeandcave:arrows"
					}
				},
				"entity": {
					"entity_type": "phantom",
					"distance": {
						"absolute": {
							"min": 30
						}
					}
				}
			}
		}
	}
}
