LuaTilePrototype
Prototype of a tile.
LuaTilePrototype
The collision mask this tile uses
Autoplace specification for this prototype.
The probability that decorative entities will be removed from on top of this tile when this tile is generated.
If this tile needs correction logic applied when it's generated in the world..
The next direction of this tile or nil
- used when a tile has multiple directions (such as hazard concrete)
Items that when placed will produce this tile.
False if this tile is not allowed in blueprints regardless of the ability to build it.
Amount of pollution emissions per second this tile will absorb.
True if building this tile should check for colliding entities above and prevent building if such are found.
The class name of this object.
name
:: string
[Read]
Name of this prototype.
order
:: string
[Read]
Order string of this prototype.
localised_name
:: LocalisedString
[Read]
localised_description
:: LocalisedString
[Read]
collision_mask
:: CollisionMask
[Read]
The collision mask this tile uses
collision_mask_with_flags
:: CollisionMaskWithFlags
[Read]
layer
:: uint
[Read]
autoplace_specification
:: AutoplaceSpecification
[Read]
Autoplace specification for this prototype. nil
if none.
walking_speed_modifier
:: float
[Read]
vehicle_friction_modifier
:: float
[Read]
map_color
:: Color
[Read]
decorative_removal_probability
:: float
[Read]
The probability that decorative entities will be removed from on top of this tile when this tile is generated.
automatic_neighbors
:: boolean
[Read]
allowed_neighbors
:: dictionary[string → LuaTilePrototype]
[Read]
needs_correction
:: boolean
[Read]
If this tile needs correction logic applied when it's generated in the world..
mineable_properties
:: table
[Read]
Is this tile mineable at all?
Energy required to mine a tile.
Prototype name of the particle produced when mining this tile. Will only be present if this tile produces any particle during mining.
Products obtained by mining this tile.
next_direction
:: LuaTilePrototype
[Read]
The next direction of this tile or nil
- used when a tile has multiple directions (such as hazard concrete)
items_to_place_this
:: array[SimpleItemStack]
[Read]
Items that when placed will produce this tile. It is a dictionary indexed by the item prototype name.
can_be_part_of_blueprint
:: boolean
[Read]
False if this tile is not allowed in blueprints regardless of the ability to build it.
emissions_per_second
:: double
[Read]
Amount of pollution emissions per second this tile will absorb.
check_collision_with_entities
:: boolean
[Read]
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.
valid
:: boolean
[Read]
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
:: string
[Read]
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.