{
	"display": {
		"icon": {
			"id": "minecraft:emerald"
		},
		"title": {"translate":"Buy Low, Sell High"},
		"description": {"color":"#75E1FF","translate":"Trade with a villager while under the Hero of the Village effect"},
		"announce_to_chat": true,
		"frame": "goal"
	},
	"parent": "minecraft:adventure/hero_of_the_village",
	"rewards": {
		"function": "bacap_rewards:adventure/buy_low_sell_high"
	},		
	"criteria": {
		"trade": {
			"trigger": "minecraft:villager_trade",
			"conditions": {
				"villager": {
					"entity_type": "villager"
				},
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"effects": {
								"minecraft:hero_of_the_village": {
									"amplifier": {
										"min": 0
									}
								}
							}
						}
					}
				]
			}
		}
	}
}
