Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# EffectTypeLimitation - Prototype Docs

## EffectTypeLimitation :: union or array[union] Example code

A list of module effects, or just a single effect. Modules with other effects cannot be used on the machine. This means that both effects from modules and from surrounding beacons are restricted to the listed effects. If `allowed_effects` is an empty array, the machine cannot be affected by modules or beacons.

#### Union members

`"speed"` | Modules that increase or decrease the machine's speed.
`"productivity"` | Modules that make the machine produce bonus items.
`"consumption"` | Modules that increase or decrease the machine's energy consumption.
`"pollution"` | Modules that make the machine produce more or less pollution.
`"quality"` | Modules that provide a bonus chance to increase a product's quality.

## Examples

    -- Allow all module types
    allowed_effects = {"speed", "productivity", "consumption", "pollution", "quality"}

    -- Allow only modules that affect speed
    allowed_effects = "speed"

Type used in

- BeaconPrototype::allowed_effects
- CraftingMachinePrototype::allowed_effects
- LabPrototype::allowed_effects
- MiningDrillPrototype::allowed_effects