Combustion Engine

Link to combustion-engine

Requires BuildCraft Energy

Class path: mods.buildcraft.CombustionEngine

To use, import the class with import mods.buildcraft.CombustionEngine; at the beginning of your script.

Adding a Clean Fuel

Link to adding-a-clean-fuel

CombustionEngine.addCleanFuel(liquid, powerPerTick, timePerBucket);

  • liquid <ILiquidStack> The liquid to be used as fuel
  • powerPerTick <double> Power output in MJ per tick
  • timePerBucket <int> Amount of ticks that 1,000 mB (1 bucket) should run for
ZenScript
Copy
import mods.buildcraft.CombustionEngine;

CombustionEngine.addCleanFuel(<liquid:iron>, 32.0, 1200);

Adding a Dirty Fuel

Link to adding-a-dirty-fuel

CombustionEngine.addDirtyFuel(lFuel, powerPerTick, timePerBucket, lResidue);

  • lFuel <ILiquidStack> The liquid to be used as fuel
  • powerPerTick <double> Power output in MJ per tick
  • timePerBucket <int> Amount of ticks that 1,000 mB (1 bucket) should run for
  • lResidue <ILiquidStack> The residue fluid, per bucket of the original fuel
ZenScript
Copy
import mods.buildcraft.CombustionEngine;

CombustionEngine.addDirtyFuel(<liquid:iron>, 32.0, 1200, <liquid:water>);