Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Basically decided to make my own mob, I have:

  • Created my mob's entity class
  • Created my mobs model class
  • Drawn the model
  • Added the function call for addMapping within the EntityList class

I'm stuck on what to do next. I've tried finding the code that deals with passive animal spawning in the world, however I can't seem to find it.

Help greatly appreciated.

share|improve this question

migrated from gaming.stackexchange.com Aug 28 '11 at 14:15

This question came from our site for passionate videogamers on all platforms.

    
I've made a new proposal for a modding site on stackexchange, if you want to give it your vote. Can't hurt, even if someone answers your question here. –  Nick Wiggill Aug 31 '11 at 13:08
    
And do a search on "minecraft", you will find results on this site re modding that game. –  Nick Wiggill Aug 31 '11 at 13:13
    
World.java:2818 - during the tick method - SpawnerAnimals.performSpawning(this, spawnHostileMobs, spawnPeacefulMobs && worldInfo.getWorldTime() % 400L == 0L); –  liamzebedee Mar 17 '12 at 3:55

1 Answer 1

Well I'm not going to write a whole tutorial (because I have limited time right now) but I will link you to some resources and give some tips.

Firstly if you are going to mod Minecraft in any way, you want to go to the modding wiki.

I had a look around the wiki, and found a basic mob creation tutorial.

There is a massive mod creation tutorial here. You should have a skim through that

I picked out some individual tutorials that you might like-

Now on to the model creation, this took me a while to find, but I found 3 modelling programs.

  • Techne - Allows you to create models, which will then be converted into Java code. has alot of user tutorials on how to create replicas of vanilla models (cows, endermen etc.)
  • MCModeller - Quite simple GUI, live preview. Coded in Java
  • FMCModeller - GUI is not as simple, but it looks extremely professional with 2 view, one for the spritesheet and one for displaying the model live (which you can rotate etc.). Coded in Flash.

For the passive animal spawning code, I suggest you download Minecraft Coders Pack MCP, and search through the source files. The way I first found how to mod the terrain generator, was searching the source directory for the blockID I was modding. I suggest you search for terms like "spawn" and "entity".

You must understand however, that when Mojang releases modding support, this will be much easier, so be prepared to change your code. Also with the newest Adventure Updates, Mojang is constantly changing the code.

share|improve this answer

protected by Community Mar 19 at 13:16

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?