{
	"display": {
		"icon": {
			"id": "minecraft:dark_oak_planks"
		},
		"title": {"translate":"Out of Posts"},
		"description": {"color":"green","translate":"Enter a Pillager Outpost"},
		"announce_to_chat": true
	},
	"parent": "minecraft:adventure/root",
	"rewards": {
		"function": "bacap_rewards:adventure/out_of_posts"
	},		
	"criteria": {
		"pillager_outpost": {
			"trigger": "minecraft:location",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"location": {
								"structures": "pillager_outpost"
							}
						}
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_properties",
							"entity": "this",
							"predicate": {
								"minecraft:type_specific/player": {

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