From 0de81a36eae0475196f02958e4786b931f5b62c3 Mon Sep 17 00:00:00 2001 From: viliml Date: Mon, 13 May 2013 20:43:50 +0200 Subject: [PATCH] Make still oil flammable and prone to explode(like real oil) --- common/buildcraft/energy/BlockOilStill.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/common/buildcraft/energy/BlockOilStill.java b/common/buildcraft/energy/BlockOilStill.java index 21bf3eed..f2597f7d 100644 --- a/common/buildcraft/energy/BlockOilStill.java +++ b/common/buildcraft/energy/BlockOilStill.java @@ -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); + } + } }