Trimsku Posted October 12, 2021 Posted October 12, 2021 Is there a forge event for successful trading with a villager? I searched but did not find anything similar Quote
Trimsku Posted October 12, 2021 Author Posted October 12, 2021 @Luis_ST I want that when a player buys my item from a merchant, the villager is destroyed Quote
Luis_ST Posted October 12, 2021 Posted October 12, 2021 a idea not sure if it's work but you can register an AdvancementListerner to the Player in PlayerLoggedInEvent to the villager_trade AdvancementTrigger, then you need a bit logic inside the Listener to get the Villager with which the player trades (you can get from the World all Villager in a area then check if the trading player which is store in the Villager is the same player) and a you need to check if the player was trading with your trade after a successful tests you can remove the Villager 1 Quote
Recommended Posts
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.