{
	"display": {
		"icon": {
			"id": "minecraft:villager_spawn_egg"
		},
		"title": {"translate":"Surge Protector"},
		"description": {"color":"#75E1FF","translate":"Protect a villager from an undesired shock without starting a fire"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "blazeandcave:mining/budget_channeling",
	"rewards": {
		"function": "bacap_rewards:mining/surge_protector"
	},		
	"criteria": {
		"lightning_rod_with_villager_no_fire": {
			"trigger": "minecraft:lightning_strike",
			"conditions": {
				"lightning": [
					{
						"condition": "minecraft:entity_properties",
						"predicate": {
							"distance": {
								"absolute": {
									"max": 30.0
								}
							},
							"minecraft:type_specific/lightning": {
								"blocks_set_on_fire": 0
							}
						},
						"entity": "this"
					}
				],
				"bystander": [
					{
						"condition": "minecraft:entity_properties",
						"predicate": {
							"entity_type": "minecraft:villager"
						},
						"entity": "this"
					}
				]
			}
		}
	}
}
