Change the EntitySomething.class to your mob or entities class. Change the "Name" to the name of your mob, it will be used when spawning the mob in single player commands. Change the ID to whatever you want, I recommend using ModLoader's
ModLoader.getUniqueEntityID()
The two 0x000000 are the colors of the egg. The first one is the back part and the second is the front part, or the spots on the egg. To change them, you will have to get HTML color codes, which can be generated or picked here: http://www.colorpicker.com/ ; When you get yours, it should look similar to what color I picked, blue. #1B56E0, all you have to do is copy the code and leave the # symbol out, replace the 000000 with the color you picked, eg. 1B56E0, Final product should look like this or similar: 0x1B56E0. Do the same for the spots. Then finally, you should be left with "Name2". That is what is going to show up on the spawn egg, eg. Spawn Name2, Change it to the mob's name. Test it and you should see the egg in the creative inventory.
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:\Users\Kenneth\Desktop\mcp\jars\.\crash-reports\crash-2012-10-25_19.47.57-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT c48ef28 --------
Generated 25.10.12 19:47
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1769)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:830)
at net.minecraft.client.Minecraft.run(Minecraft.java:760)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 37dae6a3 ----------
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:\Users\Kenneth\Desktop\mcp\jars\.\crash-reports\crash-2012-10-25_19.47.57-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT c48ef28 --------
Generated 25.10.12 19:47
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1769)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:830)
at net.minecraft.client.Minecraft.run(Minecraft.java:760)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 37dae6a3 ----------
I am getting an error on the code in the load() method. The problem is that the registerEntityID is (class, string, int) but it wants to be a (class, string, object) instead. The only way to fix it is to edit the modloader class, which I don't want to do.
To start off, you will have to first make a mob. Then after you have done that, you will have to add these 2 methods inside of your mod_ class.
After you have added them, you will have to go to your load() method and find where you registered your entity or mob. It will look like this The ID is usually
After you have found that, you will have to replace it with this line of code.
Change the EntitySomething.class to your mob or entities class. Change the "Name" to the name of your mob, it will be used when spawning the mob in single player commands. Change the ID to whatever you want, I recommend using ModLoader's
The two 0x000000 are the colors of the egg. The first one is the back part and the second is the front part, or the spots on the egg. To change them, you will have to get HTML color codes, which can be generated or picked here: http://www.colorpicker.com/ ; When you get yours, it should look similar to what color I picked, blue. #1B56E0, all you have to do is copy the code and leave the # symbol out, replace the 000000 with the color you picked, eg. 1B56E0, Final product should look like this or similar: 0x1B56E0. Do the same for the spots. Then finally, you should be left with "Name2". That is what is going to show up on the spawn egg, eg. Spawn Name2, Change it to the mob's name. Test it and you should see the egg in the creative inventory.
Hope this helps
Sorry for bump lol
----------------------
Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to C:\Users\Kenneth\Desktop\mcp\jars\.\crash-reports\crash-2012-10-25_19.47.57-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT c48ef28 --------
Generated 25.10.12 19:47
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0_07, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 914962504 bytes (872 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- ModLoader: Mods loaded: 3
ModLoader 1.3.2
mod_modmain Minecraft 1.3.2
mod_modportalpig 1.3.2
- LWJGL: 2.4.2
- OpenGL: AMD Radeon HD 6310 Graphics GL version 4.1.10429 Compatibility Profile Context, ATI Technologies Inc.
- Is Modded: Very likely
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- World MpServer Entities: 5 total; [EntityClientPlayerMP['Player545'/36, l='MpServer', x=-301,83, y=12,62, z=253,36], EntityPig['Pig'/63, l='MpServer', x=-285,22, y=64,00, z=256,25], EntityPig['Pig'/6, l='MpServer', x=-255,65, y=64,00, z=264,17], EntityVillager['Villager'/39, l='MpServer', x=-373,41, y=5,00, z=328,48], EntityPig['Pig'/0, l='MpServer', x=-287,44, y=64,00, z=201,09]]
- World MpServer Players: 1 total; [EntityClientPlayerMP['Player545'/36, l='MpServer', x=-301,83, y=12,62, z=253,36]]
- World MpServer Chunk Stats: MultiplayerChunkCache: 441
- Forced Entities: 5 total; [EntityPig['Pig'/0, l='MpServer', x=-287,44, y=64,00, z=201,09], EntityVillager['Villager'/39, l='MpServer', x=-373,41, y=5,00, z=328,48], EntityPig['Pig'/6, l='MpServer', x=-255,65, y=64,00, z=264,17], EntityClientPlayerMP['Player545'/36, l='MpServer', x=-301,83, y=12,62, z=253,36], EntityPig['Pig'/63, l='MpServer', x=-285,22, y=64,00, z=256,25]]
- Retry Entities: 0 total; []
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1769)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:830)
at net.minecraft.client.Minecraft.run(Minecraft.java:760)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 37dae6a3 ----------
can you help?
Pretty sure the answer can be found here:
http://www.minecraftforum.net/topic/1417041-mod-entity-problem-updated-with-forge/