Ontrade

Description

Executes the skill when the villager trades with a player.

The associated @trigger is the player that traded with the villager

Examples

EXAMPLE_MOB:
  Type: VILLAGER
  Skills:
    # sends a message to all the players in the world
    # when the mob's target changes
    - message{m=TRADED} @World ~onTrade
Updated Aug 19, 2026