Prototype of an entity.
LuaPrototypeBasebooleanunknowntrueWhether this resource is infinite.
uint32unknowntrueMinimum amount of this resource.
uint32unknowntrueThe normal amount for this resource.
uint32unknowntrueEvery time this infinite resource 'ticks' down, it is reduced by this amount. Meaningless if this isn't an infinite resource.
stringunknowntrueName of the category of this resource.
During data stage, this property is named "category".
MineablePropertiesunknownfalseWhether this entity is minable and what can be obtained by mining it.
Array<ItemToPlace>unknowntrueItems that when placed will produce this entity, if any. Construction bots will choose the first item in the list to build this entity.
BoundingBoxunknownfalseThe bounding box used for collision checking.
BoundingBoxunknowntrueThe secondary bounding box used for collision checking, if any. This is only used in rails and rail remnants.
BoundingBoxunknownfalseThe bounding box used for map generator collision checking.
BoundingBoxunknownfalseThe bounding box used for drawing selection.
doubleunknownfalseExtra vertical space needed to see the whole entity in GUIs. This is used to calculate the correct zoom and positioning in the entity info gui, for example in the entity tooltip.
BoundingBoxunknownfalseThe bounding box used to attach sticker type entities.
CollisionMaskunknownfalseThe collision masks this entity uses
Dict<string, boolean>unknownfalseThe trigger target mask for this entity prototype type.
The values in the dictionary are meaningless and exists just to allow the dictionary type for easy lookup.
floatunknowntrueAmount this entity can heal per tick, if any.
Dict<string, double>unknownfalseA table of pollution emissions per second the entity will create, grouped by the name of the pollution type.
Dict<string, LuaEntityPrototype>unknowntrueCorpses used when this entity is destroyed. It is a dictionary indexed by the corpse's prototype name.
booleanunknownfalseIs this entity selectable?
uint32unknownfalseThe selection priority of this entity - a value between 0 and 255.
doubleunknowntrueThe weight of this vehicle prototype.
Dict<string, Resistance>unknowntrueList of resistances towards each damage type. It is a dictionary indexed by damage type names (see data/base/prototypes/damage-type.lua).
stringunknowntrueThe group of mutually fast-replaceable entities, if any.
LuaEntityPrototypeunknowntrueThe next upgrade for this entity, if any.
Array<IconSequencePositioning>unknowntrueThe icon positioning for inventories of this entity, if defined.
IconDrawSpecificationunknownfalseThe definition of where and how the alt-mode icons of this entity should be drawn.
Array<Loot>unknowntrueLoot that will be dropped when this entity is killed, if any.
floatunknowntrueRepair-speed modifier for this entity, if any. Actual repair speed will be tool_repair_speed * entity_repair_speed_modifier.
uint32unknowntrueThe range of this turret.
AutoplaceSpecificationunknowntrueAutoplace specification for this entity prototype, if any.
doubleunknowntrueThe speed of this transport belt.
Array<UnitSpawnDefinition>unknowntrueThe result units and spawn points with weight and evolution factor for a biter spawner entity.
Array<TriggerItem>unknowntrueThe attack result of this entity, if any.
Array<TriggerItem>unknowntrueThe final attack result for this projectile.
AttackParametersunknowntrueThe attack parameters for this entity, if any.
AttackParametersunknowntrueThe revenge attack parameters for this entity, if any. These attack parameters are used in addition to LuaEntityPrototype::attack_parameters if the entity is attacking a target that has previously dealt damage to the entity.
{ max: double, min: double }unknowntrueThe spawning cooldown for this enemy spawner prototype.
doubleunknowntrueThe mining radius of this mining drill prototype.
booleanunknowntruedoubleunknowntrueThe mining speed of this mining drill/character prototype.
uint8unknowntrueThe resource drain rate percent of this mining drill prototype.
booleanunknowntrueIf this drill uses force productivity bonus
"requester" | "active-provider" | "passive-provider" | "buffer" | "storage" | "none"unknowntrueThe logistic mode of this logistic container.
uint8unknowntrueThe max underground distance for underground belts and underground pipes.
EntityPrototypeFlagsunknownfalseThe flags for this entity prototype.
Array<LuaEntityPrototype>unknownfalseThe remains left behind when this entity is mined.
Array<LuaEntityPrototype>unknownfalseEntities this entity can be pasted onto in addition to the normal allowed ones.
booleanunknownfalseWhen false copy-paste is not allowed for this entity.
floatunknownfalseThe cursor size used when shooting at this entity.
{ initial_height: float, max_radius?: float, offset_deviation: BoundingBox, offsets: Array<Vector>, smoke_name: string, speed: Vector, speed_from_center: float, speed_from_center_deviation: float, speed_multiplier: float, speed_multiplier_deviation: float, starting_frame: float, starting_frame_deviation: float }unknowntrueThe smoke trigger run when this entity is built, if any.
Array<TriggerItem>unknowntrueThe trigger to run when this entity is created, if any.
Array<TriggerEffectWithCooldown>unknowntrueThe trigger effects to run every tick when on cooldown.
Array<TriggerEffectWithCooldown>unknowntrueThe trigger effects to run every tick when on cooldown while the owning LuaSegmentedUnit is enraged.
ColorunknowntrueThe map color used when charting this entity if a friendly or enemy color isn't defined, if any.
ColorunknownfalseThe friendly map color used when charting this entity.
ColorunknownfalseThe enemy map color used when charting this entity.
doubleunknownfalseThe evolution requirement to build this entity as a base when expanding enemy bases.
Array<ProgrammableSpeakerInstrument>unknowntrueThe instruments for this programmable speaker.
uint32unknowntrueThe maximum polyphony for this programmable speaker.
uint32unknowntrueThe module inventory size. nil if this entity doesn't support modules.
booleanunknowntrue"normal" | "with_bar" | "with_filters" | "with_filters_and_bar" | "with_weight_limit" | "with_custom_stack_size"unknowntrueThe inventory type this container or linked container uses.
WeightunknowntrueWeight limit of the inventory if inventory_type is "with_weight_limit".
InventoryWithCustomStackSizeSpecificationunknowntrueProperties of custom inventory. Only provided if inventory_type is "with_custom_stack_size".
uint32unknowntrueThe max number of ingredients this crafting machine prototype supports.
uint32unknowntrueThe max number of item products this crafting machine prototype supports.
Dict<string, true>unknowntrueThe crafting categories this entity prototype supports.
The value in the dictionary is meaningless and exists just to allow for easy lookup.
Dict<string, true>unknowntrueThe resource categories this character or mining drill supports.
The value in the dictionary is meaningless and exists just to allow for easy lookup.
doubleunknowntrueThe direct energy usage of this entity, if any.
doubleunknowntrueThe effectivity of this car prototype, generator prototype.
doubleunknowntrueThe energy consumption of this car prototype.
doubleunknowntrueThe friction of this vehicle prototype.
doubleunknowntrueThe braking force of this vehicle prototype.
doubleunknowntrueThe air resistance of this rolling stock prototype.
booleanunknowntrueIf this car prototype uses tank controls to drive.
doubleunknowntrueThe rotation speed of this car prototype.
doubleunknowntrueThe rotation snap angle of this car prototype.
floatunknowntrueThe turret rotation speed of this car prototype.
Dict<string, LuaItemPrototype>unknowntrueA mapping of the gun name to the gun prototype this prototype uses. nil if this entity prototype doesn't use guns.
Array<LuaItemPrototype>unknowntrueA vector of the gun prototypes of this car, spider vehicle, artillery wagon, or turret.
doubleunknowntrueThe default speed of this flying robot, rolling stock or unit. For rolling stocks, this is their max_speed.
floatunknowntrueThe speed multiplier when this flying robot is out of energy.
uint32unknowntrueThe cargo carrying capacity of this logistics or construction robot.
uint32unknowntrueThe maximum possible cargo carrying capacity of this logistics or construction robot. Bonuses from technologies/forces can't increase the carrying capacity beyond this number.
booleanunknowntrueWhether this logistics or construction robot renders its cargo when flying.
doubleunknowntrueThe energy consumed per tile moved for this flying robot.
doubleunknowntrueThe energy consumed per tick for this flying robot.
floatunknowntrueThe minimum energy for this flying robot before it tries to recharge.
floatunknowntrueThe maximum energy for this flying robot above which it won't try to recharge when stationing.
LuaBurnerPrototypeunknowntrueThe burner energy source prototype this entity uses, if any.
LuaElectricEnergySourcePrototypeunknowntrueThe electric energy source prototype this entity uses, if any.
LuaHeatEnergySourcePrototypeunknowntrueThe heat energy source prototype this entity uses, if any.
LuaFluidEnergySourcePrototypeunknowntrueThe fluid energy source prototype this entity uses, if any.
LuaVoidEnergySourcePrototypeunknowntrueThe void energy source prototype this entity uses, if any.
LuaHeatBufferPrototypeunknowntrueThe heat buffer prototype this entity uses, if any.
uint32unknownfalseThe log2 of grid size of the building.
doubleunknowntrueThe fluid usage of this generator prototype. This property is deprecated in favor of LuaEntityPrototype::get_fluid_usage_per_tick and should not be used.
doubleunknowntrueThe maximum fluid temperature of this generator prototype.
booleanunknowntrueWhether this generator prototype burns fluid.
booleanunknowntrueWhether this generator prototype scales fluid usage.
booleanunknowntrueWhether this generator prototype destroys non-fuel fluids.
doubleunknowntrueThe default maximum power output of this generator prototype. This property is deprecated in favor of LuaEntityPrototype::get_max_power_output and should not be used.
floatunknowntrueThe target temperature of this boiler or fusion reactor prototype. If nil on a fusion reactor, the target temperature is the default temperature of the output fluid.
"heat-fluid-inside" | "output-to-separate-pipe"unknowntrueThe boiler operation mode of this boiler prototype.
doubleunknownfalseThe fluid capacity of this entity or 0 if this entity doesn't support fluids.
Crafting machines will report 0 due to their fluid capacity being whatever a given recipe needs.
doubleunknowntrueThe pumping speed of this offshore pump or normal pump. This property is deprecated in favor of LuaEntityPrototype::get_pumping_speed and should not be used.
ValveModeunknowntrueThe mode of operation of this valve.
floatunknowntrueThe default threshold of this valve.
booleanunknowntrueWhether this inserter is a bulk-type.
booleanunknowntrueVectorunknowntruebooleanunknowntruebooleanunknowntrueWhether this inserter allows custom pickup and drop vectors.
booleanunknowntrueWhether this inserter allows burner leeching.
VectorunknowntrueThe pickup position for this inserter.
VectorunknowntrueThe drop position for this inserter.
booleanunknowntrueTrue if this inserter chases items on belts for pickup.
uint8unknowntrueThe max belt stack size for this loader.
booleanunknowntrueTrue if this loader supports a runtime-adjustable belt stack size.
booleanunknowntrueTrue if this loader will not drop items for which total amount is less than a full belt stack.
booleanunknowntruebooleanunknowntrueIf this simple-entity is counted as a rock for the deconstruction planner "trees and rocks only" filter.
uint32unknowntrueThe filter count of this inserter, loader, mining drill or logistic chest. For logistic containers, nil means no limit.
uint32unknownfalseThe time to live for this prototype or 0 if prototype doesn't have time_to_live or time_before_removed.
doubleunknowntrueThe distribution effectivity for this beacon prototype.
doubleunknowntrueThe distribution effectivity bonus per quality level for this beacon prototype.
Array<double>unknowntrueThe beacon profile: extra multiplier applied to the effects received from beacon by the effect receiver based on amount of beacons that reach that effect receiver
"total" | "same_type"unknowntrueThe beacon counter used by effect receiver when deciding which sample to take from beacon profile.
doubleunknowntrueWhether this explosion has a beam.
doubleunknowntrueWhether this explosion rotates.
uint8unknowntrueIf it is a tree, return the number of colors it supports.
booleanunknowntrueWhether this entity raises an alert when damaged.
booleanunknowntrueWhether this turret raises an alert when attacking
ColorunknowntrueThe color of the prototype, if any.
booleanunknownfalseDoes this prototype collision mask collide with itself?
booleanunknownfalseDoes this prototype collision mask collide with tiles only?
booleanunknownfalseDoes this prototype collision mask consider tile transitions?
Dict<string, boolean>unknowntrueThe allowed module effects for this entity, if any.
Dict<string, true>unknowntrueThe allowed module categories for this entity, if any.
uint32unknowntrueThe rocket parts required for this rocket silo prototype.
uint8unknowntrueThe rocket rising delay for this rocket silo prototype.
uint8unknowntrueThe rocket launch delay for this rocket silo prototype.
doubleunknowntrueThe light blinking speed for this rocket silo prototype.
doubleunknowntrueThe door opening speed for this rocket silo prototype.
booleanunknowntruedoubleunknowntrueThe rising speed for this rocket silo rocket prototype.
doubleunknowntrueThe engine starting speed for this rocket silo rocket prototype.
doubleunknowntrueThe flying speed for this rocket silo rocket prototype.
doubleunknowntrueThe flying acceleration for this rocket silo rocket prototype.
stringunknowntrueThe fixed recipe name for this assembling machine prototype, if any.
doubleunknowntrueThe construction radius for this roboport prototype.
doubleunknowntrueThe logistic radius for this roboport prototype.
doubleunknowntrueThe energy used per hit point taken for this vehicle during collisions.
booleanunknownfalseIf this prototype will attempt to create a ghost of itself on death.
If this is false then a ghost will never be made, if it's true a ghost may be made.
stringunknowntrueName of the ammo category of this land mine.
uint32unknowntrueThe time it takes this land mine to arm.
CollisionMaskunknowntrueThe collision mask entities must collide with to make this landmine blow up.
Array<LuaFluidBoxPrototype>unknownfalseThe fluidbox prototypes for this entity.
doubleunknowntruedoubleunknowntruedoubleunknowntruedoubleunknowntruebooleanunknowntruebooleanunknownfalseuint32unknowntrueThe amount of ammo that inserters automatically insert into this ammo-turret or artillery-turret.
doubleunknowntrueThe max speed of this projectile or flying robot prototype.
floatunknowntrueValue between 0 and 1 darkness where all lamps of this lamp prototype are on.
floatunknowntrueValue between 0 and 1 darkness where all lamps of this lamp prototype are off.
booleanunknowntrueWhether the lamp is always on (except when out of power or turned off by the circuit network).
floatunknowntrueThe minimum darkness at which this unit spawner can spawn entities.
floatunknowntrueThe maximum darkness at which this unit spawner can spawn entities.
doubleunknowntruedoubleunknowntrueCount of enemies this spawner can sustain.
doubleunknowntrueCount of defensive enemies this spawner can sustain.
doubleunknowntrueHow many friendly units are required within the spawning_radius of this spawner for it to stop producing more units.
doubleunknowntrueHow many defensive friendly units are required within the spawning_radius of this spawner for it to stop producing more units.
doubleunknowntrueHow far from the spawner can the units be spawned.
doubleunknowntrueWhat spaces should be between the spawned units.
doubleunknownfalseThe radius of this entity prototype. The radius is defined as half the distance between the top left corner and bottom right corner of the collision box.
stringunknowntrueThe item prototype name used to destroy this cliff.
LuaEntityPrototypeunknowntrueThe rocket entity prototype associated with this rocket silo prototype.
booleanunknowntrueWhether this unit, car, or character prototype has belt immunity.
doubleunknowntrueThe vision distance of this unit prototype.
Dict<string, float>unknowntrueA table of pollutions amounts that has to be absorbed by the unit's spawner before the unit will leave the spawner and attack the source of the pollution, indexed by the name of each absorbed pollution type.
uint32unknowntrueThe minimum pursue time of this unit prototype.
doubleunknowntrueThe maximum pursue distance of this unit prototype.
uint32unknowntrueThe radar range of this unit prototype.
booleanunknowntrueWhether this unit prototype can move while shooting.
booleanunknowntrueWhether this unit prototype can open gates.
booleanunknowntrueWhether this unit prototype is affected by tile walking speed modifiers.
uint32unknowntrueThe distraction cooldown of this unit prototype.
doubleunknowntrueThe spawning time modifier of this unit prototype.
VectorunknownfalseThe alert icon shift of this entity prototype.
floatunknownfalseThe alert icon scale of this entity prototype.
Array<string>unknowntrueThe item prototype names that are the inputs of this lab prototype.
uint8unknownfalseHow much science pack durability is required to research one science point.
EffectReceiverunknowntrueEffect receiver prototype of this crafting machine, lab, or mining drill.
booleanunknowntrueWhether this market allows access to all forces or just friendly ones.
booleanunknownfalseWhether this entity prototype could possibly ever be rotated.
floatunknowntrueThe terrain friction modifier for this vehicle.
booleanunknowntrueWhether this vehicle allows passengers.
LuaEquipmentGridPrototypeunknowntrueThe equipment grid prototype for this entity, if any.
"automatic" | "true" | "false"unknownfalseWhether this entity should remove decoratives that collide with it when this entity is built.
LuaEntityPrototypeunknowntrueuint32unknowntrueThe built-in stack size bonus of this inserter prototype.
booleanunknownfalseTrue if this entity prototype should be included during tile collision checks with LuaTilePrototype::check_collision_with_entities enabled.
booleanunknownfalseTrue if this is entity-with-owner
booleanunknowntrueTrue if this entity-with-owner is military target
booleanunknowntrueTrue if this entity-with-owner's is_military_target can be changed run-time (on the entity, not on the prototype itself)
{ charge_approach_distance: float, charging_distance: float, charging_energy: double, charging_station_count: uint32, charging_station_shift: Vector, charging_threshold_distance: float, construction_radius: float, logistic_radius: float, logistics_connection_distance: float, robot_limit: uint32, robot_vertical_acceleration: float, robots_shrink_when_entering_and_exiting: boolean, spawn_and_station_height: float, spawn_and_station_shadow_height_offset: float, stationing_offset: Vector, stationing_render_layer_swap_height: float }unknowntrueThe logistic parameters for this roboport.
doubleunknowntrueThe height of this spider vehicle prototype.
doubleunknowntrueThe torso rotation speed of this spider vehicle prototype.
doubleunknowntrueThe torso bob speed of this spider vehicle prototype.
booleanunknowntrueWhether this spider vehicle prototype automatically cycles weapons.
doubleunknowntrueThe chain shooting cooldown modifier of this spider vehicle prototype.
SpiderEngineSpecificationunknowntruedoubleunknowntrueThe chunk exploration radius of this vehicle prototype.
doubleunknowntrueThe animation speed coefficient of this belt connectable prototype.
doubleunknowntrueThe manual range modifier for this artillery turret or wagon prototype.
floatunknowntrueThe dying time of this corpse prototype.
doubleunknowntrueThe active energy usage of this rocket silo or combinator prototype.
doubleunknowntrueThe lamp energy usage of this rocket silo prototype.
doubleunknowntrueThe crane energy usage of this agricultural tower prototype.
booleanunknowntrueWhether this logistic container prototype uses exact mode
uint32unknownfalseSpecifies the tiling size of the entity, is used to decide, if the center should be in the center of the tile (odd tile size dimension) or on the tile border (even tile size dimension)
uint32unknownfalseSpecifies the tiling size of the entity, is used to decide, if the center should be in the center of the tile (odd tile size dimension) or on the tile border (even tile size dimension)
doubleunknowntrueVertical selection shift used by rolling stocks. It affects selection box vertical position but is also used to shift rolling stock graphics along the rails to fine tune train's look.
Array<TriggerEffectItem>unknowntruebooleanunknowntruedoubleunknowntruedoubleunknowntrueRadiusVisualisationSpecificationunknowntrueuint32unknowntrueDict<string, double>unknowntrueA table of pollutants that this plant will release when it is harvested.
doubleunknowntruedoubleunknowntrueuint32unknowntrueVectorunknowntrueArray<SurfaceCondition>unknowntrueThe surface conditions required to build this entity.
doubleunknownfalseThe energy required to keep this entity from freezing. Zero energy means it doesn't freeze.
booleanunknownfalseLuaEntityPrototypeunknowntrueAn alternative prototype that will be used to display info about this prototype in Factoriopedia.
booleanunknownfalsedoubleunknownfalsedoubleunknownfalseLuaSurfacePropertyPrototypeunknownfalseArray<string>unknowntrueLuaEntityPrototypeunknowntrueThrusterPerformancePointunknowntrueThrusterPerformancePointunknowntruebooleanunknowntruePerceivedPerformanceunknowntruefloatunknowntrueArray<ExplosionDefinition>unknowntrueArray<TriggerEffectItem>unknowntrueArray<TriggerEffectItem>unknowntrueArray<AttackReactionItem>unknowntruebooleanunknowntruebooleanunknowntrueNeighbourConnectableunknowntrueArray<TileBuildabilityRule>unknowntrueThe tile buildability rules of this entity prototype.
floatunknowntrueuint32unknowntrueMapTickunknowntruedoubleunknowntruedoubleunknowntruedoubleunknowntruedoubleunknownfalsedoubleunknownfalsedoubleunknowntruedoubleunknowntruedoubleunknowntrueuint32unknowntrueSegmentEngineSpecificationunknowntruedoubleunknowntrueThe movement speed of this character prototype.
doubleunknowntrueuint32unknowntrueuint32unknowntrueuint32unknowntruedoubleunknowntruedoubleunknowntruedoubleunknowntruedoubleunknowntrueuint32unknowntrueuint32unknowntrueuint32unknowntrueuint32unknowntrueColorunknowntrueLuaEntityPrototypeunknowntrueuint32unknowntrueuint32unknowntruedoubleunknowntruedoubleunknowntruedoubleunknowntruefloatunknowntrueuint32unknowntrueuint32unknowntruefloatunknowntruefloatunknowntruefloatunknowntruefloatunknowntruefloatunknowntruefloatunknowntruefloatunknowntruefloatunknowntruefloatunknowntrueuint32unknowntruefloatunknowntruefloatunknowntrueuint8unknowntrueArray<Color>unknowntrueFluidAmountunknowntrueFluidAmountunknowntrueFluidAmountunknowntruedoubleunknowntruedoubleunknowntrueArray<TriggerItem>unknowntruebooleanunknowntrueArray<TriggerItem>unknowntrueArray<TriggerItem>unknowntruedoubleunknowntrueWhen lightning strikes something that is not a lightning attractor, this damage is applied to the target.
doubleunknowntrueWhen lightning hits a lightning attractor this amount of energy is transferred to the lightning attractor.
Array<string>unknownfalsebooleanunknownfalseIs 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.
stringunknownfalseThe 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.
LuaEntityPrototype.has_flag(flag: EntityPrototypeFlag) -> boolean
entityPrototype.has_flag(flag)
takes_table: falsetable_optional: falseTest whether this entity prototype has a certain flag set.
flag: EntityPrototypeFlag — The flag to test.boolean — true if this prototype has the given flag set.LuaEntityPrototype.get_inventory_size(index: defines.inventory, quality?: QualityID) -> uint32?
entityPrototype.get_inventory_size(index, quality)
takes_table: falsetable_optional: falseGets the base size of the given inventory on this entity or nil if the given inventory doesn't exist.
index: defines.inventoryquality?: QualityID — Defaults to "normal".uint32?LuaEntityPrototype.get_crafting_speed(quality?: QualityID) -> double
entityPrototype.get_crafting_speed()
takes_table: falsetable_optional: falseThe crafting speed of this crafting-machine or character.
quality?: QualityIDdoubleLuaEntityPrototype.get_supply_area_distance(quality?: QualityID) -> double
entityPrototype.get_supply_area_distance()
takes_table: falsetable_optional: falseThe supply area of this electric pole or beacon prototype.
quality?: QualityIDdoubleLuaEntityPrototype.get_max_wire_distance(quality?: QualityID) -> double
entityPrototype.get_max_wire_distance()
takes_table: falsetable_optional: falseThe maximum wire distance for this entity. 0 if the entity doesn't support wires.
quality?: QualityIDdoubleLuaEntityPrototype.get_max_circuit_wire_distance(quality?: QualityID) -> double
entityPrototype.get_max_circuit_wire_distance()
takes_table: falsetable_optional: falseThe maximum circuit wire distance for this entity. 0 if the entity doesn't support circuit wires.
quality?: QualityIDdoubleLuaEntityPrototype.get_max_energy_usage(quality?: QualityID) -> double
entityPrototype.get_max_energy_usage()
takes_table: falsetable_optional: falseThe theoretical maximum energy usage for this entity.
quality?: QualityIDdoubleLuaEntityPrototype.get_max_energy_production(quality?: QualityID) -> double
entityPrototype.get_max_energy_production()
takes_table: falsetable_optional: falseThe theoretical maximum energy production for this entity.
quality?: QualityIDdoubleLuaEntityPrototype.get_max_energy(quality?: QualityID) -> double?
entityPrototype.get_max_energy()
takes_table: falsetable_optional: falseThe max energy for this flying robot prototype.
quality?: QualityIDdouble?LuaEntityPrototype.get_inserter_extension_speed(quality?: QualityID) -> double?
entityPrototype.get_inserter_extension_speed()
takes_table: falsetable_optional: falseThe extension speed of this inserter.
quality?: QualityIDdouble?LuaEntityPrototype.get_inserter_rotation_speed(quality?: QualityID) -> double?
entityPrototype.get_inserter_rotation_speed()
takes_table: falsetable_optional: falseThe rotation speed of this inserter.
quality?: QualityIDdouble?LuaEntityPrototype.get_researching_speed(quality?: QualityID) -> double?
entityPrototype.get_researching_speed()
takes_table: falsetable_optional: falseThe base researching speed of this lab prototype.
quality?: QualityIDdouble?LuaEntityPrototype.get_max_distance_of_sector_revealed(quality?: QualityID) -> uint32?
entityPrototype.get_max_distance_of_sector_revealed()
takes_table: falsetable_optional: falseThe radius of the area this radar can chart, in chunks.
quality?: QualityIDuint32?LuaEntityPrototype.get_max_distance_of_nearby_sector_revealed(quality?: QualityID) -> uint32?
entityPrototype.get_max_distance_of_nearby_sector_revealed()
takes_table: falsetable_optional: falseThe radius of the area constantly revealed by this radar, or cargo landing pad, in chunks.
quality?: QualityIDuint32?LuaEntityPrototype.get_max_health(quality?: QualityID) -> float
entityPrototype.get_max_health()
takes_table: falsetable_optional: falseMax health of this entity. Will be 0 if this is not an entity with health.
quality?: QualityIDfloatLuaEntityPrototype.get_fluid_usage_per_tick(quality?: QualityID) -> double?
entityPrototype.get_fluid_usage_per_tick()
takes_table: falsetable_optional: falseThe fluid usage of this generator, fusion generator or fusion reactor prototype.
quality?: QualityIDdouble?LuaEntityPrototype.get_max_power_output(quality?: QualityID) -> double?
entityPrototype.get_max_power_output()
takes_table: falsetable_optional: falseThe maximum power output of this burner generator or generator prototype.
quality?: QualityIDdouble?LuaEntityPrototype.get_pumping_speed(quality?: QualityID) -> double
entityPrototype.get_pumping_speed()
takes_table: falsetable_optional: falseThe pumping speed of this offshore pump or normal pump.
quality?: QualityIDdoubleLuaEntityPrototype.get_valve_flow_rate(quality?: QualityID) -> double
entityPrototype.get_valve_flow_rate()
takes_table: falsetable_optional: falseThe maximum flow rate through this valve.
quality?: QualityIDdoubleLuaEntityPrototype.get_mining_drill_radius(quality?: QualityID) -> double?
entityPrototype.get_mining_drill_radius()
takes_table: falsetable_optional: falseThe mining radius of this mining drill prototype.
quality?: QualityIDdouble?LuaEntityPrototype.get_fluid_capacity(quality?: QualityID) -> double
entityPrototype.get_fluid_capacity()
takes_table: falsetable_optional: falseGets the fluid capacity of this entity or 0 if this entity doesn't support fluids.
Crafting machines will report 0 due to their fluid capacity being whatever a given recipe needs.
quality?: QualityIDdoubleLuaEntityPrototype.get_attraction_range_elongation(quality?: QualityID) -> double?
entityPrototype.get_attraction_range_elongation()
takes_table: falsetable_optional: falsequality?: QualityIDdouble?LuaEntityPrototype.get_energy_distribution_efficiency(quality?: QualityID) -> double?
entityPrototype.get_energy_distribution_efficiency()
takes_table: falsetable_optional: falsequality?: QualityIDdouble?