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

# Factorio Runtime Docs Version 2.0.7

## LuaPrePlayerMinedEntityEventFilter :: table

#### Table fields

filter | :: `"ghost"` or `"rail"` or `"rail-signal"` or `"rolling-stock"` or `"robot-with-logistics-interface"` or `"vehicle"` or `"turret"` or `"crafting-machine"` or `"wall-connectable"` or `"transport-belt-connectable"` or `"circuit-network-connectable"` or `"type"` or `"name"` or `"ghost_type"` or `"ghost_name"` | 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`:

#### `type`

type | :: string | The prototype type.
The prototype type.

#### `name`

name | :: string | The prototype name.
The prototype name.

#### `ghost_type`

type | :: string | The ghost prototype type.
The ghost prototype type.

#### `ghost_name`

name | :: string | The ghost prototype name.
The ghost prototype name.