Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.craftesys.craftesys.generation;
- import fr.craftesys.craftesys.common.*;
- import net.minecraft.block.Block;
- import java.util.Random;
- import fr.craftesys.craftesys.blocs.*;
- import fr.craftesys.craftesys.generation.*;
- import net.minecraft.entity.monster.EntitySkeleton;
- import net.minecraft.entity.monster.EntityZombie;
- import net.minecraft.init.Blocks;
- import net.minecraft.item.ItemBlock;
- import net.minecraft.world.biome.BiomeGenBase;
- import net.minecraft.world.gen.feature.WorldGenTrees;
- import net.minecraft.world.gen.feature.WorldGenerator;
- public class GiantBiome extends BiomeGenBase
- {
- public GiantBiome(int id)
- {
- super(id);
- this.setBiomeName("giant");
- this.topBlock = Blocks.diamond_ore;
- this.fillerBlock = Blocks.redstone_ore;
- this.theBiomeDecorator.treesPerChunk = 3;
- this.theBiomeDecorator.waterlilyPerChunk = 100;
- this.theBiomeDecorator.bigMushroomsPerChunk = 10;
- this.spawnableCreatureList.add(new SpawnListEntry(EntitySkeleton.class, 5, 3, 3));
- this.spawnableCreatureList.add(new SpawnListEntry(EntityZombie.class, 5, 3, 3));
- this.spawnableWaterCreatureList.clear();
- this.spawnableMonsterList.clear();
- this.addFlower(Blocks.red_flower, 4, 3);
- this.addFlower(Blocks.red_flower, 5, 3);
- this.addFlower(Blocks.red_flower, 7, 3);
- this.addFlower(Blocks.red_flower, 0, 20);
- this.addFlower(Blocks.yellow_flower, 0, 30);
- this.setMinMaxHeight(0.2F, 3.9F);
- this.setTemperatureRainfall(0.8F, 1.4F);
- }
- private void setMinMaxHeight(float f, float g) {
- }
- public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
- {
- 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)));
- }
- }
Add Comment
Please, Sign In to add comment