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(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

View file

@ -33,7 +33,7 @@ public class BiomeExtHell extends ExtendedBiomeWrapper
Biomes.HELL.theBiomeDecorator.sandPerChunk2 = -999;
//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

View file

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