How to use
Take the anvil result. ITEM filters the output item. Use action=rename to rename, action=repair to repair, or action=combine to combine. If more than one operation happens in the same use, check which action is counted before using that combination in a quest.
Available filters
ALL, ITEM, ACTION.
Objective example
Add this block under a quest's objectives. Adjust type and target, then activate the quest before performing the activity.
objetivo_anvil_use:
id: anvil_use
description: '&7Use an anvil'
progress: '&7Progress: %progress%/%target%'
type: 'item=minecraft:iron_sword,action=rename'
target: 1
See quest configuration and combining filters.