Trigger event on successful trade with a villager

Started by lt.wret on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trigger event on successful trade with a villager

In the same way that it is possible to Event Trigger when a "Player fishes item" how could I Event Trigger when a "Player successfully trades with a villager"?

I want to trigger an event when a player successfully trades with a villager.

I've asked loads of people and no-one can help me, i'm open to the idea of custom code, I tried to do it but could not figure it out.

Even if this is not possible, how can I read a Villagers XP tag as this would allow me to figure out if its increased since you last right clicked the Villager and trigger it this way.

Any help is appreciated :)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ik i'm late and ye may have…
Sun, 07/28/2024 - 20:58

Ik i'm late and ye may have a method for vilager trades, but I just made one after not being able to find one as well. 

[yrrt]

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it has a setup for…
Sun, 07/28/2024 - 21:00

it has a setup for triggering events iffen ye'r creative enough to find it.