villager like gui

Started by Viprin5657MC on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Nov 2020
Points:
607

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
villager like gui

how do you make a villager like gui?

i want to make a trader, but i dont know how to make the gui.

i've tampered with the gui, made a backpack, but want to make a trading gui,

tell me how in replies please.

Active 4 years ago
Joined Dec 2020
Points:
572

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
NBT, and maybe JSON. incase…
Tue, 12/01/2020 - 14:40

NBT, and maybe JSON.

incase you don't know what JSON is, this is JSON:

"root_element":{
  "element":value
  "element":value
}

 

Active 4 years ago
Joined Nov 2020
Points:
607

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
yeah i dont know how.. this…
Tue, 12/01/2020 - 23:29

yeah i dont know how.. this doesnt really help either, thanks though.

 

Active 1 year ago
Joined Dec 2018
Points:
680

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
I will test this myself…
Wed, 08/24/2022 - 22:31

I will test this myself later on because I am also struggling with this.

You might have to either:

- Set the Mob to have Villager AI
- Make custom procedures or a new GUI with a similar layout

-Take the villager's code for the trading system and tweak it after applying it to your custom mob

 

I'll post later if I find anything that works. You can also directly edit code in Mcreator. Here's a tutorial since I am not good at explaining the technical instructions on how to do that here - https://mcreator.net/wiki/mcreators-code-editor