Posted August 27, 201411 yr I looked into the documentation but did not find an event for successful or unsuccessful villager trading. I have another mod that implements trading with its own entities with the regular merchant mechanics. My idea is to find out when a player has interact with one of the entities to trigger events that are important for the later game. It is a bit difficult to explain. I just wondered there are so many events for all sorts of interaction but none for trading. Maybe I just miss something.
August 27, 201411 yr It doesn't look like there is a villager trading event. There my be some kind of interact event for when the villager is right clicked though. It is possible to add villager trades. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
August 27, 201411 yr Looking at vanilla code (can't post it) the villagers "interact" event is what spurs the opening of the merchantGUI menu same method that lets you put saddles on pigs, milk cows. Currently updating my Mod to 1.10.2 https://bitbucket.org/hugo_the_dwarf/riseoftristram2016/src?at=master
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.