LuaTilePrototype

Prototype of a tile.

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 :: CollisionMask [R] The collision mask this tile uses
collision_mask_with_flags :: CollisionMaskWithFlags [R]
layer :: uint [R]
autoplace_specification :: AutoplaceSpecification [R] Autoplace specification for this prototype.
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.
automatic_neighbors :: boolean [R]
allowed_neighbors :: dictionary stringLuaTilePrototype [R]
needs_correction :: boolean [R] If this tile needs correction logic applied when it's generated in the world.
mineable_properties :: table [R] It is a table:
next_direction :: LuaTilePrototype [R] The next direction of this tile or nil - used when a tile has multiple directions (such as hazard concrete)
items_to_place_this :: array of SimpleItemStack [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_second :: double [R] Amount of pollution emissions per second this tile will absorb.
valid :: boolean [R] Is this object valid?
help() → string All methods, and properties that this object supports.
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 :: CollisionMask [Read-only]

The collision mask this tile uses

collision_mask_with_flags :: CollisionMaskWithFlags [Read-only]

layer :: uint [Read-only]

autoplace_specification :: AutoplaceSpecification [Read-only]

Autoplace specification for this prototype. nil if none.

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.

automatic_neighbors :: boolean [Read-only]

allowed_neighbors :: dictionary stringLuaTilePrototype [Read-only]

needs_correction :: boolean [Read-only]

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

mineable_properties :: table [Read-only]

It is a table:

  • minable :: boolean: Is this tile mineable at all?
  • 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.

next_direction :: LuaTilePrototype [Read-only]

The next direction of this tile or nil - used when a tile has multiple directions (such as hazard concrete)

items_to_place_this :: array of SimpleItemStack [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_second :: double [Read-only]

Amount of pollution emissions per second this tile will absorb.