Topic category: Help with MCreator modding
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.