LuaTilePrototype

class LuaTilePrototype - sort
name :: string [R] Name of this prototype.
order :: string [R] Order string of this prototype.
localised_name :: LocalisedString [R]
localised_description :: LocalisedString [R]
collision_mask :: dictionary stringboolean [R] The collison mask this tile uses The boolean values for each item are meaningless and will always be true.
layer :: uint [R]
walking_speed_modifier :: float [R]
vehicle_friction_modifier :: float [R]
map_color :: Color [R]
decorative_removal_probability :: float [R] The probability that decorative entities will be removed from on top of this tile when this tile is generated.
allowed_neighbors :: dictionary stringLuaTilePrototype [R]
mineable_properties [R]
items_to_place_this :: dictionary stringLuaItemPrototype [R] Items that when placed will produce this tile.
can_be_part_of_blueprint :: boolean [R] False if this tile is not allowed in blueprints regardless of the ability to build it.
emissions_per_tick :: double [R] Amount of pollution emissions per tick this tile will absorb.
autoplace_specification :: AutoplaceSpecification [R] Autoplace specification for this prototype.
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.

Prototype of a tile.

name :: string [Read-only]

Name of this prototype.

order :: string [Read-only]

Order string of this prototype.

localised_name :: LocalisedString [Read-only]

localised_description :: LocalisedString [Read-only]

collision_mask :: dictionary stringboolean [Read-only]

The collison mask this tile uses

The boolean values for each item are meaningless and will always be true.

Note: This is a dictionary of the collision masks this tile uses to allow quick lookup of any value.
layer :: uint [Read-only]

walking_speed_modifier :: float [Read-only]

vehicle_friction_modifier :: float [Read-only]

map_color :: Color [Read-only]

decorative_removal_probability :: float [Read-only]

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

allowed_neighbors :: dictionary stringLuaTilePrototype [Read-only]

mineable_properties [Read-only]

Table with the following fields:
  • minable :: boolean: Is this tile mineable at all?
  • hardness :: double: Mining hardness.
  • miningtime :: double: Energy required to mine a tile.
  • miningparticle :: string (optional): Prototype name of the particle produced when mining this tile. Will only be present if this tile produces any particle during mining.
  • products :: array of Product: Products obtained by mining this tile.

items_to_place_this :: dictionary stringLuaItemPrototype [Read-only]

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-only]

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

emissions_per_tick :: double [Read-only]

Amount of pollution emissions per tick this tile will absorb.

autoplace_specification :: AutoplaceSpecification [Read-only]

Autoplace specification for this prototype. nil if none.