Guest User

Untitled

a guest
May 11th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. package fr.craftesys.craftesys.generation;
  2.  
  3. import fr.craftesys.craftesys.common.*;
  4.  
  5. import net.minecraft.block.Block;
  6.  
  7. import java.util.Random;
  8.  
  9. import fr.craftesys.craftesys.blocs.*;
  10. import fr.craftesys.craftesys.generation.*;
  11. import net.minecraft.entity.monster.EntitySkeleton;
  12. import net.minecraft.entity.monster.EntityZombie;
  13. import net.minecraft.init.Blocks;
  14. import net.minecraft.item.ItemBlock;
  15. import net.minecraft.world.biome.BiomeGenBase;
  16. import net.minecraft.world.gen.feature.WorldGenTrees;
  17. import net.minecraft.world.gen.feature.WorldGenerator;
  18.  
  19. public class GiantBiome extends BiomeGenBase
  20. {
  21. public GiantBiome(int id)
  22. {
  23. super(id);
  24.  
  25. this.setBiomeName("giant");
  26. this.topBlock = Blocks.diamond_ore;
  27. this.fillerBlock = Blocks.redstone_ore;
  28.  
  29.  
  30. this.theBiomeDecorator.treesPerChunk = 3;
  31. this.theBiomeDecorator.waterlilyPerChunk = 100;
  32. this.theBiomeDecorator.bigMushroomsPerChunk = 10;
  33.  
  34. this.spawnableCreatureList.add(new SpawnListEntry(EntitySkeleton.class, 5, 3, 3));
  35. this.spawnableCreatureList.add(new SpawnListEntry(EntityZombie.class, 5, 3, 3));
  36. this.spawnableWaterCreatureList.clear();
  37. this.spawnableMonsterList.clear();
  38.  
  39. this.addFlower(Blocks.red_flower, 4, 3);
  40. this.addFlower(Blocks.red_flower, 5, 3);
  41. this.addFlower(Blocks.red_flower, 7, 3);
  42. this.addFlower(Blocks.red_flower, 0, 20);
  43. this.addFlower(Blocks.yellow_flower, 0, 30);
  44.  
  45. this.setMinMaxHeight(0.2F, 3.9F);
  46. this.setTemperatureRainfall(0.8F, 1.4F);
  47.  
  48. }
  49.  
  50. private void setMinMaxHeight(float f, float g) {
  51.  
  52.  
  53. }
  54. public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
  55. {
  56. 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)));
  57. }
  58. }
Add Comment
Please, Sign In to add comment