Advertisement
Eragonn14900

Untitled

Nov 27th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. package com.reactioncraft.desert.common;
  2.  
  3. import java.util.Random;
  4.  
  5. import com.reactioncraft.core.Logger;
  6. import com.reactioncraft.integration.instances.IntegratedBlocks;
  7.  
  8. import net.minecraft.init.Blocks;
  9. import net.minecraft.util.math.BlockPos;
  10. import net.minecraft.world.World;
  11. import net.minecraft.world.biome.Biome;
  12. import net.minecraft.world.biome.BiomeDesert;
  13. import net.minecraft.world.chunk.ChunkPrimer;
  14. import net.minecraft.world.gen.feature.WorldGenDesertWells;
  15. import net.minecraft.world.gen.feature.WorldGenFossils;
  16.  
  17. public class BiomeGenReactionDesert extends BiomeDesert
  18. {
  19. private boolean logged = false;
  20. public BiomeGenReactionDesert(BiomeProperties par1)
  21. {
  22. super(par1);
  23. this.spawnableCreatureList.clear();
  24. this.topBlock = IntegratedBlocks.DarkSand.getDefaultState();
  25. this.fillerBlock = IntegratedBlocks.DarkSand.getDefaultState();
  26. System.out.println("Darky Biome found");
  27. }
  28.  
  29. public void decorate(World worldIn, Random rand, BlockPos pos)
  30. {
  31. super.decorate(worldIn, rand, pos);
  32.  
  33. if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.DESERT_WELL))
  34. if (rand.nextInt(1000) == 0)
  35. {
  36. int i = rand.nextInt(16) + 8;
  37. int j = rand.nextInt(16) + 8;
  38. BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
  39. (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
  40. }
  41.  
  42. if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.FOSSIL))
  43. if (rand.nextInt(64) == 0)
  44. {
  45. (new WorldGenFossils()).generate(worldIn, rand, pos);
  46. }
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement