Make still oil flammable and prone to explode(like real oil)

This commit is contained in:
viliml 2013-05-13 20:43:50 +02:00
parent 8d98cba857
commit 0de81a36ea

View file

@ -60,4 +60,20 @@ public class BlockOilStill extends BlockStationary implements ILiquid {
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);
}
}
}