Started by
danhowe0
on
Topic category: Help with Minecraft modding (Bedrock Edition)
I want to create a villager with a GUI, but I don't want to add each GUI button by hand, since I only want to show the options that the user can afford. I was thinking of probably using a json file which is read and checked against the players inventory, but i dont really know how this would work! any ideas?
It's currently not possible to do that using plain MCreator, but it could be done with some custom code.
Make villager in blockbench
Convert villager into java/block
Fix villager : )
Add new java/block villager/trader to a structure you make
Use the structure block to to save structure with new villager trader inside the structure.
Import structure in Mcreator
Now you have a villager with trades that wont walk away haha. I use this method with all my traders. They look just like NPCs but they dont move. IMO it is better and with more control.
Chewy
not sure sorry