Started by
Jack4
on
Topic category: Help with Minecraft modding (Java Edition)
Does anyone know how could I add a button in the chest GUI? I have tried to open a new GUI with only the button when player open the chest but it doesn't work. It works if the block is a wood for example but the chest creat trouble. I also try with the command close any GUI but nothing.
There's no way to override Minecraft GUI's from MCreator interface as far as i know, maybe it would be easier if you create a new custom chest block with its own GUI
Thank you!
You will be more expert than me with mod, do you have any suggest for me?
I just want to put a button on the right of the ender chest GUI. If I create a new custom chest I have to set the ender chest texture and animation when it's opening further the procedure (I think it's not easy). I can try to use source code in Mcreator but I don't know if it'll override Minecraft GUI's. I can try to show a new GUI if the player LEFT clicks the chest (but in that case, I am afraid it's unbreakable anymore)
You could make it able to open a GUI with shift + left click. The problem is that blocks with custom GUI's can't hold items if the GUI is NOT linked to that block (and you can't link two GUI's in one block nor replace existing GUI's)
My advice is to create a new type of enderchest, maybe a "superior enderchest" with diferent crafting, and that chest having the special button you want in its own GUI. Its always better to create new stuff rather than editing Minecraft's stuff