Guest User

Untitled

a guest
Jun 19th, 2016
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.craftesys.craftesys.generation;
  2. import java.util.Random;
  3.  
  4. import net.minecraft.entity.monster.EntitySkeleton;
  5. import net.minecraft.entity.monster.EntitySlime;
  6. import net.minecraft.entity.monster.EntitySpider;
  7. import net.minecraft.entity.monster.EntityZombie;
  8. import net.minecraft.init.Blocks;
  9. import net.minecraft.world.biome.BiomeGenBase;
  10. import net.minecraft.world.gen.feature.WorldGenTrees;
  11. import net.minecraft.world.gen.feature.WorldGenerator;
  12.  
  13. public class BiomeTest extends BiomeGenBase
  14. {
  15.  
  16. public BiomeTest(int id)
  17. {
  18. super(id);
  19.  
  20. this.setHeight(height_Default);
  21.  
  22. this.spawnableCreatureList.add(new SpawnListEntry(EntitySlime.class, 5, 2, 10));
  23. this.spawnableCreatureList.add(new SpawnListEntry(EntityZombie.class, 6, 3, 9));
  24. this.spawnableCreatureList.add(new SpawnListEntry(EntitySkeleton.class, 7, 4, 8));
  25. this.spawnableCreatureList.add(new SpawnListEntry(EntitySpider.class, 8, 5, 7));
  26.  
  27. this.theBiomeDecorator.treesPerChunk = 5;
  28. this.theBiomeDecorator.grassPerChunk = 2;
  29. this.theBiomeDecorator.bigMushroomsPerChunk = 2;
  30.  
  31.  
  32. this.topBlock = Blocks.redstone_block;
  33. this.fillerBlock = Blocks.redstone_block;
  34.  
  35. }
  36.  
  37. public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
  38. {
  39. return (WorldGenerator)(par1Random.nextInt(5) == 0 ? new WorldGenTrees(false, 4, 2, 2, false) : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : new WorldGenTrees(false, 4, 0, 0, false)));
  40. }
  41.  
  42. }
RAW Paste Data