Started by
MLGopposite
on
Topic category: Help with Minecraft modding (Java Edition)
obviously there is something here that im not understanding, but how do i make a custom chest, with like bigger slots and what not
Topic category: Help with Minecraft modding (Java Edition)
obviously there is something here that im not understanding, but how do i make a custom chest, with like bigger slots and what not
Simple: You create a similar block with a chest and in Events you choose for the Right-Click appeared a GUI and make a gui like a chest :). If you do not understand tell me to explain better!
@#1 yeah im a little confused, when creating a block what does the "does block have inventory?" part mean if you create the chest in GUI creator? Thanks!
You must link that GUI to a block with an inventory in the GUI creation menu right beneath the "define GUI" button. A gui can currently only store items if it is directly linked with a block with an inventory. Example:
Create a block, yadda yadda, at the end when asked if the block has an inventory, check it off and make the number 64 or something, its just an example.
Make a new gui, and before clicking "define gui" click on the button beneath to link the GUI with the block with inventory you just made
Add a few input slots to the GUI and save it
Now open up your block and add an "on right clicked" event then select "open basic GUI" and select your new GUI from the drop down. Save, recompile, test. Voila ;) experiment with that until you get what you're looking for.
@#2 thanks homie!
@#2.1 Anytime man
Doesn't work for me it always crashes >_< .
Even though I did everything right.
So how do I make the texture with the opening and latch and stuff
@#4 What do you mean? An animated texture for a chest or an animation of the models like the minecraft chest when it opens?
@ArcaneMortis both
@#4 both
@#5 This is a link to a .json animation tool, you just need to make "frames" of different states of animation. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tool…
https://mcreator.pylo.co/forum/31135/animated-blocks-and-textures
^ This thread will help ya out with the animated texture part. Hope this helps, let me know if I can do anymore :]
I've done as asked, but for whatever reason, when I open the block's inventory and drag something into it, it looks fine, but when I hit ESC to close the inventory and open it back up, it's gone. :( Is there something I need to do to save the inventory in the object before closing it or something?
Sorry, for some reason I put that in the wrong thread .... apologies!
Make a block. Make that the block has an inventory of 1 slot, for example.
Make a gui, add an inventory inherted from block and add an imut slot
Add an event for the block : when right-clicked open GUi