Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Combustion Engine

Requires BuildCraft Energy

Class path: mods.buildcraft.CombustionEngine

Use

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

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
script.zs
import mods.buildcraft.CombustionEngine;
CombustionEngine.addCleanFuel(<liquid:iron>, 32.0, 1200);

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
script.zs
import mods.buildcraft.CombustionEngine;
CombustionEngine.addDirtyFuel(<liquid:iron>, 32.0, 1200, <liquid:water>);