Topic category: Bugs and solutions
So I am aware that we can't simply add custom trades with villagers or with created villagers. But I am making a mod with a special villager that opens up a GUI for trades.
Now in the GUI, the player can choose from a selection of buttons to make a trade. I've added a procedure where the GUI would then close, the 'currency' item is removed from the player's inventory and the 'product' item is then added in.
Now when I try this in-game, the button doesn't do anything.
Does anyone know how to make this work?