Fixed overgrown stone, toned down the frequency of wasp hives

This commit is contained in:
Forstride 2017-04-22 11:27:29 -04:00
parent 984e4e395c
commit 8f6d19f853
3 changed files with 17 additions and 5 deletions

View File

@ -58,7 +58,7 @@ public class BOPHellBiome extends BOPBiome
this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityMagmaCube.class, 2, 4, 4)); this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityMagmaCube.class, 2, 4, 4));
this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityEnderman.class, 1, 4, 4)); this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityEnderman.class, 1, 4, 4));
this.addGenerator("hive", GeneratorStage.PRE, (new GeneratorHive.Builder()).amountPerChunk(0.3F).create()); this.addGenerator("hive", GeneratorStage.PRE, (new GeneratorHive.Builder()).amountPerChunk(0.2F).create());
} }
@Override @Override

View File

@ -33,7 +33,7 @@ public class BiomeExtHell extends ExtendedBiomeWrapper
Biomes.HELL.theBiomeDecorator.sandPerChunk2 = -999; Biomes.HELL.theBiomeDecorator.sandPerChunk2 = -999;
//this.theBiomeDecorator.generateLakes = false; //this.theBiomeDecorator.generateLakes = false;
this.addGenerator("hive", GeneratorStage.PRE, (new GeneratorHive.Builder()).amountPerChunk(0.3F).create()); this.addGenerator("hive", GeneratorStage.PRE, (new GeneratorHive.Builder()).amountPerChunk(0.2F).create());
} }
@Override @Override

View File

@ -437,15 +437,27 @@ public class BlockBOPGrass extends BlockGrass implements IBOPBlock, ISustainsPla
@Override @Override
public Item getItemDropped(IBlockState state, Random rand, int fortune) public Item getItemDropped(IBlockState state, Random rand, int fortune)
{ {
switch ((BOPGrassType) state.getValue(VARIANT))
{
case OVERGROWN_STONE:
return Item.getItemFromBlock(Blocks.COBBLESTONE.getDefaultState().getBlock());
default:
return Item.getItemFromBlock(getDirtBlock(state)); return Item.getItemFromBlock(getDirtBlock(state));
} }
}
// goes hand in hand with getItemDropped() above to determine precisely what is dropped // goes hand in hand with getItemDropped() above to determine precisely what is dropped
@Override @Override
public int damageDropped(IBlockState state) public int damageDropped(IBlockState state)
{ {
switch ((BOPGrassType) state.getValue(VARIANT))
{
case OVERGROWN_STONE:
return 0;
default:
return getDirtBlockMeta(state); return getDirtBlockMeta(state);
} }
}
// get the blockstate which corresponds to the type of dirt which this grass variant grows on // get the blockstate which corresponds to the type of dirt which this grass variant grows on
@ -465,7 +477,7 @@ public class BlockBOPGrass extends BlockGrass implements IBOPBlock, ISustainsPla
case OVERGROWN_NETHERRACK: case OVERGROWN_NETHERRACK:
return Blocks.NETHERRACK.getDefaultState(); return Blocks.NETHERRACK.getDefaultState();
case OVERGROWN_STONE: case OVERGROWN_STONE:
return Blocks.COBBLESTONE.getDefaultState(); return Blocks.STONE.getDefaultState();
case ORIGIN: case DAISY: default: case ORIGIN: case DAISY: default:
return Blocks.DIRT.getStateFromMeta(BlockDirt.DirtType.DIRT.getMetadata()); return Blocks.DIRT.getStateFromMeta(BlockDirt.DirtType.DIRT.getMetadata());
} }