Topic category: Help with Minecraft modding (Java Edition)
Hi, I'm facing a problem that I've kind of given up on for now, but I intend to solve in the future.
I'm creating a workbench, to be more precise a sword workbench, where I want a menu similar to the villagers', which would show the swords on the sides, resources and quantities. And of course, I wanted to be able to make it as if I could store items in it too, even though it would only be about a 2x3 inventory to store resources that I would create.
Could someone help me with this? After all, I've tried several things and still haven't been able to make a villagers' menu, not even tutorial videos or anything like that, I've searched in all languages, and nothing. If anyone can help me, I'd appreciate it.
(Translated by Google Translate)
I don't think there's a way to make a scrollable window like the villager UI without coding, but you might be able to find a plugin for that.
For the actual trading functionality of the villagers, you could probably just add some input slots and an output slot, then give the input slots an "on content change" procedure that sets the output slot to whatever recipe the items in the input slots correlate to, then give the output slot a "when item taken from slot" procedure that removes the appropriate items from the input slots.