Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## Energy :: string Example code

Specifies an amount of electric energy in joules, or electric energy per time in watts.

Internally, the input in `Watt` or `Joule/second` is always converted into `Joule/tick`, where 1 second is equal to 60 ticks. This means it uses the following formula: `Power in Joule/tick = Power in Watt / 60`. See Power.

Supported Multipliers:

- `k`: 10^3, or 1 000

- `M`: 10^6

- `G`: 10^9

- `T`: 10^12

- `P`: 10^15

- `E`: 10^18

- `Z`: 10^21

- `Y`: 10^24

- `R`: 10^27

- `Q`: 10^30

## Example

    buffer_capacity = "5MJ"
    input_flow_limit = "300W"
    -- the following two lines result in the same power consumption:
    energy_usage = "60W"
    energy_usage = "1J" -- not recommended, Watt is convention for power

Type used in

- AgriculturalTowerPrototype::energy_usage
- AgriculturalTowerPrototype::crane_energy_usage
- AmmoTurretPrototype::energy_per_shot
- AmmoType::energy_consumption
- AsteroidCollectorPrototype::passive_energy_usage
- AsteroidCollectorPrototype::arm_energy_usage
- AsteroidCollectorPrototype::arm_slow_energy_usage
- BeaconPrototype::energy_usage
- BeltImmunityEquipmentPrototype::energy_consumption
- BoilerPrototype::energy_consumption
- BurnerGeneratorPrototype::max_power_output
- CarPrototype::consumption
- CombinatorPrototype::active_energy_usage
- CraftingMachinePrototype::energy_usage
- DontUseEntityInEnergyProductionAchievementPrototype::minimum_energy_produced
- ElectricEnergyInterfacePrototype::energy_production
- ElectricEnergyInterfacePrototype::energy_usage
- ElectricEnergySource::buffer_capacity
- ElectricEnergySource::input_flow_limit
- ElectricEnergySource::output_flow_limit
- ElectricEnergySource::drain
- EnergyShieldEquipmentPrototype::energy_per_shield
- EntityPrototype::heating_energy
- FluidPrototype::heat_capacity
- FluidPrototype::fuel_value
- FlyingRobotPrototype::max_energy
- FlyingRobotPrototype::energy_per_move
- FlyingRobotPrototype::energy_per_tick
- FusionReactorPrototype::power_input
- GeneratorEquipmentPrototype::power
- GeneratorPrototype::max_power_output
- HeatBuffer::specific_heat
- HeatBuffer::max_transfer
- HeatEnergySource::specific_heat
- HeatEnergySource::max_transfer
- InserterPrototype::energy_per_movement
- InserterPrototype::energy_per_rotation
- ItemPrototype::fuel_value
- LabPrototype::energy_usage
- LampPrototype::energy_usage_per_tick
- LightningPrototype::energy
- LoaderPrototype::energy_per_item
- LocomotivePrototype::max_power
- MiningDrillPrototype::energy_usage
- MovementBonusEquipmentPrototype::energy_consumption
- NightVisionEquipmentPrototype::energy_input
- OffshorePumpPrototype::energy_usage
- ProgrammableSpeakerPrototype::energy_usage_per_tick
- PumpPrototype::energy_usage
- RadarPrototype::energy_usage
- RadarPrototype::energy_per_sector
- RadarPrototype::energy_per_nearby_scan
- ReactorPrototype::consumption
- RoboportEquipmentPrototype::charging_energy
- RoboportEquipmentPrototype::spawn_minimum
- RoboportEquipmentPrototype::power
- RoboportPrototype::energy_usage
- RoboportPrototype::recharge_minimum
- RoboportPrototype::charging_energy
- RocketSiloPrototype::active_energy_usage
- RocketSiloPrototype::lamp_energy_usage
- SolarPanelEquipmentPrototype::power
- SolarPanelPrototype::production
- SpiderVehiclePrototype::movement_energy_consumption
- VehiclePrototype::braking_power