{
	"display": {
		"icon": {
			"id": "minecraft:iron_sword"
		},
		"title": {"translate":"Stealth Takedown"},
		"description": {"color":"green","translate":"Dispatch a Creeper at melee range while you are invisible"},
		"announce_to_chat": true
	},
	"parent": "blazeandcave:potion/the_invisible_player",
	"rewards": {
		"function": "bacap_rewards:potion/stealth_takedown"
	},		
	"criteria": {
		"creeper": {
			"trigger": "minecraft:player_killed_entity",
			"conditions": {
				"entity": {
					"entity_type": "creeper",
					"distance": {
						"absolute": {
							"max": 5.0
						}
					}
				},
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"effects": {
								"minecraft:invisibility": {
									"amplifier": {
										"min": 0
									}
								}
							}
						}
					}
				]
			}
		}
	}
}
