{
	"display": {
		"icon": {
			"id": "minecraft:diamond_pickaxe",
			"components": {
				"minecraft:enchantment_glint_override": true
			}
		},
		"title": {"translate":"Instant Mining"},
		"description": {"color":"dark_purple","translate":"Hold a Diamond or Netherite Pickaxe enchanted with Efficiency V while under the Haste II effect"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "minecraft:nether/create_full_beacon",
	"rewards": {
		"function": "bacap_rewards:nether/instant_mining"
	},	
	"criteria": {
		"instant_mining": {
			"trigger": "minecraft:location",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"effects": {
								"minecraft:haste": {
									"amplifier": {
										"min": 1
									}
								}
							},
							"equipment": {
								"mainhand": {
									"items": "#blazeandcave:master_pickaxes",
									"predicates": {
										"enchantments": [
											{
												"enchantments": "minecraft:efficiency",
												"levels": {
													"min": 5
												}
											}
										]
									}
								}
							}
						}
					}
				]
			}
		}
	}
}