[SKIPPED] how to make mobs without spawn egg

Started by MattiDragon835 on Wed, 07/04/2018 - 08:48

Topic category: Help with modding (Java Edition)

Last seen on 11:40, 4. Oct 2020
Joined Jun 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[SKIPPED] how to make mobs without spawn egg
Sat, 07/14/2018 - 14:05 (edited)

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
Last seen on 03:21, 25. Nov 2020
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You want a storage box as an…
Sun, 07/08/2018 - 17:05

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.)

Last seen on 22:39, 24. May 2020
Joined Feb 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you can add a procedure…
Tue, 07/10/2018 - 17:29

you can add a procedure where when you right click it opens a gui with inventory

Last seen on 11:40, 4. Oct 2020
Joined Jun 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I now but two things first I…
Sat, 07/14/2018 - 14:02

I now but two things first I don't make the mod and a entity is easer to textuere

Last seen on 14:59, 29. Nov 2020
Joined May 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I made a test mob it…
Sat, 07/21/2018 - 21:22

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