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

# Factorio Prototype Docs Version 2.0.77

# DestroyDecorativesTriggerEffectItem - Prototype Docs

## DestroyDecorativesTriggerEffectItem :: struct

Inherits from TriggerEffectItem

## Properties

- default
- sorted

type | :: `"destroy-decoratives"` |
radius | :: float |
from_render_layer optional | :: RenderLayer |
to_render_layer optional | :: RenderLayer |
include_soft_decoratives optional | :: boolean | Soft decoratives are those where DecorativePrototype::grows_through_rail_path is `true`.
Soft decoratives are those where DecorativePrototype::grows_through_rail_path is `true`.
include_decals optional | :: boolean |
invoke_decorative_trigger optional | :: boolean |
decoratives_with_trigger_only optional | :: boolean | If `true`, only decoratives with a DecorativePrototype::trigger_effect will be destroyed.
If `true`, only decoratives with a DecorativePrototype::trigger_effect will be destroyed.

Inherited from TriggerEffectItem

repeat_count optional | :: uint16 |
repeat_count_deviation optional | :: uint16 |
probability optional | :: float | Must be greater than `0` and less than or equal to `1`.
Must be greater than `0` and less than or equal to `1`.
affects_target optional | :: boolean |
show_in_tooltip optional | :: boolean |
damage_type_filters optional | :: DamageTypeFilters | Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]

radius | :: float |
type | :: `"destroy-decoratives"` |
decoratives_with_trigger_only optional | :: boolean | If `true`, only decoratives with a DecorativePrototype::trigger_effect will be destroyed.
If `true`, only decoratives with a DecorativePrototype::trigger_effect will be destroyed.
from_render_layer optional | :: RenderLayer |
include_decals optional | :: boolean |
include_soft_decoratives optional | :: boolean | Soft decoratives are those where DecorativePrototype::grows_through_rail_path is `true`.
Soft decoratives are those where DecorativePrototype::grows_through_rail_path is `true`.
invoke_decorative_trigger optional | :: boolean |
to_render_layer optional | :: RenderLayer |

Inherited from TriggerEffectItem

affects_target optional | :: boolean |
damage_type_filters optional | :: DamageTypeFilters | Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
probability optional | :: float | Must be greater than `0` and less than or equal to `1`.
Must be greater than `0` and less than or equal to `1`.
repeat_count optional | :: uint16 |
repeat_count_deviation optional | :: uint16 |
show_in_tooltip optional | :: boolean |

## Properties

### type :: `"destroy-decoratives"`

### radius :: float

### from_render_layer :: RenderLayer optional

Default: first layer

### to_render_layer :: RenderLayer optional

Default: last layer

### include_soft_decoratives :: boolean optional

Default: `false`

Soft decoratives are those where DecorativePrototype::grows_through_rail_path is `true`.

### include_decals :: boolean optional

Default: `false`

### invoke_decorative_trigger :: boolean optional

Default: `true`

### decoratives_with_trigger_only :: boolean optional

Default: `false`

If `true`, only decoratives with a DecorativePrototype::trigger_effect will be destroyed.

Type used in

- TriggerEffect