Minecraft Blogs / Article

How to add an Egg Spawner in Minecraft 1.2.5

  • 1,833 views, 2 today
  • 3
  • 1
  • 1
Verfugungstrupp's Avatar Verfugungstrupp
Level 52 : Grandmaster Droid
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!
Tags

Create an account or sign in to comment.

1
08/04/2012 3:42 pm
Level 61 : High Grandmaster Pyro
plyr
plyr's Avatar
Disqualified Entry.
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome