Home

LuaTilePrototype

Prototype of a tile.

Parent

Attributes

collision_mask

The collision mask this tile uses

layer

autoplace_specification

Autoplace specification for this prototype, if any.

walking_speed_modifier

vehicle_friction_modifier

map_color

decorative_removal_probability

The probability that decorative entities will be removed from on top of this tile when this tile is generated.

automatic_neighbors

allowed_neighbors

needs_correction

If this tile needs correction logic applied when it's generated in the world.

mineable_properties

fluid

The fluid offshore pump produces on this tile, if any.

next_direction

The next direction of this tile, if any. Used when a tile has multiple directions (such as hazard concrete)

items_to_place_this

Items that when placed will produce this tile, if any. Construction bots will choose the first item in the list to build this tile.

can_be_part_of_blueprint

False if this tile is not allowed in blueprints regardless of the ability to build it.

absorptions_per_second

A table of pollution emissions per second this tile will absorb, indexed by the name of each absorbed pollution type.

is_foundation

True if this tile can be used as a foundation for other tiles, false otherwise. Foundation tiles can be hidden.

allows_being_covered

True if this tile can be hidden or replaced by another tile through player actions.

check_collision_with_entities

True if building this tile should check for colliding entities above and prevent building if such are found. Also during mining tiles above this tile checks for entities colliding with this tile and prevents mining if such are found.

destroys_dropped_items

max_health

weight

default_cover_tile

frozen_variant

thawed_variant

trigger_effect

default_destroyed_dropped_item_trigger

scorch_mark_color

bound_decoratives

ambient_sounds_group

factoriopedia_alternative

An alternative prototype that will be used to display info about this prototype in Factoriopedia.

valid

Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.

object_name

The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.