Started by
MattiDragon835
on
Topic category: Help with Minecraft modding (Java Edition)
I need to make a storage box. Is there any way to remove the spawn egg.
Edited by MattiDragon835 on Sat, 07/14/2018 - 14:05
Topic category: Help with Minecraft modding (Java Edition)
I need to make a storage box. Is there any way to remove the spawn egg.
You want a storage box as an entity? You can just make a block and give it an inventory, so why do you want to make it a mob? (Spawn Eggs are only used for mobs.)
you can add a procedure where when you right click it opens a gui with inventory
I now but two things first I don't make the mod and a entity is easer to textuere
I made a test mob it MCreator to see where in the code the mob egg is located. Here are the results:
Although I can't seem to find how to remove the spawn egg from the game, I can make it not work.
At line ~82 of the mob's code, under public void preInit replace "instance, 64, 1," with "instance, 0, 1"
https://imgur.com/a/jUJr23h <--- Image