More work on Nether biomes.
This commit is contained in:
parent
7e779edfbb
commit
6ccd3f590d
4 changed files with 21 additions and 4 deletions
|
@ -29,7 +29,7 @@ public class BiomeGenNetherGarden extends BiomeGenBase
|
||||||
this.customBiomeDecorator.mushroomsPerChunk = 30;
|
this.customBiomeDecorator.mushroomsPerChunk = 30;
|
||||||
this.customBiomeDecorator.bigMushroomsPerChunk = 30;
|
this.customBiomeDecorator.bigMushroomsPerChunk = 30;
|
||||||
this.customBiomeDecorator.netherWartPerChunk = 3;
|
this.customBiomeDecorator.netherWartPerChunk = 3;
|
||||||
this.customBiomeDecorator.netherGrassPerChunk = 8;
|
this.customBiomeDecorator.netherGrassPerChunk = 10;
|
||||||
this.customBiomeDecorator.glowshroomsPerChunk = 3;
|
this.customBiomeDecorator.glowshroomsPerChunk = 3;
|
||||||
this.customBiomeDecorator.toadstoolsPerChunk = 5;
|
this.customBiomeDecorator.toadstoolsPerChunk = 5;
|
||||||
this.spawnableMonsterList.clear();
|
this.spawnableMonsterList.clear();
|
||||||
|
|
|
@ -11,6 +11,7 @@ import net.minecraft.world.World;
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
import net.minecraft.world.biome.BiomeGenBase;
|
||||||
import net.minecraft.world.biome.SpawnListEntry;
|
import net.minecraft.world.biome.SpawnListEntry;
|
||||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
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.EntityGhast;
|
||||||
import net.minecraft.entity.monster.EntityMagmaCube;
|
import net.minecraft.entity.monster.EntityMagmaCube;
|
||||||
import net.minecraft.entity.monster.EntityPigZombie;
|
import net.minecraft.entity.monster.EntityPigZombie;
|
||||||
|
@ -27,7 +28,7 @@ public class BiomeGenNetherLava extends BiomeGenBase
|
||||||
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
||||||
this.topBlock = (byte)Block.netherrack.blockID;
|
this.topBlock = (byte)Block.netherrack.blockID;
|
||||||
this.fillerBlock = (byte)Block.netherrack.blockID;
|
this.fillerBlock = (byte)Block.netherrack.blockID;
|
||||||
this.customBiomeDecorator.grassPerChunk = 15;
|
this.customBiomeDecorator.grassPerChunk = 8;
|
||||||
this.customBiomeDecorator.netherLavaPerChunk = 20;
|
this.customBiomeDecorator.netherLavaPerChunk = 20;
|
||||||
this.customBiomeDecorator.generateAsh = true;
|
this.customBiomeDecorator.generateAsh = true;
|
||||||
this.spawnableMonsterList.clear();
|
this.spawnableMonsterList.clear();
|
||||||
|
@ -45,7 +46,7 @@ public class BiomeGenNetherLava extends BiomeGenBase
|
||||||
*/
|
*/
|
||||||
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
|
public WorldGenerator getRandomWorldGenForGrass(Random par1Random)
|
||||||
{
|
{
|
||||||
return new WorldGenDeadlands();
|
return new WorldGenFire();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
public void decorate(World par1World, Random par2Random, int par3, int par4)
|
||||||
|
|
|
@ -83,6 +83,14 @@ public class BlockBOPColorizedSapling extends BlockSapling
|
||||||
return this.canPlaceBlockOnSide(world, x, y, z, side);
|
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
|
@Override
|
||||||
public void updateTick(World world, int x, int y, int z, Random random)
|
public void updateTick(World world, int x, int y, int z, Random random)
|
||||||
{
|
{
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class BlockBOPSapling extends BlockSapling
|
||||||
switch (meta)
|
switch (meta)
|
||||||
{
|
{
|
||||||
case 7: // Loftwood
|
case 7: // Loftwood
|
||||||
return id == Blocks.holyGrass.get().blockID;
|
return id == Blocks.holyGrass.get().blockID || id == Block.grass.blockID;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return id == Block.grass.blockID || id == Block.dirt.blockID || id == Block.tilledField.blockID;
|
return id == Block.grass.blockID || id == Block.dirt.blockID || id == Block.tilledField.blockID;
|
||||||
|
@ -88,6 +88,14 @@ public class BlockBOPSapling extends BlockSapling
|
||||||
return this.canPlaceBlockOnSide(world, x, y, z, side);
|
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
|
@Override
|
||||||
public void updateTick(World world, int x, int y, int z, Random random)
|
public void updateTick(World world, int x, int y, int z, Random random)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue