has_flag(flag) → boolean | Does this prototype have a flag enabled? |
get_inventory_size(index) → uint | Gets the base size of the given inventory on this entity or nil if the given inventory doesn't exist. |
type :: string [R] | Type of this prototype. |
name :: string [R] | Name of this prototype. |
localised_name :: LocalisedString [R] | |
localised_description :: 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. |
mineable_properties [R] | |
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 nil if this isn't a transport belt related prototype. |
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 nil . |
final_attack_result [R] | The final attack result for projectiles nil if not a projectile
|
spawn_cooldown [R] | The spawning cooldown for this enemy spawner prototype or nil . |
mining_drill_radius :: double [R] | The mining radius of this mining drill prototype or nil if this isn't a mining drill prototype. |
logistic_mode :: string [R] | The logistic mode of this logistic container or nil if this isn't a logistic container prototype. |
max_underground_distance :: uint [R] | The max underground distance for underground belts and underground pipes or nil if this isn't one of those prototypes. |
drawing_box :: BoundingBox [R] | The bounding box used for drawing the entity icon. |
sticker_box :: BoundingBox [R] | The bounding box used to attach sticker type entities. |
flags :: array of string [R] | The entity prototype flags for this entitiy. |
remains_when_mined :: array of LuaEntityPrototype [R] | The remains left behind when this entity is mined. |
additional_pastable_entities :: array of LuaEntityPrototype [R] | Entities this entity can be pasted onto in addition to the normal allowed ones. |
allow_copy_paste :: boolean [R] | When false copy-paste is not allowed for this entity. |
shooting_cursor_size :: double [R] | The cursor size used when shooting at this entity. |
created_smoke [R] | The smoke trigger run when this entity is built or nil . |
created_effect [R] | The trigger run when this entity is created or nil . |
map_color :: Color [R] | The map color used when charting this entity if a friendly or enemy color isn't defined or nil . |
friendly_map_color :: Color [R] | The friendly map color used when charting this entity. |
enemy_map_color :: Color [R] | The enemy map color used when charting this entity. |
build_base_evolution_requirement :: double [R] | The evolution requirement to build this entity as a base when expanding enemy bases. |
instruments :: array of ProgrammableSpeakerInstrument [R] | The instruments for this programmable speaker or nil . |
max_polyphony :: uint [R] | The maximum polyphony for this programmable speaker or nil . |
module_inventory_size :: uint [R] | The module inventory size or nil if this entity doesn't suport modules. |
ingredient_count :: uint [R] | The max number of ingredients this crafting-machine prototype supports or nil if this isn't a crafting-machine prototype. |
crafting_speed :: double [R] | The crafting speed of this crafting-machine prototype or nil if this isn't a crafting-machine prototype. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | All methods, and properties that this object supports. |
Prototype of an entity.
Does this prototype have a flag enabled?
"pushable"
"placeable-neutral"
"placeable-player"
"placeable-enemy"
"placeable-off-grid"
"player-creation"
"building-direction-8-way"
"filter-directions"
"fast-replaceable-no-build-while-moving"
"breaths-air"
"not-repairable"
"not-on-map"
"not-blueprintable"
"not-deconstructable"
Gets the base size of the given inventory on this entity or nil if the given inventory doesn't exist.
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. "basic-solid"
, "basic-fluid"
or 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 nil
.
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 nil
.
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 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 nil
.
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.
The max underground distance for underground belts and underground pipes or nil
if this isn't one of those prototypes.
The bounding box used for drawing the entity icon.
The bounding box used to attach sticker type entities.
The entity prototype flags for this entitiy.
The remains left behind when this entity is mined.
Entities this entity can be pasted onto in addition to the normal allowed ones.
When false copy-paste is not allowed for this entity.
The cursor size used when shooting at this entity.
The smoke trigger run when this entity is built or nil
.
The trigger run when this entity is created or nil
.
The map color used when charting this entity if a friendly or enemy color isn't defined or nil
.
The friendly map color used when charting this entity.
The enemy map color used when charting this entity.
The evolution requirement to build this entity as a base when expanding enemy bases.
The instruments for this programmable speaker or nil
.
The maximum polyphony for this programmable speaker or nil
.
The module inventory size or nil if this entity doesn't suport modules.
The max number of ingredients this crafting-machine prototype supports or nil
if this isn't a crafting-machine prototype.
The crafting speed of this crafting-machine prototype or nil
if this isn't a crafting-machine prototype.