Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.reactioncraft.desert.common;
- import java.util.Random;
- import com.reactioncraft.core.Logger;
- import com.reactioncraft.integration.instances.IntegratedBlocks;
- import net.minecraft.init.Blocks;
- import net.minecraft.util.math.BlockPos;
- import net.minecraft.world.World;
- import net.minecraft.world.biome.Biome;
- import net.minecraft.world.biome.BiomeDesert;
- import net.minecraft.world.chunk.ChunkPrimer;
- import net.minecraft.world.gen.feature.WorldGenDesertWells;
- import net.minecraft.world.gen.feature.WorldGenFossils;
- public class BiomeGenReactionDesert extends BiomeDesert
- {
- private boolean logged = false;
- public BiomeGenReactionDesert(BiomeProperties par1)
- {
- super(par1);
- this.spawnableCreatureList.clear();
- this.topBlock = IntegratedBlocks.DarkSand.getDefaultState();
- this.fillerBlock = IntegratedBlocks.DarkSand.getDefaultState();
- System.out.println("Darky Biome found");
- }
- public void decorate(World worldIn, Random rand, BlockPos pos)
- {
- super.decorate(worldIn, rand, pos);
- if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.DESERT_WELL))
- if (rand.nextInt(1000) == 0)
- {
- int i = rand.nextInt(16) + 8;
- int j = rand.nextInt(16) + 8;
- BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
- (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
- }
- if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.FOSSIL))
- if (rand.nextInt(64) == 0)
- {
- (new WorldGenFossils()).generate(worldIn, rand, pos);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement