{
	"display": {
		"icon": {
			"id": "minecraft:phantom_spawn_egg"
		},
		"title": {"translate":"Insomniac"},
		"description": {"color":"dark_purple","translate":"Go 30 days without sleep"},
		"announce_to_chat": true,
		"frame": "challenge"
	},
	"parent": "blazeandcave:building/rainbow_dreams",
	"rewards": {
		"function": "bacap_rewards:building/insomniac"
	},		
	"criteria": {
		"trigger": {
			"trigger": "minecraft:location",
			"conditions": {
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"minecraft:type_specific/player": {
								"stats": [
									{
										"type": "minecraft:custom",
										"stat": "minecraft:time_since_rest",
										"value": {
											"min": 720000
										}
									}
								]
							}
						}
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:entity_properties",
							"entity": "this",
							"predicate": {
								"minecraft:type_specific/player": {

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