Minecraft triggers

Enchant at a table — enchant_item

Apply an enchantment at an enchanting table.

Minecraft 1.21.1 · Fabric≈ 1 min read
CobblemonFabric

How to use

Apply an enchantment at an enchanting table. ITEM selects the item, ENCHANTMENT selects the enchantment and MIN_LEVEL sets its minimum level. min_level=3 means enchantment level III, not a cost of three XP levels. Without ENCHANTMENT, any enchantment reaching the minimum can count. For an anvil, use anvil_use.

Available filters

ALL, ITEM, ENCHANTMENT, MIN_LEVEL.

Objective example

Add this block under a quest's objectives. Adjust type and target, then activate the quest before performing the activity.

objetivo_enchant_item:
  id: enchant_item
  description: '&7Enchant at a table'
  progress: '&7Progress: %progress%/%target%'
  type: 'item=minecraft:diamond_sword,enchantment=minecraft:sharpness,min_level=3'
  target: 1

See quest configuration and combining filters.