Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.craftesys.craftesys.generation;
- import java.util.Random;
- import net.minecraft.entity.monster.EntitySkeleton;
- import net.minecraft.entity.monster.EntitySlime;
- import net.minecraft.entity.monster.EntitySpider;
- import net.minecraft.entity.monster.EntityZombie;
- import net.minecraft.init.Blocks;
- import net.minecraft.world.biome.BiomeGenBase;
- import net.minecraft.world.gen.feature.WorldGenTrees;
- import net.minecraft.world.gen.feature.WorldGenerator;
- public class BiomeTest extends BiomeGenBase
- {
- public BiomeTest(int id)
- {
- super(id);
- this.setHeight(height_Default);
- this.spawnableCreatureList.add(new SpawnListEntry(EntitySlime.class, 5, 2, 10));
- this.spawnableCreatureList.add(new SpawnListEntry(EntityZombie.class, 6, 3, 9));
- this.spawnableCreatureList.add(new SpawnListEntry(EntitySkeleton.class, 7, 4, 8));
- this.spawnableCreatureList.add(new SpawnListEntry(EntitySpider.class, 8, 5, 7));
- this.theBiomeDecorator.treesPerChunk = 5;
- this.theBiomeDecorator.grassPerChunk = 2;
- this.theBiomeDecorator.bigMushroomsPerChunk = 2;
- this.topBlock = Blocks.redstone_block;
- this.fillerBlock = Blocks.redstone_block;
- }
- 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