More work on Nether biomes.

This commit is contained in:
Matt Caughey 2013-05-21 16:35:04 -04:00
parent 7e779edfbb
commit 6ccd3f590d
4 changed files with 21 additions and 4 deletions

View File

@ -29,7 +29,7 @@ public class BiomeGenNetherGarden extends BiomeGenBase
this.customBiomeDecorator.mushroomsPerChunk = 30;
this.customBiomeDecorator.bigMushroomsPerChunk = 30;
this.customBiomeDecorator.netherWartPerChunk = 3;
this.customBiomeDecorator.netherGrassPerChunk = 8;
this.customBiomeDecorator.netherGrassPerChunk = 10;
this.customBiomeDecorator.glowshroomsPerChunk = 3;
this.customBiomeDecorator.toadstoolsPerChunk = 5;
this.spawnableMonsterList.clear();

View File

@ -11,6 +11,7 @@ import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.SpawnListEntry;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraft.world.gen.feature.WorldGenFire;
import net.minecraft.entity.monster.EntityGhast;
import net.minecraft.entity.monster.EntityMagmaCube;
import net.minecraft.entity.monster.EntityPigZombie;
@ -27,7 +28,7 @@ public class BiomeGenNetherLava extends BiomeGenBase
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.topBlock = (byte)Block.netherrack.blockID;
this.fillerBlock = (byte)Block.netherrack.blockID;
this.customBiomeDecorator.grassPerChunk = 15;
this.customBiomeDecorator.grassPerChunk = 8;
this.customBiomeDecorator.netherLavaPerChunk = 20;
this.customBiomeDecorator.generateAsh = true;
this.spawnableMonsterList.clear();
@ -45,7 +46,7 @@ public class BiomeGenNetherLava extends BiomeGenBase
*/
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
{
return new WorldGenDeadlands();
return new WorldGenFire();
}
public void decorate(World par1World, Random par2Random, int par3, int par4)

View File

@ -82,6 +82,14 @@ public class BlockBOPColorizedSapling extends BlockSapling
else
return this.canPlaceBlockOnSide(world, x, y, z, side);
}
protected boolean canThisPlantGrowOnThisBlockID(int blockID, int metadata)
{
if (metadata == 1) //Mangrove
return blockID == Block.sand.blockID;
else
return blockID == Block.grass.blockID || blockID == Block.dirt.blockID || blockID == Block.tilledField.blockID;
}
@Override
public void updateTick(World world, int x, int y, int z, Random random)

View File

@ -79,7 +79,7 @@ public class BlockBOPSapling extends BlockSapling
switch (meta)
{
case 7: // Loftwood
return id == Blocks.holyGrass.get().blockID;
return id == Blocks.holyGrass.get().blockID || id == Block.grass.blockID;
default:
return id == Block.grass.blockID || id == Block.dirt.blockID || id == Block.tilledField.blockID;
@ -87,6 +87,14 @@ public class BlockBOPSapling extends BlockSapling
else
return this.canPlaceBlockOnSide(world, x, y, z, side);
}
protected boolean canThisPlantGrowOnThisBlockID(int blockID, int metadata)
{
if (metadata == 7) //Loftwood
return blockID == Blocks.holyGrass.get().blockID || blockID == Block.grass.blockID;
else
return blockID == Block.grass.blockID || blockID == Block.dirt.blockID || blockID == Block.tilledField.blockID;
}
@Override
public void updateTick(World world, int x, int y, int z, Random random)