メインコンテンツまでスキップ

Item Events

Events concerning item modification and trade.

Event Library

Configuration

enchant_event

Triggers when using an enchanting table. enchantmentEnchantment

The enchantment being applied (e.g. SHARPNESS). minLevelInt

Minimum level of the enchantment.

anvil_repair_event

Triggers when repairing in an anvil. materialMaterial

The item type being repaired.

villager_trade_event

Triggers when a trade is completed. professionProfession

Villager profession (e.g. LIBRARIAN, ARMORER). resultMaterial

The item received.

item_frame_place_event

Triggers when an item is placed into an item frame. materialMaterial

The item placed.

Examples

enchant_event:
enchantment: SHARPNESS
minLevel: 5
actions:
- lightning_action:
location: "%player_location%"
villager_trade_event:
profession: CARTOGRAPHER
actions:
- title_action:
title: "<gold>Explorer!"
subtitle: "You traded with a Cartographer"