{
	"display": {
		"icon": {
			"id": "minecraft:item_frame"
		},
		"title": {"translate":"Map Room"},
		"description": {"color":"green","translate":"Place a map in an item frame"},
		"announce_to_chat": true
	},
	"parent": "blazeandcave:adventure/im_not_lost_anymore",
	"rewards": {
		"function": "bacap_rewards:adventure/map_room"
	},		
	"criteria": {
		"filled_map": {
			"trigger": "minecraft:player_interacted_with_entity",
			"conditions": {
				"item": {
					"items": [
						"minecraft:filled_map"
					]
				},
				"entity": [
					{
						"condition": "minecraft:any_of",
						"terms": [
							{
								"condition": "minecraft:entity_properties",
								"entity": "this",
								"predicate": {
									"entity_type": "minecraft:item_frame"
								}
							},
							{
								"condition": "minecraft:entity_properties",
								"entity": "this",
								"predicate": {
									"entity_type": "minecraft:glow_item_frame"
								}
							}
						]
					}
				]
			}
		}
	}
}
