Jump to content

Musebo

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Musebo

  1. I'll tell you what I did to change the loot from killing a sheep, I think it is similar to changing the drops of a iron ore block. I removed the spawning of sheep in my main mod file. I added my the spawning of a sheep(my mod sheep). Then I created the class of 'my mod sheep' and extended the vanilla Minecraft Sheep class. I used a @Override command to override the code that defined the drops when sheep gets killed.
  2. Hmm, I had seen this class before, but I thought it was about the block 'spawner'. This is because the eligibleChunksForSpawning = a 17*17 area around the player. But, thanks. This code looks really difficult to understand, but I'll try to make something out of it.
  3. Hello everyone, I'm trying to understand how animals spawn into the world. I've been trough a lot of reading code, but I cannot see the hierarchy of the code. Could you help me out? This is how far I came to understand: In 'BiomeGenBase' there is a protected list called: 'spawnableCreatureList' this is a arraylist. The 4 animals (sheep, cow, chicken and pig) are added to this list with 'SpawnListEntry'. It defines what the min. and max. spawn amount per group is. Example: But how does it determine that cows don't spawn in deserts? This information is part of something called: 'BiomeDecorator', So I'm assuming spawning animals is decorating the biome. All this is information about what and in what amount it should spawn animals. But what I'm really looking for is the code that actually spawns the animals.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.