{
	"display": {
		"icon": {
			"id": "minecraft:bedrock"
		},
		"title": {"translate":"Rock Bottom"},
		"description": {"color":"#75E1FF","translate":"Dig down to the bottom of the world"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "blazeandcave:mining/deep_slate_nine",
	"rewards": {
		"function": "bacap_rewards:mining/rock_bottom"
	},		
	"criteria": {
		"bedrock_level": {
			"trigger": "minecraft:location",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:any_of",
						"terms": [
							{
								"condition": "minecraft:entity_properties",
								"entity": "this",
								"predicate": {
									"location": {
										"dimension": "minecraft:overworld",
										"position": {
											"y": {
												"max": -59.5
											}
										}
									}
								}
							},
							{
								"condition": "minecraft:entity_properties",
								"entity": "this",
								"predicate": {
									"location": {
										"dimension": "minecraft:the_nether",
										"position": {
											"y": {
												"max": 4.5
											}
										}
									}
								}
							}
						]
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_properties",
							"entity": "this",
							"predicate": {
								"minecraft:type_specific/player": {

									"gamemode": ["spectator"]
								}
							}
						}
					}
				]
			}
		}
	}
}
