{
	"display": {
		"icon": {
			"id": "minecraft:nether_star"
		},
		"title": {"translate":"Star Trader"},
		"description": {"color":"#75E1FF","translate":"Trade with a villager at the build height limit"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "blazeandcave:adventure/lilypad_hatter",
	"rewards": {
		"function": "bacap_rewards:adventure/star_trader"
	},		
	"criteria": {
		"trade_at_world_height": {
			"trigger": "minecraft:villager_trade",
			"conditions": {
				"villager": {
					"entity_type": "villager",
					"location": {
						"position": {
							"y": {
								"min": 319
							}
						},
						"dimension": "minecraft:overworld"
					}
				}
			}
		},
		"trade_nether": {
			"trigger": "minecraft:villager_trade",
			"conditions": {
				"villager": {
					"entity_type": "villager",
					"location": {
						"position": {
							"y": {
								"min": 255
							}
						},
						"dimension": "minecraft:the_nether"
					}
				}
			}
		},
		"trade_end": {
			"trigger": "minecraft:villager_trade",
			"conditions": {
				"villager": {
					"entity_type": "villager",
					"location": {
						"position": {
							"y": {
								"min": 255
							}
						},
						"dimension": "minecraft:the_end"
					}
				}
			}
		}
	},
	"requirements": [
		[
			"trade_at_world_height",
			"trade_nether",
			"trade_end"
		]
	]
}
