|has_flag(flag) → boolean||Does this prototype have a flag enabled?|
|type :: string [R]||Type of this prototype.|
|name :: string [R]||Name of this prototype.|
|localised_name :: LocalisedString [R]|
|max_health :: float [R]||Max health of this entity.|
|infinite_resource :: boolean [R]||Is this resource infinite?|
|minimum_resource_amount :: uint [R]||Minimum amount of this resource.|
|resource_category :: string [R]||Category of this resource.|
|items_to_place_this :: dictionary string → LuaItemPrototype [R]||Items that when placed will produce this entity.|
|collision_box :: BoundingBox [R]||The bounding box used for collision checking.|
|selection_box :: BoundingBox [R]||The bounding box used for drawing selection.|
|order :: string [R]||Order string of this prototype.|
|group :: LuaGroup [R]||Group of this entity.|
|subgroup :: LuaGroup [R]||Subgroup of this entity.|
|healing_per_tick :: uint [R]||Amount this entity can heal per tick.|
|emissions_per_tick :: double [R]||Amount of pollution emissions per tick this entity will create.|
|corpses :: dictionary string → LuaEntityPrototype [R]||Corpses used when this entity is destroyed.|
|selectable_in_game :: boolean [R]||Is this entity selectable?|
|weight :: uint [R]|
|resistances :: Resistances [R]|
|fast_replaceable_group :: string [R]||The group of mutually fast-replaceable entities.|
|loot :: Loot [R]||Loot that will be dropped when this entity is killed.|
|repair_speed_modifier :: uint [R]||Repair-speed modifier for this entity.|
|turret_range :: uint [R]|
|autoplace_specification :: AutoplaceSpecification [R]||Autoplace specification for this entity prototype.|
|collision_mask :: array of string [R]||The collison masks this entity uses|
|belt_speed :: double [R]|| The speed of this transport belt or |
|underground_belt_distance :: uint [R]|| The max connection distance this underground belt prototype can connect at or |
|result_units :: array of UnitSpawnDefinition [R]||The result units and spawn points with weight and evolution factor for a biter spawner entity.|
|attack_result [R]|| The attack result of this entity if the entity has one else |
|final_attack_result [R]|| The final attack result for projectiles |
|spawn_cooldown [R]|| The spawning cooldown for this enemy spawner prototype or |
|mining_drill_radius :: double [R]|| The mining radius of this mining drill prototype or |
|logistic_mode :: string [R]|| The logistic mode of this logistic container or |
|valid :: boolean [R]||Is this object valid?|
Prototype of an entity.
Does this prototype have a flag enabled?
Type of this prototype.
Name of this prototype.
Max health of this entity. Will be
0 if this is not an entity with health.
Is this resource infinite? Will be
nil when used on a non-resource.
Minimum amount of this resource. Will be
nil when used on a non-resource.
Category of this resource.
nil (when not a resource).
Table with the following fields:
Items that when placed will produce this entity. It is a dictionary indexed by the item prototype name.
The bounding box used for collision checking.
The bounding box used for drawing selection.
Order string of this prototype.
Group of this entity.
Subgroup of this entity.
Amount this entity can heal per tick.
Amount of pollution emissions per tick this entity will create.
Corpses used when this entity is destroyed. It is a dictionary indexed by the corpse's prototype name.
Is this entity selectable?
The group of mutually fast-replaceable entities. Possibly
Loot that will be dropped when this entity is killed.
nil if there is no loot.
Repair-speed modifier for this entity. Actual repair speed will be
tool_repair_speed * entity_repair_speed_modifier. May be
Autoplace specification for this entity prototype.
nil if none.
The collison masks this entity uses
The speed of this transport belt or
nil if this isn't a transport belt related prototype.
The max connection distance this underground belt prototype can connect at or
nil if this isn't an underground belt prototype.
The result units and spawn points with weight and evolution factor for a biter spawner entity.
Each UnitSpawnDefinition is a table:
The attack result of this entity if the entity has one else
The final attack result for projectiles
nil if not a projectile
The mining radius of this mining drill prototype or
nil if this isn't a mining drill prototype.
The logistic mode of this logistic container or
nil if this isn't a logistic container prototype.