{
	"display": {
		"icon": {
			"id": "minecraft:iron_sword"
		},
		"title": {"translate":"Bring Down The Beast"},
		"description": {"color":"#75E1FF","translate":"Bring down a ghast with a sword"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "minecraft:nether/return_to_sender",
	"rewards": {
		"function": "bacap_rewards:nether/bring_down_the_beast"
	},		
	"criteria": {
		"ghast": {
			"trigger": "minecraft:player_killed_entity",
			"conditions": {
				"entity": {
					"entity_type": "ghast"
				},
				"killing_blow": {
					"source_entity": {
						"equipment": {
							"mainhand": {
								"items": "#blazeandcave:swords"
							}
						}
					},
					"tags": [
						{
							"id": "minecraft:is_player_attack",
							"expected": true
						}
					]
				}
			}
		}
	}
}
