Home

LightningProperties

Type

struct

Properties

lightnings_per_chunk_per_tick

search_radius

lightning_types

Cannot be an empty array. Names of lightning entities.

priority_rules

exemption_rules

lightning_multiplier_at_day

Must be in range [0, 1].

lightning_multiplier_at_night

Must be in range [0, 1].

multiplier_surface_property

When set, value of that surface property will be used as an additional multiplier to the lightning frequency.

Value of that surface property is divided by default_value which means a default value must be positive (cannot be 0). When surface property has value at default, then this additional multiplier has value of 1.

lightning_warning_icon

Icon to render on top of entities that are endangered by lightning. When not provided, a UtilitySprites::lightning_warning_icon will be used instead.