{
	"display": {
		"icon": {
			"id": "minecraft:exposed_cut_copper"
		},
		"title": {"translate":"Called Shot"},
		"description": {"color":"#75E1FF","translate":"Get struck by lightning while standing on a Lightning Rod"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "minecraft:adventure/lightning_rod_with_villager_no_fire",
	"rewards": {
		"function": "bacap_rewards:mining/called_shot"
	},		
	"criteria": {
		"called_shot": {
			"trigger": "minecraft:lightning_strike",
			"conditions": {
				"lightning": [
					{
						"condition": "minecraft:entity_properties",
						"predicate": {
							"distance": {
								"absolute": {
									"max": 2.0
								}
							},
							"minecraft:type_specific/lightning": {
								"entity_struck": {
									"entity_type": "minecraft:player"
								}
							}
						},
						"entity": "this"
					}
				],
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"stepping_on": {
								"block": {
									"blocks": [
										"minecraft:lightning_rod",
										"exposed_lightning_rod",
										"weathered_lightning_rod",
										"oxidized_lightning_rod",
										"waxed_lightning_rod",
										"waxed_exposed_lightning_rod",
										"waxed_weathered_lightning_rod",
										"waxed_oxidized_lightning_rod"
									]
								}
							}
						}
					}
				]
			}
		}
	}
}
