{
	"display": {
		"icon": {
			"id": "minecraft:diamond_boots"
		},
		"title": {"translate":"Voyage"},
		"description": {"color":"dark_purple","translate":"A hundred kilometres!"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:biomes/ten_thousand_blocks",
	"rewards": {
		"function": "bacap_rewards:biomes/voyage"
	},		
	"criteria": {
		"outer_pos_x": {
			"trigger": "minecraft:location",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"location": {
								"position": {
									"x": {
										"min": 100000.0
									}
								}
							}
						}
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_properties",
							"entity": "this",
							"predicate": {
								"minecraft:type_specific/player": {

									"gamemode": ["spectator"]
								}
							}
						}
					}
				]
			}
		},
		"outer_pos_z": {
			"trigger": "minecraft:location",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"location": {
								"position": {
									"z": {
										"min": 100000.0
									}
								}
							}
						}
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_properties",
							"entity": "this",
							"predicate": {
								"minecraft:type_specific/player": {

									"gamemode": ["spectator"]
								}
							}
						}
					}
				]
			}
		},
		"outer_neg_x": {
			"trigger": "minecraft:location",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"location": {
								"position": {
									"x": {
										"max": -100000.0
									}
								}
							}
						}
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_properties",
							"entity": "this",
							"predicate": {
								"minecraft:type_specific/player": {

									"gamemode": ["spectator"]
								}
							}
						}
					}
				]
			}
		},
		"outer_neg_z": {
			"trigger": "minecraft:location",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"location": {
								"position": {
									"z": {
										"max": -100000.0
									}
								}
							}
						}
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_properties",
							"entity": "this",
							"predicate": {
								"minecraft:type_specific/player": {

									"gamemode": ["spectator"]
								}
							}
						}
					}
				]
			}
		}	
	},
	"requirements": [
		[
			"outer_pos_x",
			"outer_pos_z",
			"outer_neg_x",
			"outer_neg_z"
		]
	]
}
