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

# Factorio Prototype Docs Version 2.0.7

## DamageTypeFilters :: struct or DamageTypeID or array[DamageTypeID] Example code

## Properties

- default
- sorted

types | :: DamageTypeID or array[DamageTypeID] | The damage types to filter for.
The damage types to filter for.
whitelist optional | :: bool | Whether this is a whitelist or a blacklist of damage types. [...]
Whether this is a whitelist or a blacklist of damage types. [...]

types | :: DamageTypeID or array[DamageTypeID] | The damage types to filter for.
The damage types to filter for.
whitelist optional | :: bool | Whether this is a whitelist or a blacklist of damage types. [...]
Whether this is a whitelist or a blacklist of damage types. [...]

## Properties

### types :: DamageTypeID or array[DamageTypeID]

The damage types to filter for.

### whitelist :: bool optional

Default: `false`

Whether this is a whitelist or a blacklist of damage types. Defaults to being a blacklist.

## Examples

    damage_type_filters = "fire"

    damage_type_filters = { "fire" } -- more damage types could be specified here

    damage_type_filters =
    {
      whitelist = false, -- optional
      types = "fire"
    }

    damage_type_filters =
    {
      whitelist = false, -- optional
      types = { "fire" } -- more damage types could be specified here
    }

Type used in

- TriggerEffectItem::damage_type_filters