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

# Factorio Runtime Docs Version 2.0.77

# DecorativePrototypeFilter - Runtime Docs

## DecorativePrototypeFilter :: table

#### Table fields

filter | :: `"decal"` or `"autoplace"` or `"collision-mask"` | The condition to filter on.
The condition to filter on.
mode | :: `"or"` or `"and"`? | How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
invert | :: boolean? | Inverts the condition. Default is `false`.
Inverts the condition. Default is `false`.

Other attributes may be specified depending on `filter`:

#### `collision-mask`

mask | :: CollisionLayerID or CollisionMask | Name of one layer or a full collision mask.
Name of one layer or a full collision mask.
mask_mode | :: `"collides"` or `"layers-equals"` or `"contains-any"` or `"contains-all"` | How to filter.
How to filter.

Concept used in

- LuaPrototypes::get_decorative_filtered()
- PrototypeFilter