Guest User

Biome

a guest
Dec 7th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.53 KB | None | 0 0
  1. package net.wuerfel21.derpyshiz;
  2.  
  3. import net.minecraft.entity.monster.EntityWitch;
  4. import net.minecraft.entity.passive.EntityCow;
  5. import net.minecraft.entity.passive.EntityPig;
  6. import net.minecraft.world.biome.BiomeGenBase;
  7. import net.wuerfel21.derpyshiz.entity.EntityPiggycorn;
  8.  
  9. public class MagicBiomeGen extends BiomeGenBase{
  10.    
  11.     public MagicBiomeGen(int id) {
  12.         super(id);
  13.         this.setHeight(new Height(-0.1f,0.1f));
  14.         this.setColor(0xDB14AD);
  15.         this.setTemperatureRainfall(0.5F, 0.9F);
  16.         this.waterColorMultiplier = 0xDB14AD;
  17.         this.theBiomeDecorator.bigMushroomsPerChunk = 1;
  18.         this.theBiomeDecorator.flowersPerChunk = 10;
  19.         this.theBiomeDecorator.grassPerChunk = 100;
  20.         this.theBiomeDecorator.treesPerChunk = 20;
  21.         this.theBiomeDecorator.sandPerChunk = -999;
  22.         this.theBiomeDecorator.sandPerChunk2 = -999;
  23.         this.theBiomeDecorator.mushroomsPerChunk = 10;
  24.        
  25.         this.biomeName = "Magic Forest";
  26.        
  27.         this.spawnableCreatureList.clear();
  28.         this.spawnableCreatureList.add(new SpawnListEntry(EntityPiggycorn.class,20,2,6));
  29.         this.spawnableCreatureList.add(new SpawnListEntry(EntityPig.class,10,1,10));
  30.         this.spawnableCreatureList.add(new SpawnListEntry(EntityCow.class,5,5,7));
  31.        
  32.         this.spawnableMonsterList.add(new SpawnListEntry(EntityWitch.class,3,1,2));
  33.        
  34.         //this.theBiomeDecorator
  35.     }
  36.    
  37.     @Override
  38.     public int getBiomeGrassColor(int x, int y, int z)
  39.     {
  40.         return 0x7DF9FF;
  41.     }
  42.  
  43.     @Override
  44.     public int getBiomeFoliageColor(int x, int y, int z)
  45.     {
  46.         return 0x7DF9FF;
  47.     }
  48.  
  49.    
  50. }
Advertisement
Add Comment
Please, Sign In to add comment