{
	"display": {
		"icon": {
			"id": "minecraft:splash_potion",
			"components": {
				"minecraft:potion_contents": {
					"potion": "minecraft:poison"
				}
			}
		},
		"title": {"translate":"Taste of your own medicine"},
		"description": {"color":"dark_purple","translate":"Kill a witch with a splash potion"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:monsters/miracle_drink",
	"rewards": {
		"function": "bacap_rewards:monsters/taste_of_your_own_medicine"
	},	
	"criteria": {
		"kill_magic": {
			"trigger": "minecraft:player_killed_entity",
			"conditions": {
				"entity": {
					"entity_type": "witch"
				},
				"killing_blow": {

					"direct_entity": {
						"entity_type": "minecraft:splash_potion"
					}
				}
			}
		}
	}
}
