Mob with Inventory and GUI?

Started by TheWarners on Fri, 01/27/2017 - 22:11

Topic category: Help with MCreator modding

Last seen on 20:20, 5. Dec 2017
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Mob with Inventory and GUI?
Fri, 01/27/2017 - 22:11

I want to make a mob with a GUI and Inventory so it can hold items for me.

Right now, I exploited a loophole and had the mob turn into a block with inventory when right clicked, and I had the GUI inheirit the inventory from the block. There's a button on the GUI to turn the block back into a mob, but when it turns back, any items it was carrying are destroyed.

I can READ Java code, but I can't write it.

I've tried looking at the code for the horse as well as trying to inherit the inventory from the Ender Chest. I've also tried looking at other open source mods that had mobs with guis and enventories, and I couldn't get it to work any other way.

I want to find a way to get the GUI to come up when the mob is right clicked on, WITHOUT turning the mob into a block, like what a horse does when you sneak.

I want to find a way to do that and have the items be kept when you close the GUI.

Last seen on 18:51, 9. Jul 2019
Joined Aug 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Maybe try making a block…
Mon, 11/05/2018 - 19:32

Maybe try making a block that you can assign a mob to?

And if you can do that, can you tell me how to do it too?