111
Hello Planet Minecraft Community and welcome to my second modding tutorial on adding a Custom Egg Spawner to the current Minecraft client version, 1.2.5. Now, First things first, you are going to have to read my first modding tutorial on How to Add a Custom NPC. Once you've read that, we shall begin.
Like I said in the last tutorial, Create a mod_... file and register your NPC Entity there. Instead of typing:
=================================================
ModLoader.registerEntityID(Entity[Whatever].class, "[Whatever]",
ModLoader.getUniqueEntityId());
========================================================
Delete this method, and type in:
========================================================
ModLoader.registerEntityID(Entity[Whatever].class, "[Whatever]", 0x[Hexadecimal Value 1],
0x[Hexadecimal Value 2] ModLoader.getUniqueEntityId());
========================================================
Where I said [Hexadecimal Value 1] , This will be the Spawner Egg Base Color
Where I said [Hexadecimal Value 2], This will be the Spawner Egg Spot Color
Next, Save all your files, Recompile and Reobfuscate Minecraft and run.
Enjoy!
Like I said in the last tutorial, Create a mod_... file and register your NPC Entity there. Instead of typing:
=================================================
ModLoader.registerEntityID(Entity[Whatever].class, "[Whatever]",
ModLoader.getUniqueEntityId());
========================================================
Delete this method, and type in:
========================================================
ModLoader.registerEntityID(Entity[Whatever].class, "[Whatever]", 0x[Hexadecimal Value 1],
0x[Hexadecimal Value 2] ModLoader.getUniqueEntityId());
========================================================
Where I said [Hexadecimal Value 1] , This will be the Spawner Egg Base Color
Where I said [Hexadecimal Value 2], This will be the Spawner Egg Spot Color
Next, Save all your files, Recompile and Reobfuscate Minecraft and run.
Enjoy!
Tags |
tools/tracking
1211157
6
how-to-add-an-egg-spawner-in-minecraft-125
Create an account or sign in to comment.
Contest Disqualification
Uses/refers to a second blog that was posted before the start of the contest. The content included should be kept in a single blog.
Please read the contest rules carefully.