How to use
Complete a trade and take the result. ITEM filters what you receive, not what you give the villager. PROFESSION filters the profession, such as minecraft:farmer. Combine profession=minecraft:farmer,item=minecraft:emerald to require both conditions. Each trade counts once.
Available filters
ALL, ITEM, PROFESSION.
Objective example
Add this block under a quest's objectives. Adjust type and target, then activate the quest before performing the activity.
objetivo_villager_trade:
id: villager_trade
description: '&7Trade with a villager'
progress: '&7Progress: %progress%/%target%'
type: 'profession=minecraft:farmer,item=minecraft:emerald'
target: 5
See quest configuration and combining filters.