Make still oil flammable and prone to explode(like real oil)
This commit is contained in:
parent
8d98cba857
commit
0de81a36ea
1 changed files with 16 additions and 0 deletions
|
@ -59,5 +59,21 @@ public class BlockOilStill extends BlockStationary implements ILiquid {
|
|||
public void registerIcons(IconRegister iconRegister) {
|
||||
this.theIcon = new Icon[] { iconRegister.registerIcon("buildcraft:oil"), iconRegister.registerIcon("buildcraft:oil_flow") };
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initializeBlock()
|
||||
{
|
||||
setBurnProperties(blockID, 100, 100);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNeighborBlockChange(World World, int x, int y, int z, int id)
|
||||
{
|
||||
if (id == Block.fire.blockID ||
|
||||
id == Block.lavaStill.blockID || id == Block.lavaMoving.blockID)
|
||||
{
|
||||
World.createExplosion(null, x, y, z, 10, true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue