Started by
adamkos1234
on
Topic category: Help with Minecraft modding (Java Edition)
hello,im currently creating a mod around ores and farming and im making a custom entity (that works as a normal villager) i have all of the textures,behavior and stuff but i dont know how to make the gui exactly like it is in normal minecraft and i would need the trades to include my custom items and for the trades to be random, like in normal minecraft each villager has different trades.example, you find 2 farmers,1 buys carrots for emerald and the other buys potatoes for emeralds. i want this system to work on my custom villager but i dont know how. can someone help me with it?
just make it a new villager profession (you probably already have) then make a villager trade mod element, select it for your custom villager profession, then edit the pricesand results and add more trades (inside that same mod element!) until you have added all of your custom trades (minecraft has villager trading softcoded so you dont have to make a new ui or anything).