This is a list of all Lua classes defined by Factorio. Each class also has an individual page with details on its methods and attributes.
Collection of settings for overriding default ai behavior.
Control behavior for accumulators.
Prototype of a achievement.
Prototype of a ammo category.
Control behavior for arithmetic combinators.
Prototype of an autoplace control.
Entry point for registering event handlers.
A reference to the burner energy source owned by a specific LuaEntity or LuaEquipment.
Prototype of a burner energy source.
A chunk iterator can be used for iterating chunks coordinates of a surface.
A circuit network associated with a given entity, connector, and wire type.
Allows for the registration of custom console commands.
Control behavior for constant combinators.
Control behavior for container entities.
This is an abstract base class containing the common functionality between LuaPlayer and entities (see LuaEntity).
The control behavior for an entity.
A custom tag that shows on the map view.
Prototype of a custom input.
Lazily evaluated table.
Prototype of a damage.
Control behavior for decider combinators.
Prototype of an optimized decorative.
Prototype of an electric energy source.
The primary interface for interacting with entities through the Lua API.
Prototype of an entity.
An item in a LuaEquipmentGrid, for example a fusion reactor placed in one's power armor.
Prototype of an equipment category.
An equipment grid is for example the inside of a power armor.
Prototype of an equipment grid.
Prototype of a modular equipment.
Encapsulates statistic data for different parts of the game.
An array of fluid boxes of an entity.
A prototype of a fluidbox owned by some LuaEntityPrototype.
Prototype of a fluid energy source.
Prototype of a fluid.
Prototype of a font.
LuaForce
encapsulates data local to each "force" or "faction" of the game.
Prototype of a fuel category.
Main toplevel type, provides access to most of the API though its members.
An abstract base class for behaviors that support switching the entity on or off based on some condition.
Item group or subgroup.
The root of the GUI.
An element of a custom GUI.
Prototype of a heat energy source.
Control behavior for inserters.
A storage of item stacks.
Prototype of an item.
A reference to an item and count owned by some external entity.
Control behavior for lamps.
A lazily loaded value.
Logistic cell of a particular LuaEntity.
Control behavior for logistic chests.
A single logistic network of a given force on a given surface.
Logistic point of a particular LuaEntity.
Control behavior for mining drills.
Prototype of a mod setting.
Prototype of a module category.
Prototype of a named noise expression.
Prototype of a noise layer.
Prototype of an optimized particle.
A permission group that defines what players in this group are allowed to do.
All permission groups.
A player in the game.
An object used to measure script performance.
Control behavior for programmable speakers.
An interface to send messages to the calling RCON interface.
Control behavior for rail chain signals.
A rail path.
Control behavior for rail signals.
A deterministic random generator independent from the core games random generator that can be seeded and re-seeded at will.
A crafting recipe.
Prototype of a recipe category.
A crafting recipe prototype.
Registry of interfaces between scripts.
Allows rendering of geometric shapes, text and sprites in the game world.
Prototype of a resource category.
Control behavior for roboports.
Object containing mod settings of three distinct types: startup
, global
, and player
.
Prototype of a shortcut.
Control behavior for storage tanks.
Style of a GUI element.
A "domain" of the world.
One research item.
A Technology prototype.
A single "square" on the map.
Prototype of a tile.
A train.
Control behavior for train stops.
Control behavior for transport belts.
One line on a transport belt.
Prototype of a trivial smoke.
A collection of units moving and attacking together.
Prototype of a virtual signal.
Prototype of a void energy source.
Control behavior for walls.
LuaAISettings
If enabled, units that repeatedly fail to succeed at commands will be destroyed.
If enabled, units that have nothing else to do will attempt to return to a spawner.
If enabled, units will try to separate themselves from nearby friendly units.
The pathing resolution modifier, must be between -8 and 8.
The class name of this object.
LuaAccumulatorControlBehavior
extends
LuaControlBehavior
LuaAchievementPrototype
LuaAmmoCategoryPrototype
The arithmetic combinator parameters.
The class name of this object.
LuaBootstrap
Register a callback to be run on mod initialization.
Register a function to be run on save load.
Register a function to be run when mod configuration changes.
Register a handler to run on the specified event(s).
Register a handler to run every nth-tick(s).
Registers an entity so that after it's destroyed, on_entity_destroyed is called.
Generate a new, unique event ID that can be used to raise custom events with LuaBootstrap::raise_event.
Find the event handler for an event.
Gets the mod event order as a string.
Sets the filters for the given event.
Gets the filters for the given event.
Raise an event.
A dictionary listing the names of all currently active mods and mapping them to their version.
This object's name.
LuaBurner
The owner of this burner energy source
The fuel inventory.
The burnt result inventory.
The maximum heat (maximum energy) that this burner can store.
The amount of energy left in the currently-burning fuel item.
The currently burning item, or nil
if no item is burning.
The fuel categories this burner uses.
The class name of this object.
LuaBurnerPrototype
LuaChunkIterator
Gets the next chunk position if the iterator is not yet done and increments the it.
The class name of this object.
LuaCircuitNetwork
The wire type this network is associated with.
The circuit connector ID on the associated entity this network was gotten from.
The circuit networks ID.
The number of circuits connected to this network.
The class name of this object.
LuaCombinatorControlBehavior
extends
LuaControlBehavior
Gets the value of a specific signal sent by this combinator behavior last tick or nil
if the signal didn't exist.
The circuit network signals sent by this combinator last tick.
LuaCommandProcessor
Add a custom console command.
Remove a custom console command.
Lists the custom commands registered by scripts through LuaCommandProcessor
.
Lists the built-in commands of the core game.
This object's name.
LuaConstantCombinatorControlBehavior
extends
LuaControlBehavior
Sets the signal at the given index
Gets the signal at the given index.
The constant combinator parameters
The number of signals this constant combinator supports
The class name of this object.
LuaContainerControlBehavior
extends
LuaControlBehavior
The class name of this object.
LuaControl
Get an inventory belonging to this entity.
Gets the main inventory for this character or player if this is a character or player.
Can at least some items be inserted?
Create an arrow which points at this entity.
Removes the arrow created by set_gui_arrow
.
Get the number of all or some items in this entity.
Does this entity have any item inside it?
Can a given entity be opened or accessed?
Remove all items from this entity.
Remove items from this entity.
Teleport the entity to a given position, possibly on another surface.
Select an entity, as if by hovering the mouse above it.
Unselect any selected entity.
Disable the flashlight.
Enable the flashlight.
Is the flashlight enabled.
Gets the count of the given recipe that can be crafted.
Begins crafting the given count of the given recipe.
Cancels crafting the given count of the given crafting queue index.
Mines the given entity as if this player (or character) mined it.
When true
control adapter is a LuaPlayer object, false
for entities including characters with players.
Open the technology GUI and select a given technology.
Sets a personal logistic request and auto-trash slot to the given value.
Sets a vehicle logistic request and auto-trash slot to the given value.
Gets the parameters of a personal logistic request and auto-trash slot.
Gets the parameters of a vehicle logistic request and auto-trash slot.
Returns whether the player is holding a blueprint.
Gets the entities that are part of the currently selected blueprint, regardless of it being in a blueprint book or picked from the blueprint library.
Returns whether the player is holding something in the cursor.
The surface this entity is currently on.
Current position of the entity.
The force of this entity.
The GUI the player currently has open, or nil
if no GUI is open.
Size of the crafting queue.
The crafting queue progress [0-1] 0 when no recipe is being crafted.
Current walking state.
Current riding state of this car or the vehicle this player is riding in.
Current mining state.
Current shooting state.
Current item-picking state.
Current repair state.
The player's cursor stack, or nil
if the player controller is a spectator.
The ghost prototype in the player's cursor.
Gets the current crafting queue items.
The current combat robots following the character
When true
hand crafting is free and instant
Modifies the running speed of this character by the given value as a percentage.
If personal logistic requests are enabled for this character or players character.
If personal logistic requests are enabled for this vehicle (spidertron).
Returns the defines.gui_type or nil
.
The build distance of this character or max uint when not a character or player connected to a character.
The item drop distance of this character or max uint when not a character or player connected to a character.
The reach distance of this character or max uint when not a character or player connected to a character.
The item pickup distance of this character or max double when not a character or player connected to a character.
The loot pickup distance of this character or max double when not a character or player connected to a character.
The resource reach distance of this character or max double when not a character or player connected to a character.
Gets the current movement speed of this character, including effects from exoskeletons, tiles, stickers and shooting.
Gets the current mining progress between 0 and 1 of this character, or 0 if they aren't mining.
LuaControlBehavior
The concrete type of this control behavior.
LuaCustomChartTag
Destroys this tag.
The position of this tag.
The unique ID for this tag on this force.
The surface this tag belongs to.
The class name of this object.
LuaCustomInputPrototype
The default key sequence for this custom input.
The default alternative key sequence for this custom input.
The linked game control name or nil
.
If this custom input is enabled while using the spectator controller.
If this custom input is enabled while using the cutscene controller.
If this custom input will include the selected prototype (if any) when triggered.
The item that gets spawned when this custom input is fired or nil
.
The class name of this object.
LuaCustomTable
LuaDamagePrototype
The class name of this object.
The decider combinator parameters
The class name of this object.
LuaDecorativePrototype
The bounding box used for collision checking.
The collision masks this decorative uses
Autoplace specification for this decorative prototype.
The class name of this object.
LuaEntity
extends
LuaControl
Gets the entities output inventory if it has one.
Inventory for storing modules of this entity; nil
if this entity has no module inventory.
The fuel inventory for this entity or nil
if this entity doesn't have a fuel inventory.
The burnt result inventory for this entity or nil
if this entity doesn't have a burnt result inventory.
Checks if the entity can be destroyed
Give the entity a command.
Give the entity a distraction command.
Has this unit been assigned a command?
Same as LuaEntity::has_flag, but targets the inner entity on a entity ghost.
Offer a thing on the market.
Remove an offer from a market.
Get all offers in a market as an array.
Removes all offers from a market.
Connect two devices with a circuit wire or copper cable.
Disconnect circuit wires or copper cables between devices.
Sets the entity to be deconstructed by construction robots.
Cancels deconstruction if it is scheduled, does nothing otherwise.
Is this entity marked for deconstruction?
Sets the entity to be upgraded by construction robots.
Cancels upgrade if it is scheduled, does nothing otherwise.
Is this entity marked for upgrade?
Get a logistic requester slot.
Set a logistic requester slot.
Clear a logistic requester slot.
Returns whether a craft is currently in process.
Get a transport line of a belt or belt connectable entity.
Get the maximum transport line index of a belt or belt connectable entity.
Revive a ghost.
Revives a ghost silently.
Get the rails that this signal is connected to.
Get the rail signal or train stop at the start/end of the rail segment this rail is in.
Get the rail at the end of the rail segment this rail is in.
Get the length of the rail segment this rail is in.
Get a rail from each rail segment that overlaps with this rail's rail segment.
Get the filter for a slot in an inserter, loader, or logistic storage container.
Set the filter for a slot in an inserter, loader, or logistic storage container.
Gets the filter for this infinity container at the given index or nil
if the filter index doesn't exist or is empty.
Sets the filter for this infinity container at the given index.
Gets the filter for this infinity pipe or nil
if the filter is empty.
Sets the filter for this infinity pipe.
Gets the heat setting for this heat interface.
Sets the heat setting for this heat interface.
Gets the control behavior of the entity (if any).
Gets (and or creates if needed) the control behavior of the entity.
Read a single signal from the combined circuit networks.
The merged circuit network signals or nil
if there are no signals.
Whether this entity supports a backer name.
Copies settings from the given entity onto this entity.
Gets all the LuaLogisticPoint
s that this entity owns.
Connects the rolling stock in the given direction.
Tries to disconnect this rolling stock in the given direction.
Reconnect loader, beacon, cliff and mining drill connections to entities that might have been teleported out or in by the script.
Current recipe being assembled by this machine or nil
if no recipe is set.
Sets the current recipe in this assembly machine.
Rotates this entity as if the player rotated it.
Gets the driver of this vehicle if any.
Sets the driver of this vehicle.
Gets the passenger of this car or spidertron if any.
Sets the passenger of this car or spidertron.
Returns true if this entity is connected to an electric network.
The trains scheduled to stop at this train stop.
The train currently stopped at this train stop or nil
if none.
Get the amount of all or some fluid in this entity.
Get amounts of all fluids in this entity.
Remove fluid from this entity.
Insert fluid into this entity.
Remove all fluids from this entity.
Get the source of this beam.
Set the source of this beam.
Get the target of this beam.
Set the target of this beam.
The radius of this entity.
The health ratio of this entity between 1 and 0 (for full health and no health respectively).
Creates the same smoke that is created when you place a building by hand.
Release the unit from the spawner which spawned it.
Toggle this entity's equipment movement bonus.
Whether this character can shoot the given entity or position.
Only works if the entity is a speech-bubble, with an "effect" defined in its wrapper_flow_style.
Returns the new entity prototype.
Returns the new entity direction after upgrading.
Returns the amount of damage to be taken by this entity.
Depletes and destroys this resource entity.
Triggers spawn_decoration actions defined in the entity prototype or does nothing if entity is not "turret" or "unit-spawner".
Can wires reach between these entities.
Gets rolling stock connected to the given end of this stock.
Is this entity or tile ghost or item request proxy registered for construction?
Is this entity registered for deconstruction with this force?
Is this entity registered for upgrade?
Is this entity registered for repair?
Adds the given position to this spidertron's autopilot's queue of destinations.
Connects current linked belt with another one.
Disconnects linked belt from its neighbour.
Gets legs of given SpiderVehicle.
Name of the entity or tile contained in this ghost
Localised name of the entity.
Localised name of the entity or tile contained in this ghost.
The prototype type of the entity or tile contained in this ghost.
Deactivating an entity will stop all its operations (car will stop moving, inserters will stop working, fish will stop moving etc).
If set to false
, this entity can't be damaged and won't be attacked automatically.
When entity is not to be rotatable (inserter, transport belt etc), it can't be rotated by player using the R key.
Player can't open gui of this entity and he can't quick insert/input stuff in to the entity when it is not operable.
The current direction this entity is facing.
Whether the entity has direction.
The smooth orientation of this entity, if it supports orientation.
The orientation of this cliff.
The relative orientation of the vehicle turret, artillery turret, artillery wagon or nil
if this entity isn't a vehicle with a vehicle turret or artillery turret/wagon.
The torso orientation of this spider vehicle.
Count of initial resource units contained.
Multiplies the acceleration the vehicle can create for one unit of energy.
Multiplies the energy consumption.
Multiplies the car friction rate.
Whether the driver of this car or spidertron is the gunner, if false, the passenger is the gunner.
Read when this spidertron auto-targets enemies
The current speed of this car in tiles per tick, rolling stock, projectile or spider vehicle, or current max speed of the unit.
The current speed of this unit in tiles per tick, taking into account any walking speed modifier given by the tile the unit is standing on.
The entity prototype of this entity.
The prototype of the entity or tile contained in this ghost.
Position where the entity puts its stuff.
Where the inserter will pick up items from.
The entity this entity is putting its items to, or nil
if there is no such entity.
The entity this inserter will attempt to pick up items from, or nil
if there is no such entity.
Index of the currently selected weapon slot of this character, car, or spidertron, or nil
if the car/spidertron doesn't have guns.
Energy stored in the entity (heat in furnace, energy stored in electrical devices etc.).
The temperature of this entities heat energy source if this entity uses a heat energy source or nil
.
The previous recipe this furnace was using or nil if the furnace had no previous recipe.
The item stack currently held in an inserter's hand.
Current position of the inserter's "hand".
A list of neighbours for certain types of entities.
The belt connectable neighbours of this belt connectable entity.
Fluidboxes of this entity.
The backer name assigned to this entity, or nil
if this entity doesn't support backer names.
The label of this entity if it has one or nil
.
The ticks left before a ghost, combat robot, highlight box or smoke with trigger is destroyed.
The character, rolling stock, train stop, car, spider-vehicle, flying text, corpse or simple-entity-with-owner color.
The text of this flying-text entity.
The state of this rail signal.
The state of this chain signal.
Will this entity be picked up automatically when the player walks over it?
The current crafting speed, including speed bonuses from modules and beacons.
The current crafting progress, as a number in range [0, 1].
The current productivity bonus progress, as a number in range [0, 1].
The productivity bonus of this entity.
The pollution bonus of this entity.
The speed bonus of this entity.
The consumption bonus of this entity.
"input"
or "output"
, depending on whether this underground belt goes down or up.
"input"
or "output"
, depending on whether this loader puts to or gets from a container.
Number of rocket parts in the silo.
The logistic network this entity is a part of, or nil
if this entity is not a part of any logistic network.
The logistic cell this entity is a part of.
Items this ghost will request when revived or items this item request proxy is requesting.
The unit group this unit is a member of, or nil
if none.
The damage dealt by this turret, artillery turret, or artillery wagon.
The buffer size for the electric energy source or nil if the entity doesn't have an electric energy source.
The input flow limit for the electric energy source or nil if the entity doesn't have an electric energy source.
The output flow limit for the electric energy source or nil if the entity doesn't have an electric energy source.
The electric drain for the electric energy source or nil if the entity doesn't have an electric energy source.
The emissions for the electric energy source or nil if the entity doesn't have an electric energy source.
A universally unique number identifying this entity for the lifetime of the save.
The unit_number of the entity contained in this ghost.
The mining progress for this mining drill or nil
if this isn't a mining drill.
The bonus mining progress for this mining drill or nil
if this isn't a mining drill.
The power production specific to the ElectricEnergyInterface entity type.
The power usage specific to the ElectricEnergyInterface entity type.
LuaEntityPrototype::collision_box around entity's given position and respecting the current entity orientation.
The secondary bounding box of this entity or nil
if it doesn't have one.
LuaEntityPrototype::selection_box around entity's given position and respecting the current entity orientation.
The secondary selection box of this entity or nil
if it doesn't have one.
The mining target or nil
if none
Entities that are directly connected to this entity via the circuit network.
The connection definition for entities that are directly connected to this entity via the circuit network.
The index of the configured request with the highest index for this entity.
The number of filter slots this inserter, loader, or logistic storage container has.
The container entity this loader is pointing at/pulling from depending on the LuaEntity::loader_type.
The equipment grid or nil
if this entity doesn't have an equipment grid.
The graphics variation for this entity or nil
if this entity doesn't use graphics variations.
Index of the tree color.
Maximum index of the tree colors.
Index of the tree stage.
Maximum index of the tree stages.
Index of the tree gray stage
Maximum index of the tree gray stages.
The shooting target for this turret or nil
.
The target entity for this item-request-proxy or nil
The entity this sticker is sticked to.
The electric network statistics for this electric pole.
Sets the stack size limit on this inserter.
The number of products this machine finished crafting in its lifetime.
The spawner associated with this unit entity or nil
if the unit has no associated spawner.
The state of this power switch.
The effects being applied to this entity or nil
.
The filters for this infinity container.
If items not included in this infinity container filters should be removed from the container.
The player index associated with this character corpse.
The tick this character corpse died at.
The reason this character corpse character died (if any).
The player this character is associated with or nil
if none.
The last tick this character entity was attacked.
The last tick this character entity was damaged.
The filter for this splitter or nil
if no filter is set.
The filter mode for this filter inserter: "whitelist", "blacklist", or nil
if this inserter doesn't use filters.
The input priority for this splitter : "left", "none", or "right".
The output priority for this splitter : "left", "none", or "right".
When locked; the recipe in this assembling machine can't be changed by the player.
The rail entity this train stop is connected to or nil
if there is none.
Rail direction to which this train stop is binding.
The number of trains in this rail block for this rail entity.
The current total neighbour bonus of this reactor.
The ai settings of this unit.
The hightlight box type of this highlight box entity.
The blink interval of this highlight box entity.
The status of this entity or nil
if no status.
If equipment grid logistics are enabled while this vehicle is moving.
The player that this simple-entity-with-owner
, simple-entity-with-force
, flying-text
, or highlight-box
is visible to.
The forces that this simple-entity-with-owner
, simple-entity-with-force
, or flying-text
is visible to.
The rail target of this pump or nil
.
Returns the id of the electric network that this entity is connected to or nil
.
Whether this character's personal roboports are allowed to dispatch robots.
Whether this rocket silo automatically launches the rocket when cargo is inserted.
How much energy this generator generated in the last tick.
The storage filter for this logistic storage container.
Whether this requester chest is set to also request from buffer chests.
Whether this corpse will ever fade away.
If true, corpse won't be destroyed when entities are placed over it.
The distraction command given to this unit or nil
is the unit currently isn't distracted.
The ticks until the next trigger effect of this smoke-with-trigger.
Destination position of spidertron's autopilot.
The queued destination positions of spidertron's autopilot.
Amount of trains related to this particular train stop.
Amount of trains above which no new trains will be sent to this train stop.
(deprecated by 1.1.51) If this entity is a MilitaryTarget.
If this entity is a MilitaryTarget.
If this entity is EntityWithOwner
If this entity is EntityWithHealth
The owner of this combat robot if any.
The follow target of this spidertron if any.
The follow offset of this spidertron if any.
Type of linked belt: it is either "input"
or "output"
.
Neighbour to which this linked belt is connected to.
The class name of this object.
LuaControl
:
surface
, position
, vehicle
, force
, selected
, opened
, crafting_queue_size
, crafting_queue_progress
, walking_state
, riding_state
, mining_state
, shooting_state
, picking_state
, repair_state
, cursor_stack
, cursor_ghost
, driving
, crafting_queue
, following_robots
, cheat_mode
, character_crafting_speed_modifier
, character_mining_speed_modifier
, character_additional_mining_categories
, character_running_speed_modifier
, character_build_distance_bonus
, character_item_drop_distance_bonus
, character_reach_distance_bonus
, character_resource_reach_distance_bonus
, character_item_pickup_distance_bonus
, character_loot_pickup_distance_bonus
, character_inventory_slots_bonus
, character_trash_slot_count_bonus
, character_maximum_following_robot_count_bonus
, character_health_bonus
, character_personal_logistic_requests_enabled
, vehicle_logistic_requests_enabled
, opened_gui_type
, build_distance
, drop_item_distance
, reach_distance
, item_pickup_distance
, loot_pickup_distance
, resource_reach_distance
, in_combat
, character_running_speed
, character_mining_progress
, get_inventory
, get_main_inventory
, can_insert
, insert
, set_gui_arrow
, clear_gui_arrow
, get_item_count
, has_items_inside
, can_reach_entity
, clear_items_inside
, remove_item
, teleport
, update_selected_entity
, clear_selected_entity
, disable_flashlight
, enable_flashlight
, is_flashlight_enabled
, get_craftable_count
, begin_crafting
, cancel_crafting
, mine_entity
, mine_tile
, is_player
, open_technology_gui
, set_personal_logistic_slot
, set_vehicle_logistic_slot
, get_personal_logistic_slot
, get_vehicle_logistic_slot
, clear_personal_logistic_slot
, clear_vehicle_logistic_slot
, is_cursor_blueprint
, get_blueprint_entities
, is_cursor_empty
LuaEntityPrototype
Gets the base size of the given inventory on this entity or nil
if the given inventory doesn't exist.
Max health of this entity.
Is this resource infinite?
Minimum amount of this resource.
The normal amount for this resource.
Every time this infinite resource 'ticks' down it is reduced by this amount.
Name of the category of this resource or nil
when not a resource.
Whether this entity is minable and what can be obtained by mining it.
Items that, when placed, will produce this entity.
The bounding box used for collision checking.
The secondary bounding box used for collision checking, or nil
if it doesn't have one.
The bounding box used for map generator collision checking.
The bounding box used for drawing selection.
The bounding box used for drawing the entity icon.
The bounding box used to attach sticker type entities.
The collision masks this entity uses
The hardcoded default collision mask (with flags) for this entity prototype type.
Amount this entity can heal per tick.
Amount of pollution emissions per second this entity will create.
Corpses used when this entity is destroyed.
Is this entity selectable?
The selection priority of this entity - a value between 0 and 255
List of resistances towards each damage type.
The group of mutually fast-replaceable entities.
The next upgrade for this entity or nil
.
Repair-speed modifier for this entity.
The range of this turret or nil
if this isn't a turret related prototype.
Autoplace specification for this entity prototype.
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.
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 attack parameters for this entity or nil
if the entity doesn't use attack parameters.
The spawning cooldown for this enemy spawner prototype or nil
.
The mining radius of this mining drill prototype or nil
if this isn't a mining drill prototype.
The mining speed of this mining drill/character prototype or nil
.
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 flags for this entity prototype.
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 support 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 or nil
.
The crafting categories this entity supports.
The resource categories this character or mining drill supports, or nil
if not a character or mining dill.
The supply area of this electric pole, beacon, or nil
if this is neither.
The maximum wire distance for this entity.
The maximum circuit wire distance for this entity.
The direct energy usage of this entity or nil
if this entity doesn't have a direct energy usage.
The theoretical maximum energy usage for this entity.
The theoretical maximum energy production for this this entity.
The effectivity of this car prototype, generator prototype or nil
.
The energy consumption of this car prototype or nil
if not a car prototype.
The friction of this vehicle prototype or nil
if not a vehicle prototype.
The braking force of this vehicle prototype or nil
if not a vehicle prototype.
The air resistance of this rolling stock prototype or nil
if not a rolling stock prototype.
If this car prototype uses tank controls to drive or nil
if this is not a car prototype.
The rotation speed of this car prototype or nil
if not a car prototype.
The turret rotation speed of this car prototype or nil
if not a car prototype.
A mapping of the gun name to the gun prototype this prototype uses, or nil
.
The default speed of this flying robot, rolling stock or unit, nil
if not one of these.
The speed multiplier when this flying robot is out of energy or nil
.
The max payload size of this logistics or construction robot or nil
.
Whether this logistics or construction robot renders its cargo when flying or nil
.
The energy consumed per tile moved for this flying robot or nil
.
The energy consumed per tick for this flying robot or nil
.
The max energy for this flying robot or nil
.
The minimum energy for this flying robot before it tries to recharge or nil
.
The maximum energy for this flying robot above which it won't try to recharge when stationing or nil
.
The burner energy source prototype this entity uses or nil
.
The electric energy source prototype this entity uses or nil
.
The heat energy source prototype this entity uses or nil
.
The fluid energy source prototype this entity uses or nil
.
The void energy source prototype this entity uses or nil
.
The log2 of grid size of the building
The fluid usage of this generator prototype or nil
.
The maximum fluid temperature of this generator prototype or nil
.
The target temperature of this boiler prototype or nil
.
The fluid this offshore pump produces or nil
.
The fluid capacity of this entity or 0 if this entity doesn't support fluids.
The pumping speed of this offshore pump, normal pump, or nil
.
If this inserter allows custom pickup and drop vectors.
If this inserter allows burner leeching.
The extension speed of this inserter or nil
.
The rotation speed of this inserter or nil
.
The pickup position for this inserter or nil
.
The drop position for this inserter or nil
.
True if this inserter chases items on belts for pickup or nil
.
If this simple-entity is counted as a rock for the deconstruction planner "trees and rocks only" filter.
The filter count of this inserter, loader, or logistic chest or nil
.
The time to live for this prototype or 0
if prototype doesn't have time_to_live or time_before_removed.
The distribution effectivity for this beacon prototype or nil
if not a beacon prototype.
Does this explosion have a beam or nil
if not an explosion prototype.
Does this explosion rotate or nil
if not an explosion prototype.
If it is a tree, return the number of colors it supports.
Does this entity with health prototype alert when damaged?
Does this turret prototype alert when attacking?
Does this prototype collision mask collide with itself?
Does this prototype collision mask collide with tiles only?
Does this prototype collision mask consider tile transitions?
The allowed module effects for this entity or nil
.
The rocket parts required for this rocket silo prototype or nil
.
The rocket rising delay for this rocket silo prototype or nil
.
The rocket launch delay for this rocket silo prototype or nil
.
The light blinking speed for this rocket silo prototype or nil
.
The door opening speed for this rocket silo prototype or nil
.
The rising speed for this rocket silo rocket prototype or nil
.
The engine starting speed for this rocket silo rocket prototype or nil
.
The flying speed for this rocket silo rocket prototype or nil
.
The flying acceleration for this rocket silo rocket prototype or nil
.
The fixed recipe name for this assembling machine prototype or nil
.
The construction radius for this roboport prototype or nil
.
The logistic radius for this roboport prototype or nil
.
The energy used per hitpoint taken for this vehicle during collisions or nil
.
If this prototype will attempt to create a ghost of itself on death.
Collision mask entity must collide with to make landmine blowup
The fluidbox prototypes for this entity.
The amount of ammo that inserters automatically insert into this ammo-turret or artillery-turret or nil
.
The max speed of this projectile prototype or flying robot prototype or nil
.
Value between 0 and 1 darkness where all lamps of this lamp prototype are on or nil
.
Value between 0 and 1 darkness where all lamps of this lamp prototype are off or nil
.
Whether the lamp is always on (except when out of power or turned off by the circuit network) or nil
.
The minimum darkness at which this unit spawner can spawn entities.
The maximum darkness at which this unit spawner can spawn entities.
Count of enemies this spawner can sustain.
How many friendly units are required within the spawning_radius of this spawner for it to stop producing more units.
How far from the spawner can the units be spawned.
What spaces should be between the spawned units.
The item prototype name used to destroy this cliff or nil
.
The rocket entity prototype associated with this rocket silo prototype or nil
.
Whether this unit, car, or character prototype has belt immunity, nil
if not car, unit, or character prototype.
The vision distance of this unit prototype or nil
.
The amount of pollution that has to be absorbed by the unit's spawner before the unit will leave the spawner and attack the source of the pollution.
The minimum pursue time of this unit prototype or nil
.
The maximum pursue distance of this unit prototype or nil
.
The radar range of this unit prototype or nil
.
Whether this unit prototype can move while shooting or nil
.
Whether this unit prototype can open gates or nil
.
Whether this unit prototype is affected by tile walking speed modifiers or nil
.
The distraction cooldown of this unit prototype or nil
.
The spawning time modifier of this unit prototype or nil
.
The alert icon shift of this entity prototype.
The item prototype names that are the inputs of this lab prototype or nil
.
The base researching speed of this lab prototype or nil
.
The item slot count of this constant combinator prototype or nil
.
The base productivity of this crafting machine, lab, or mining drill, or nil
.
If this market allows access to all forces or just friendly ones.
If this entity prototype could possibly ever be rotated.
The terrain friction modifier for this vehicle.
If this vehicle allows passengers.
The radius of the area this radar can chart, in chunks.
The radius of the area constantly revealed by this radar, in chunks.
The bounding box that specifies which tiles adjacent to the offshore pump should be checked.
Tiles adjacent to the offshore pump must not collide with this collision mask.
If this mask is not empty, tiles adjacent to the offshore pump must not collide with this collision mask.
The collision mask used only for collision test with tile directly at offshore pump position.
The equipment grid prototype for this entity or nil
.
Gets the built-in stack size bonus of this inserter prototype.
True if this entity prototype should be included during tile collision checks with LuaTilePrototype::check_collision_with_entities enabled.
True if this is entity-with-owner
True if this entity-with-owner is military target
True if this entity-with-owner's is_military_target can be changed run-time (on the entity, not on the prototype itself)
Gets the current movement speed of this character, including effects from exoskeletons, tiles, stickers and shooting.
The class name of this object.
LuaEquipment
Position of this equipment in the equipment grid.
Maximum shield value.
Maximum solar power generated.
Movement speed bonus.
Energy generated per tick.
Maximum amount of energy that can be stored in this equipment.
The class name of this object.
The class name of this object.
LuaEquipmentGrid
Remove an equipment from the grid.
Clear all equipment from the grid, removing it without actually returning it.
Insert an equipment into the grid.
Find equipment in the Equipment Grid based off a position.
Get counts of all equipment in this grid.
All the equipment in this grid.
Total energy per tick generated by the equipment inside this grid.
Maximum energy per tick that can be created by any solar panels in the equipment grid.
The total energy stored in all batteries in the equipment grid.
Total energy storage capacity of all batteries in the equipment grid.
The maximum amount of shields this equipment grid has.
True if this movement bonus equipment is turned off, otherwise false.
The class name of this object.
Equipment category names for the categories that may be inserted into this equipment grid.
The class name of this object.
LuaEquipmentPrototype
The result item when taking this equipment out of an equipment grid.
The max power generated by this equipment.
The energy per shield point restored.
The logistic parameters for this roboport equipment.
The energy source prototype for the equipment.
Category names for this equipment.
The burner energy source prototype this equipment uses or nil
.
The electric energy source prototype this equipment uses or nil
.
The background color of this equipment prototype.
The equipment attack parameters or nil
.
The class name of this object.
LuaFlowStatistics
Gets the total input count for a given prototype.
Sets the total input count for a given prototype.
Gets the total output count for a given prototype.
Sets the total output count for a given prototype.
Gets the flow count value for the given time frame.
Adds a value to this flow statistics.
Reset all the statistics data to 0.
List of input counts indexed by prototype name.
List of output counts indexed by prototype name.
The class name of this object.
LuaFluidBox
Number of fluid boxes.
Access, set or clear a fluid box.
The prototype of this fluidbox index.
The capacity of the given fluidbox index.
The fluidbox connections for the given fluidbox index.
Get a fluid box filter
Set a fluid box filter.
Returns the fluid the fluidbox is locked onto
Gets unique fluid system identifier of selected fluid box.
Flushes all fluid from this fluidbox and its fluid system.
The class name of this object.
LuaFluidBoxPrototype
The entity that this belongs to.
The pipe connection points.
The production type.
The filter or nil
if no filter is set.
The minimum temperature or nil
if none is set.
The maximum temperature or nil
if none is set.
The secondary draw orders for the 4 possible connection directions.
The render layer.
The class name of this object.
LuaFluidPrototype
Default temperature of this fluid.
Maximum temperature this fluid can reach.
The amount of energy in Joules required to heat one unit of this fluid by 1°C.
The temperature above which this fluid will be shown as gaseous inside tanks and pipes.
A multiplier on the amount of emissions produced when this fluid is burnt in a generator.
The amount of energy in Joules one unit of this fluid will produce when burnt in a generator.
The class name of this object.
LuaFontPrototype
LuaForce
Count entities of given type.
Disable research for this force.
Enable research for this force.
Disable all recipes and technologies.
Enables all recipes and technologies.
Load the original version of all recipes from the prototypes.
Unlock all recipes.
Unlock all technologies.
Research all technologies.
Load the original versions of technologies from prototypes.
Reset everything.
Reapplies all possible research effects, including unlocked recipes.
Chart a portion of the map.
Erases chart data for this force.
Force a rechart of the whole chart.
Chart all generated chunks.
Has a chunk been charted?
Is the given chunk currently charted and visible (not covered by fog of war) on the map.
Cancels pending chart requests for the given surface or all surfaces.
Add other
force to this force's cease fire list.
Is other
force in this force's cease fire list?
Add other
force to this force's friends list.
Is other
force in this force's friends list.
Is pathfinder busy?
Kill all units and flush the pathfinder.
Gets the count of a given item launched in rockets.
Sets the count of a given item launched in rockets.
Print text to the chat console of all players on this force.
Adds a custom chart tag to the given surface and returns the new tag or nil
if the given position isn't valid for a chart tag.
Finds all custom chart tags within the given bounding box on the given surface.
Gets the saved progress for the given technology or nil
if there is no saved progress.
Sets the saved progress for the given technology.
Resets evolution for this force to zero.
Play a sound for every player in this force.
Gets train stops matching the given filters.
Gets if the given recipe is explicitly disabled from being hand crafted.
Sets if the given recipe can be hand-crafted.
Add this technology to the back of the research queue if the queue is enabled.
Stop the research currently in progress.
Gets the linked inventory for the given prototype and link ID if it exists or nil
.
Technologies owned by this force, indexed by name
.
Recipes available to this force, indexed by name
.
Multiplier of the manual mining speed.
Multiplier of the manual crafting speed.
The current technology in research, or nil
if no research is currently ongoing.
Progress of current research, as a number in range [0, 1].
The previous research if any.
The inserter stack size bonus for non stack inserters
Number of items that can be transferred by stack inserters.
Number of character trash slots.
Maximum number of follower robots.
Additional lifetime for following robots.
The time, in ticks, before a placed ghost disappears.
Enables some higher-level AI behaviour for this force.
List of logistic networks, grouped by surface.
The item production statistics for this force.
The fluid production statistics for this force.
The kill counter statistics for this force.
The entity build statistics for this force (built and mined)
Modifies the running speed of all characters in this force by the given value as a percentage.
the number of additional inventory slots the character main inventory has.
The time, in ticks, before a deconstruction order is removed.
Ability to use zoom-to-world on map.
Ability to build ghosts through blueprint or direct ghost placement, or "mine" ghosts when using zoom-to-world.
Ability to create new blueprints using empty blueprint item when using zoom-to-world.
Ability to use deconstruction planner when using zoom-to-world.
Ability to use custom selection tools when using zoom-to-world.
true
if character requester logistics is enabled.
The number of rockets launched.
All of the items that have been launched in rockets.
The connected players belonging to this force.
Evolution factor of this force.
If friendly fire is enabled for this force.
If sharing chart data is enabled for this force.
Whether the research queue is available for this force.
The research queue of this force.
Whether research is enabled for this force, see LuaForce::enable_research and LuaForce::disable_research
The class name of this object.
LuaFuelCategoryPrototype
The class name of this object.
LuaGameScript
Set scenario state.
Reset scenario state (game_finished, player_won, etc.).
Show an in-game message dialog.
Forces a reload of the scenario script from the original scenario location.
Forces a reload of all mods.
Saves the current configuration of Atlas to a file.
Run internal consistency checks.
Regenerate autoplacement of some entities on all surfaces.
Take a screenshot and save it to a file.
Forces the screenshot saving system to wait until all queued screenshots have been written to disk.
Take a screenshot of the technology screen and save it to a file.
Convert a table to a JSON string
Convert a JSON string to a table.
Write a string to a file.
Remove file or directory.
Remove players who are currently not connected from the map.
Force a CRC check.
Create a new force.
Marks two forces to be merged together.
Create a new surface.
Instruct the server to save the map.
Instruct the game to perform an auto-save.
Deletes the given surface and all entities on it.
Disables replay saving for the current save file.
Disables tutorial triggers, that unlock new tutorials and show notices about unlocked tutorials.
Converts the given direction into the string version of the direction.
Print text to the chat console all players.
Creates a deterministic standalone random generator with the given seed or if a seed is not provided the initial map seed is used.
Goes over all items, entities, tiles, recipes, technologies among other things and logs if the locale is incorrect.
Play a sound for every player in the game.
Checks if the given SoundPath is valid.
Checks if the given SpritePath is valid and contains a loaded sprite.
Kicks the given player from this multiplayer game.
Bans the given player from this multiplayer game.
Unbans the given player from this multiplayer game.
Purges the given players messages from the game.
Mutes the given player.
Unmutes the given player.
Counts how many distinct groups of pipes exist in the world.
Is the map loaded is multiplayer?
Gets the number of entities that are active (updated each tick).
Gets the map exchange string for the map generation settings that were used to create this map.
Convert a map exchange string to map gen settings and map settings.
Gets train stops matching the given filters.
Gets the given player or returns nil
if no player is found.
Gets the given surface or returns nil
if no surface is found.
Creates a LuaProfiler, which is used for measuring script performance.
Evaluate an expression, substituting variables as provided.
Returns a dictionary of all LuaEntityPrototypes that fit the given filters.
Returns a dictionary of all LuaItemPrototypes that fit the given filters.
Returns a dictionary of all LuaEquipmentPrototypes that fit the given filters.
Returns a dictionary of all LuaModSettingPrototypes that fit the given filters.
Returns a dictionary of all LuaAchievementPrototypes that fit the given filters.
Returns a dictionary of all LuaTilePrototypes that fit the given filters.
Returns a dictionary of all LuaDecorativePrototypes that fit the given filters.
Returns a dictionary of all LuaFluidPrototypes that fit the given filters.
Returns a dictionary of all LuaRecipePrototypes that fit the given filters.
Returns a dictionary of all LuaTechnologyPrototypes that fit the given filters.
Creates an inventory that is not owned by any game object.
Gets the inventories created through LuaGameScript::create_inventory
Resets the amount of time played for this map.
Deflates and base64 encodes the given string.
Base64 decodes and inflates the given string.
This object's name.
Get a table of all the players that currently exist.
The currently active set of map settings.
The currently active set of difficulty settings.
Current scenario difficulty.
Get a table of all the forces that currently exist.
A dictionary containing every LuaEntityPrototype indexed by name
.
A dictionary containing every LuaItemPrototype indexed by name
.
A dictionary containing every LuaFluidPrototype indexed by name
.
A dictionary containing every LuaTilePrototype indexed by name
.
A dictionary containing every LuaEquipmentPrototype indexed by name
.
A dictionary containing every LuaDamagePrototype indexed by name
.
A dictionary containing every LuaVirtualSignalPrototype indexed by name
.
A dictionary containing every LuaEquipmentGridPrototype indexed by name
.
A dictionary containing every LuaRecipePrototype indexed by name
.
A dictionary containing every LuaTechnologyPrototype indexed by name
.
A dictionary containing every LuaDecorativePrototype indexed by name
.
A dictionary containing every LuaParticlePrototype indexed by name
.
A dictionary containing every LuaAutoplaceControlPrototype indexed by name
.
A dictionary containing every LuaNoiseLayerPrototype indexed by name
.
A dictionary containing every LuaModSettingPrototype indexed by name
.
A dictionary containing every LuaCustomInputPrototype indexed by name
.
A dictionary containing every LuaAmmoCategoryPrototype indexed by name
.
A dictionary containing every LuaNamedNoiseExpression indexed by name
.
A dictionary containing every ItemSubgroup indexed by name
.
A dictionary containing every ItemGroup indexed by name
.
A dictionary containing every LuaFuelCategoryPrototype indexed by name
.
A dictionary containing every LuaResourceCategoryPrototype indexed by name
.
A dictionary containing every LuaAchievementPrototype indexed by name
.
A dictionary containing every LuaModuleCategoryPrototype indexed by name
.
A dictionary containing every LuaEquipmentCategoryPrototype indexed by name
.
A dictionary containing every LuaTrivialSmokePrototype indexed by name
.
A dictionary containing every LuaShortcutPrototype indexed by name
.
A dictionary containing every LuaRecipeCategoryPrototype indexed by name
.
A dictionary containing every LuaFontPrototype indexed by name
.
A dictionary containing every MapGenPreset indexed by name
.
The styles that LuaGuiElement can use, indexed by name
.
The number of ticks since this game was 'created'.
If the tick has been paused.
The number of ticks to be run while the tick is paused.
True after players finished the game and clicked "continue".
Get a table of all the surfaces that currently exist.
The active mods versions.
The players that are currently online.
Array of the names of all the backers that supported the game development early on.
The default map gen settings for this save.
Determines if enemy land mines are completely invisible or not.
True by default.
True by default.
The pollution statistics for this map.
LuaGenericOnOffControlBehavior
extends
LuaControlBehavior
LuaGroup
LuaGui
Returns true
if sprite_path is valid and contains loaded sprite, otherwise false
.
The children GUI elements mapped by name <> element.
The top part of the GUI.
The left part of the GUI.
The center part of the GUI.
The flow used in the objectives window.
For showing a GUI somewhere on the entire screen.
For showing a GUI somewhere relative to one of the game GUIs.
The class name of this object.
LuaGuiElement
The indexing operator.
Add a new child element to this GuiElement.
Remove children of this element.
Remove this element, along with its children.
Gets the index that this element has in its parent element.
Swaps the children at the given indices in this element.
Removes the items in this dropdown or listbox.
Gets the item at the given index from this dropdown or listbox.
Sets the given string at the given index in this dropdown or listbox.
Inserts a string at the end or at the given index of this dropdown or listbox.
Removes the item at the given index from this dropdown or listbox.
Gets this sliders minimum value.
Gets this sliders maximum value.
Sets this sliders minimum and maximum values.
Gets the minimum distance this slider can move.
Returns whether this slider only allows being moved to discrete positions.
Returns whether this slider only allows discrete values.
Sets the minimum distance this slider can move.
Sets whether this slider only allows being moved to discrete positions.
Sets whether this slider only allows discrete values.
Focuses this GUI element if possible.
Scrolls this scroll bar to the top.
Scrolls this scroll bar to the bottom.
Scrolls this scroll bar to the left.
Scrolls this scroll bar to the right.
Scrolls this scroll bar such that the specified GUI element is visible to the player.
Selects all the text in this textbox.
Selects a range of text in this textbox.
Adds the given tab and content widgets to this tabbed pane as a new tab.
Removes the given tab and its associated content from this tabbed pane.
Forces this frame to re-auto-center.
Scrolls the scroll bar such that the specified listbox item is visible to the player.
Moves this GUI element to the "front" so it will draw over other elements.
The direct parent of this element; nil
if this is a top-level element.
The text displayed on this element.
Sets whether this GUI element is visible or completely hidden, taking no space in the layout.
Names of all the children of this element.
Index into LuaGameScript::players specifying the player who owns this element.
The image to display on this sprite-button or sprite in the default state.
Whether the image widget should resize according to the sprite in it.
The image to display on this sprite-button when it is hovered.
The image to display on this sprite-button when it is clicked.
Policy of the horizontal scroll bar.
Policy of the vertical scroll bar.
The child-elements of this GUI element.
The items in this dropdown or listbox.
The selected index for this dropdown or listbox.
Related to the number to be shown in the bottom right corner of this sprite-button.
The location of this widget when stored in LuaGui::screen, or nil
if not set or not in LuaGui::screen.
Whether this frame auto-centers on window resize when stored in LuaGui::screen.
The text to display after the normal tab text (designed to work with numbers)
The position this camera or minimap is focused on, if any.
The surface index this camera or minimap is using.
The player index this minimap is using.
The elem value of this choose-elem-button or nil
if there is no value.
The elem filters of this choose-elem-button or nil
if there are no filters.
Whether the contents of this text-box are selectable.
Whether this GUI element is ignored by interaction.
Whether this table should draw vertical grid lines.
Whether this table should draw horizontal grid lines.
Whether this table should draw a horizontal grid line below the first table row.
The number of columns in this table.
Whether the content of this table should be vertically centered.
The value of this slider element.
The mouse button filters for this button or sprite-button.
Whether this textfield (when in numeric mode) allows decimal numbers.
Whether this textfield (when in numeric mode) allows negative numbers.
Whether this textfield displays as a password field, which renders all characters as *
.
Whether this textfield loses focus after defines.events.on_gui_confirmed is fired.
Makes it so right-clicking on this textfield clears and focuses it.
The frame
that is being moved when dragging this GUI element, or nil
.
The selected tab index for this tabbed pane or nil
if no tab is selected.
The tabs and contents being shown in this tabbed-pane.
The entity associated with this entity-preview, camera, minimap or nil
if no entity is associated.
The switch state (left, none, right) for this switch.
Whether the "none"
state is allowed for this switch.
The text shown for the left switch label.
The tooltip shown on the left switch label.
The text shown for the right switch label.
The tooltip shown on the right switch label.
The class name of this object.
LuaInserterControlBehavior
extends
LuaGenericOnOffControlBehavior
true
if the contents of the inserter hand should be sent to the circuit network
The circuit mode of operations for the inserter.
The hand read mode for the inserter.
If the stack size of the inserter is set through the circuit network or not.
The signal used to set the stack size of the inserter.
The class name of this object.
LuaInventory
Get the number of slots in this inventory.
The indexing operator.
Make this inventory empty.
Can at least some items be inserted?
Get the number of all or some items in this inventory.
Get counts of all items in this inventory.
Does this inventory support a bar?
Set the current bar.
If this inventory supports filters.
If this inventory supports filters and has at least 1 filter set.
If the given inventory slot filter can be set to the given filter.
Gets the filter for the given item stack index.
Sets the filter for the given item stack index.
Gets the first LuaItemStack in the inventory that matches the given item name.
Finds the first empty stack.
Counts the number of empty stacks.
Gets the number of the given item that can be inserted into this inventory.
Sorts and merges the items in this inventory.
Resizes the inventory.
Destroys this inventory.
The inventory index this inventory uses, or nil
if the inventory doesn't have an index.
The entity that owns this inventory or nil
if this isn't owned by an entity.
The player that owns this inventory or nil
if this isn't owned by a player.
The equipment that owns this inventory or nil
if this isn't owned by an equipment.
The class name of this object.
LuaItemPrototype
Type of this ammo prototype or nil
if this is not an ammo prototype.
Prototype of the entity that will be created by placing this item, or nil
if there is no such entity.
Prototype of the equipment that will be created by placing this item in an equipment grid or nil
if there is no equipment defined.
The place-as-tile result if one is defined, else nil
.
The default request value.
Maximum stack size of the item specified by this prototype.
The number of items needed to connect 2 entities with this as wire.
The fuel category or nil
.
The result of burning this item as fuel or nil
.
Fuel value when burned.
The acceleration multiplier when this item is used as fuel in a vehicle.
The fuel top speed multiplier when this item is used as fuel in a vehicle.
The emissions multiplier if this is used as fuel.
The flags for this item prototype.
The results from launching this item in a rocket.
If this item can be mod-opened.
Size of full magazine; nil
if this is not an ammo item.
Amount of extra time (in ticks) it takes to reload the weapon after depleting the magazine or nil
if this is not an ammo item.
The prototype of this armor equipment grid or nil
if none or this is not an armor item.
Resistances of this armour item, indexed by damage type name.
The inventory size bonus for this armor prototype.
The capsule action for this capsule item prototype or nil
if this isn't a capsule item prototype.
The gun attack parameters or nil
if not a gun item prototype.
The main inventory size for item-with-inventory-prototype.
The filter mode used by this item with inventory.
The insertion priority mode used by this item with inventory.
The localised string used when the player attempts to put items into this item with inventory that aren't allowed.
If this item with inventory extends the inventory it resides in by default.
The default label color used for this item with label.
If true, and this item with label has a label it is drawn in place of the normal number when held in the cursor.
Effects of this module; nil
if this is not a module.
The name of a LuaModuleCategoryPrototype.
An array of recipe names this module is allowed to work with.
The limitation message key used when the player attempts to use this modules in some place it's not allowed.
The straight rail prototype used for this rail planner prototype, or nil
if this isn't a rail planner prototype.
The curved rail prototype used for this rail planner prototype, or nil
if this isn't a rail planner prototype.
The repair result of this repair tool prototype or nil
if this isn't a repair tool prototype.
The color used when doing normal selection with this selection tool prototype.
The color used when doing alt selection with this selection tool prototype.
Flags that affect which entities will be selected.
Flags that affect which entities will be selected during alternate selection.
If tiles area always included when doing selection with this selection tool prototype.
The entity filter mode used by this selection tool.
The alt entity filter mode used by this selection tool.
The tile filter mode used by this selection tool.
The alt tile filter mode used by this selection tool.
The entity filters used by this selection tool indexed by entity name.
The alt entity filters used by this selection tool indexed by entity name.
The entity type filters used by this selection tool indexed by entity type.
The alt entity type filters used by this selection tool indexed by entity type.
The tile filters used by this selection tool indexed by tile name.
The alt tile filters used by this selection tool indexed by tile name.
The number of entity filters this deconstruction item has or nil
if this isn't a deconstruction item prototype.
The number of tile filters this deconstruction item has or nil
if this isn't a deconstruction item prototype.
The durability message key used when displaying the durability of this tool.
The durability of this tool item or nil
if not a tool item.
How many filters an upgrade item has.
The class name of this object.
LuaItemStack
Is this blueprint item setup?
The entities in this blueprint.
Set new entities to be a part of this blueprint.
Add ammo to this ammo item.
Remove ammo from this ammo item.
Add durability to this tool item.
Remove durability from this tool item.
Would a call to LuaItemStack::set_stack succeed?
Transfers the given item stack into this item stack.
Export a supported item (blueprint, blueprint-book, deconstruction-planner, upgrade-planner, item-with-tags) to a string.
Import a supported item (blueprint, blueprint-book, deconstruction-planner, upgrade-planner, item-with-tags) from a string.
Swaps this item stack with the given item stack if allowed.
Clear this item stack.
A list of the tiles in this blueprint.
Set specific tiles in this blueprint.
Access the inner inventory of an item.
Deconstruct the given area with this deconstruction item.
Cancel deconstruct the given area with this deconstruction item.
Sets up this blueprint using the found blueprintable entities/tiles on the surface.
Sets the tag with the given name and value.
Removes a tag with the given name.
Clears this blueprint item.
Gets the entity filter at the given index for this deconstruction item.
Sets the entity filter at the given index for this deconstruction item.
Gets the tile filter at the given index for this deconstruction item.
Sets the tile filter at the given index for this deconstruction item.
Clears all settings/filters on this deconstruction item resetting it to default values.
Clears all settings/filters on this upgrade item resetting it to default values.
Gets the filter at the given index for this upgrade item.
Sets the module filter at the given index for this upgrade item.
Gets the number of entities in this blueprint item.
Gets the tags for the given blueprint entity index in this blueprint item.
Sets the tags on the given blueprint entity index in this blueprint item.
Gets the given tag on the given blueprint entity index in this blueprint item.
Sets the given tag on the given blueprint entity index in this blueprint item.
Creates the equipment grid for this item if it doesn't exist and this is an item-with-entity-data that supports equipment grids.
Is this valid for reading?
Prototype of the item held in this stack.
The equipment grid of this item or nil
if this item doesn't have a grid.
Durability of the contained item.
Icons of a blueprint item, blueprint book, deconstruction item or upgrade planner.
The snapping grid size in this blueprint item or nil if snapping is not enabled.
The offset from the absolute grid or nil if absolute snapping is not enabled.
If absolute snapping is enabled on this blueprint item.
The current label color for this item.
If the label for this item can be manually changed.
Raw materials required to build this blueprint.
If this item extends the inventory it resides in (provides its contents for counts, crafting, insertion).
The insertion mode priority this ItemWithInventory uses when items are inserted into an inventory it resides in.
The default icons for a blueprint item.
The custom description this item-with-tags.
The entity filters for this deconstruction item.
The tile filters for this deconstruction item.
The blacklist/whitelist entity filter mode for this deconstruction item.
The blacklist/whitelist tile filter mode for this deconstruction item.
The tile selection mode for this deconstruction item.
If this deconstruction item is set to allow trees and rocks only.
The number of entity filters this deconstruction item supports.
The number of tile filters this deconstruction item supports.
The active blueprint index for this blueprint book.
The unique identifier for this item if it has one, nil
otherwise.
If this item is a spidertron remote that has a spidertron bound to it, it returns the connected spider-vehicle entity, nil
otherwise.
If this is a blueprint item.
If this is a blueprint book item.
If this is a mining tool item.
If this is a repair tool item.
If this is an item with label item.
If this is an item with inventory item.
If this is an item with entity data item.
If this is a selection tool item.
If this is an item with tags item.
If this is a deconstruction tool item.
If this is a upgrade item.
The class name of this object.
LuaLampControlBehavior
extends
LuaGenericOnOffControlBehavior
LuaLazyLoadedValue
LuaLogisticCell
Is a given position within the logistic range of this cell?
Is a given position within the construction range of this cell?
Are two cells neighbours?
Logistic radius of this cell.
Logistic connection distance of this cell.
Construction radius of this cell.
Number of stationed logistic robots in this cell.
Number of stationed construction robots in this cell.
true
if this cell is active.
Radius at which the robots hover when waiting to be charged.
Number of robots currently charging.
Number of robots waiting to charge.
The network that owns this cell or nil
.
Neighbouring cells.
Robots currently being charged.
Robots waiting to charge.
The class name of this object.
LuaLogisticContainerControlBehavior
extends
LuaControlBehavior
The circuit mode of operations for the logistic container.
The class name of this object.
LuaLogisticNetwork
Count given or all items in the network or given members.
Get item counts for the entire network, similar to how LuaInventory::get_contents does.
Remove items from the logistic network.
Find logistic cell closest to a given position.
Find the 'best' logistic point with this item ID and from the given position or from given chest type.
Find a logistic point to drop the specific item stack.
Number of logistic robots available for a job.
The total number of logistic robots in the network (idle and active + in roboports).
Number of construction robots available for a job.
The total number of construction robots in the network (idle and active + in roboports).
Maximum number of robots the network can work with.
All cells in this network.
All entities that have empty logistic provider points in this network.
All entities that have logistic requester points in this network.
All other entities that have logistic points in this network (inserters mostly).
All things that have provider points in this network.
All passive provider points in this network.
All active provider points in this network.
All things that have empty provider points in this network.
All things that have requester points in this network.
All things that have storage points in this network.
All construction robots in this logistic network.
All logistic robots in this logistic network.
The class name of this object.
LuaLogisticPoint
The LuaEntity owner of this LuaLogisticPoint.
The Logistic member index of this logistic point.
The logistic filters for this logistic point or nil
if this doesn't use logistic filters.
The logistic mode.
Items targeted to be picked up from this logistic point by robots.
Items targeted to be dropped off into this logistic point by robots.
The class name of this object.
LuaMiningDrillControlBehavior
extends
LuaGenericOnOffControlBehavior
true
if this drill is enabled or disabled using the logistics or circuit condition.
true
if this drill should send the resources in the field to the circuit network.
If the mining drill should send just the resources in its area or the entire field it's on to the circuit network.
The resource entities that the mining drill will send information about to the circuit network or an empty array.
The class name of this object.
LuaModSettingPrototype
The default value of this setting.
The minimum value for this setting or nil
if this setting type doesn't support a minimum.
The maximum value for this setting or nil
if this setting type doesn't support a maximum.
The allowed values for this setting or nil
if this setting doesn't use the a fixed set of values.
If this string setting allows blank values or nil
if not a string setting.
The class name of this object.
The class name of this object.
LuaNamedNoiseExpression
LuaNoiseLayerPrototype
The class name of this object.
LuaParticlePrototype
The class name of this object.
LuaPermissionGroup
Adds the given player to this group.
Removes the given player from this group.
Whether this group allows the given action.
Sets whether this group allows the performance the given action.
The class name of this object.
LuaPermissionGroups
Creates a new permission group.
Gets the permission group with the given name or group ID.
All of the permission groups.
The class name of this object.
LuaPlayer
extends
LuaControl
Setup the screen to be shown when the game is finished.
Print text to the chat console.
Clear the chat console.
Get the current goal description, as a localised string.
Set the text in the goal window (top left).
Set the controller type of the player.
Start/end wire dragging at the specified location, wire type is based on the cursor contents
Disable recipe groups.
Enable recipe groups.
Disable recipe subgroups.
Enable recipe subgroups.
Print entity statistics to the player's console.
Print construction robot job counts to the players console.
Print LuaObject counts per mod.
Logs a dictionary of chunks -> active entities for the surface this player is on.
Logs a dictionary of active entities -> count for the surface this player is on.
Unlock the achievements of the given player.
Invokes the "clear cursor" action on the player as if the user pressed it.
Creates and attaches a character entity to this player.
Adds an alert to this player for the given entity of the given alert type.
Adds a custom alert to this player.
Removes all alerts matching the given filters or if an empty filters table is given all alerts are removed.
Get all alerts matching the given filters, or all alerts if no filters are given.
Mutes alerts for the given alert category.
Unmutes alerts for the given alert category.
If the given alert type is currently muted.
Enables alerts for the given alert category.
Disables alerts for the given alert category.
If the given alert type is currently enabled.
Invokes the "smart pipette" action on the player as if the user pressed it.
Checks if this player can build the give entity at the given location on the surface the player is on.
Checks if this player can build what ever is in the cursor on the surface the player is on.
Builds what ever is in the cursor on the surface the player is on.
Uses the current item in the cursor if it's a capsule or does nothing if not.
Play a sound for this player.
The characters associated with this player.
Associates a character with this player.
Disassociates a character from this player.
Spawn flying text that is only visible to this player.
Gets the quick bar filter for the given slot or nil
.
Sets the quick bar filter for the given slot.
Gets which quick bar page is being used for the given screen page or nil
if not known.
Sets which quick bar page is being used for the given screen page.
Jump to the specified cutscene waypoint.
Exit the current cutscene.
Queues a request to open the map at the specified position.
Queues a request to zoom to world at the specified position.
Queues request to switch to the normal game view from the map or zoom to world view.
Is a custom Lua shortcut currently toggled?
Is a custom Lua shortcut currently available?
Toggle or untoggle a custom Lua shortcut
Make a custom Lua shortcut available or unavailable.
Asks the player if they would like to connect to the given server.
Toggles this player into or out of the map editor.
Requests a translation for the given localised string.
Gets the filter for this map editor infinity filters at the given index or nil
if the filter index doesn't exist or is empty.
Sets the filter for this map editor infinity filters at the given index.
Clears all recipe notifications for this player.
Adds the given recipe to the list of recipe notifications for this player.
Adds the given blueprint to this player's clipboard queue.
Gets a copy of the currently selected blueprint in the clipboard queue into the player's cursor, as if the player activated Paste.
Starts selection with selection tool from the specified position.
Clears the players selection tool selection position.
When in a cutscene; the character this player would be using once the cutscene is over.
This player's index in LuaGameScript::players.
true
if the player opened itself.
The stashed controller type or nil
if no controller is stashed.
The player's game view settings.
true
if the minimap is visible.
The color used when this player talks in game.
The source entity used during entity settings copy-paste if any.
How many ticks did this player spend playing this save (all sessions combined)
At what tick this player was last online.
The permission group this player is part of or nil
if not part of any group.
Gets the current per-player settings for the this player, indexed by prototype name.
The number of ticks until this player will respawn or nil
if not waiting to respawn.
The display resolution for this player.
The display scale for this player.
The item stack containing a blueprint to be setup.
The render mode of the player, like map or zoom to world.
If true
, zoom-to-world noise effect will be disabled and environmental sounds will be based on zoom-to-world view instead of position of player's character.
If true
, circle and name of given player is rendered on the map/chart.
If items not included in this map editor infinity inventory filters should be removed.
The filters for this map editor infinity inventory settings.
If the main inventory will be auto sorted.
The original location of the item in the cursor, marked with a hand.
The player's map view settings.
The class name of this object.
LuaControl
:
surface
, position
, vehicle
, force
, selected
, opened
, crafting_queue_size
, crafting_queue_progress
, walking_state
, riding_state
, mining_state
, shooting_state
, picking_state
, repair_state
, cursor_stack
, cursor_ghost
, driving
, crafting_queue
, following_robots
, cheat_mode
, character_crafting_speed_modifier
, character_mining_speed_modifier
, character_additional_mining_categories
, character_running_speed_modifier
, character_build_distance_bonus
, character_item_drop_distance_bonus
, character_reach_distance_bonus
, character_resource_reach_distance_bonus
, character_item_pickup_distance_bonus
, character_loot_pickup_distance_bonus
, character_inventory_slots_bonus
, character_trash_slot_count_bonus
, character_maximum_following_robot_count_bonus
, character_health_bonus
, character_personal_logistic_requests_enabled
, vehicle_logistic_requests_enabled
, opened_gui_type
, build_distance
, drop_item_distance
, reach_distance
, item_pickup_distance
, loot_pickup_distance
, resource_reach_distance
, in_combat
, character_running_speed
, character_mining_progress
, get_inventory
, get_main_inventory
, can_insert
, insert
, set_gui_arrow
, clear_gui_arrow
, get_item_count
, has_items_inside
, can_reach_entity
, clear_items_inside
, remove_item
, teleport
, update_selected_entity
, clear_selected_entity
, disable_flashlight
, enable_flashlight
, is_flashlight_enabled
, get_craftable_count
, begin_crafting
, cancel_crafting
, mine_entity
, mine_tile
, is_player
, open_technology_gui
, set_personal_logistic_slot
, set_vehicle_logistic_slot
, get_personal_logistic_slot
, get_vehicle_logistic_slot
, clear_personal_logistic_slot
, clear_vehicle_logistic_slot
, is_cursor_blueprint
, get_blueprint_entities
, is_cursor_empty
LuaProfiler
LuaProgrammableSpeakerControlBehavior
extends
LuaControlBehavior
The class name of this object.
LuaRCON
LuaRailChainSignalControlBehavior
extends
LuaControlBehavior
LuaRailPath
LuaRailSignalControlBehavior
extends
LuaControlBehavior
If this will close the rail signal based off the circuit condition.
If this will read the rail signal state.
The circuit condition when controlling the signal through the circuit network.
The class name of this object.
LuaRandomGenerator
LuaRecipe
Reload the recipe from the prototype.
Localised name of the recipe.
The prototype for this recipe.
Ingredients for this recipe.
Is the recipe hidden from flow statistics?
The class name of this object.
The class name of this object.
LuaRecipePrototype
If this recipe prototype is enabled by default (enabled at the beginning of a game).
Localised name of the recipe.
Ingredients for this recipe.
The main product of this recipe, nil
if no main product is defined.
Is the recipe hidden from flow statistics (item/fluid production statistics)?
Is the recipe hidden from player crafting?
Should this recipe always show "Made in" in the tooltip?
The multiplier used when this recipe is copied from an assembling machine to a requester chest.
Used to determine how many extra items are put into an assembling machine before it's considered "full enough".
If the recipe is allowed to have the extra inserter overload bonus applied (4 * stack inserter stack size).
If this recipe is enabled for the purpose of intermediate hand-crafting.
If this recipe is allowed to use intermediate recipes when hand-crafting.
If the amount is shown in the recipe tooltip title when the recipe produces more than 1 product.
If the products are always shown in the recipe tooltip.
The emissions multiplier for this recipe.
Is this recipe allowed to be broken down for the recipe tooltip "Total raw" calculations?
Is this recipe unlocks the result item(s) so they're shown in filter-select GUIs.
The class name of this object.
LuaRemote
Add a remote interface.
Removes an interface with the given name.
This object's name.
List of all registered interfaces.
LuaRendering
Create a line.
Create a text.
Create a circle.
Create a rectangle.
Create an arc.
Create a triangle mesh defined by a triangle strip.
Create a sprite.
Create a light.
Create an animation.
Destroy the object with the given id.
Does a font with this name exist?
Gets an array of all valid object ids.
Destroys all render objects.
Reorder this object so that it is drawn in front of the already existing objects.
The surface the object with this id is rendered on.
Get the time to live of the object with this id.
Set the time to live of the object with this id.
Get the forces that the object with this id is rendered to or nil
if visible to all forces.
Set the forces that the object with this id is rendered to.
Get the players that the object with this id is rendered to or nil
if visible to all players.
Set the players that the object with this id is rendered to.
Get whether this is rendered to anyone at all.
Set whether this is rendered to anyone at all.
Get whether this is being drawn on the ground, under most entities and sprites.
Set whether this is being drawn on the ground, under most entities and sprites.
Get whether this is only rendered in alt-mode.
Set whether this is only rendered in alt-mode.
Set the color or tint of the object with this id.
Set the width of the object with this id.
Get from where the line with this id is drawn.
Set from where the line with this id is drawn.
Get where the line with this id is drawn to.
Set where the line with this id is drawn to.
Get the dash length of the line with this id.
Set the dash length of the line with this id.
Get the length of the gaps in the line with this id.
Set the length of the gaps in the line with this id.
Set the length of the dashes and the length of the gaps in the line with this id.
Get where the object with this id is drawn.
Set where the object with this id is drawn.
Get the orientation of the object with this id.
Set the orientation of the object with this id.
Set the scale of the text or light with this id.
Get the text that is displayed by the text with this id.
Set the text that is displayed by the text with this id.
Set the font of the text with this id.
Get the alignment of the text with this id.
Set the alignment of the text with this id.
Get the vertical alignment of the text with this id.
Set the vertical alignment of the text with this id.
Get if the text with this id scales with player zoom.
Set if the text with this id scales with player zoom, resulting in it always being the same size on screen, and the size compared to the game world changes.
Get if the circle or rectangle with this id is filled.
Set if the circle or rectangle with this id is filled.
Get the radius of the circle with this id.
Set the radius of the circle with this id.
Get where top left corner of the rectangle with this id is drawn.
Set where top left corner of the rectangle with this id is drawn.
Get where bottom right corner of the rectangle with this id is drawn.
Set where top bottom right of the rectangle with this id is drawn.
Set the corners of the rectangle with this id.
Get the radius of the outer edge of the arc with this id.
Set the radius of the outer edge of the arc with this id.
Get the radius of the inner edge of the arc with this id.
Set the radius of the inner edge of the arc with this id.
Get where the arc with this id starts.
Set where the arc with this id starts.
Set the angle of the arc with this id.
Get the vertices of the polygon with this id.
Set the vertices of the polygon with this id.
Get the sprite of the sprite or light with this id.
Set the sprite of the sprite or light with this id.
Get the horizontal scale of the sprite or animation with this id.
Set the horizontal scale of the sprite or animation with this id.
Get the vertical scale of the sprite or animation with this id.
Set the vertical scale of the sprite or animation with this id.
Get the render layer of the sprite or animation with this id.
Set the render layer of the sprite or animation with this id.
The object rotates so that it faces this target.
The object rotates so that it faces this target.
Offsets the center of the sprite or animation if orientation_target
is given.
Offsets the center of the sprite or animation if orientation_target
is given.
Get the intensity of the light with this id.
Set the intensity of the light with this id.
Get the minimum darkness at which the light with this id is rendered.
Set the minimum darkness at which the light with this id is rendered.
Get if the light with this id is rendered has the same orientation as the target entity.
Set if the light with this id is rendered has the same orientation as the target entity.
Get the animation prototype name of the animation with this id.
Set the animation prototype name of the animation with this id.
Get the animation speed of the animation with this id.
Set the animation speed of the animation with this id.
Get the animation offset of the animation with this id.
Set the animation offset of the animation with this id.
This object's name.
The class name of this object.
LuaRoboportControlBehavior
extends
LuaControlBehavior
LuaSettings
Gets the current per-player settings for the given player, indexed by prototype name.
The startup mod settings, indexed by prototype name.
The current global mod settings, indexed by prototype name.
The default player mod settings for this map, indexed by prototype name.
This object's name.
LuaShortcutPrototype
LuaStorageTankControlBehavior
extends
LuaControlBehavior
The class name of this object.
LuaStyle
Gui of the LuaGuiElement of this style.
Minimal width ensures, that the widget will never be smaller than than that size.
Maximal width ensures, that the widget will never be bigger than than that size.
Minimal height ensures, that the widget will never be smaller than than that size.
Maximal height ensures, that the widget will never be bigger than than that size.
Natural width specifies the width of the element tries to have, but it can still be squashed/stretched to have a smaller or bigger size.
Natural height specifies the height of the element tries to have, but it can still be squashed/stretched to have a smaller or bigger size.
Horizontal align of the inner content of the widget, possible values are "left", "center" or "right"
Vertical align of the inner content of the widget, possible values are "top", "center" or "bottom"
Space between the table cell contents top and border.
Space between the table cell contents right and border.
Space between the table cell contents bottom and border.
Space between the table cell contents left and border.
If the GUI element stretches its size horizontally to other elements.
If the GUI element stretches its size vertically to other elements.
If the GUI element can be squashed (by maximal width of some parent element) horizontally.
If the GUI element can be squashed (by maximal height of some parent element) vertically.
How this GUI element handles rich text.
Horizontal space between individual cells.
Vertical space between individual cells.
Array containing the alignment for every column of this table element.
Space between the table cell contents and border.
Sets extra_top/right/bottom/left_padding_when_actived to this value.
Sets extra_top/right/bottom/left_margin_when_activated to this value.
The class name of this object.
LuaSurface
Get the pollution for a given position.
Check for collisions with terrain or other entities.
If there exists an entity at the given location that can be fast-replaced with the given entity parameters.
Find a specific entity at a specific position.
Find entities in a given area.
Find all entities of the given type or name in the given area.
Find all tiles of the given name in the given area.
Count entities of given type or name in a given area.
Count tiles of a given name in a given area.
Find a non-colliding position within a given radius.
Find a non-colliding position within a given rectangle.
Spill items on the ground centered at a given location.
Find enemy units (entities with type "unit") of a given force within an area.
Find units (entities with type "unit") of a given force and force condition within a given area.
Find the enemy military target (military entity) closest to the given position.
Find the enemy entity-with-owner closest to the given position.
Give a command to multiple units.
Create an entity on this surface.
Creates a particle at the given location
Create a new unit group at a given position.
Send a group to build a new base.
Set tiles at specified locations.
Spawn pollution at the given position.
Get an iterator going over every chunk on this surface.
Is a given chunk generated?
Request that the game's map generator generate chunks at the given position for the given radius on this surface.
Blocks and generates all chunks that have been requested using all available threads.
Set generated status of a chunk.
Find the logistic network that covers a given position.
Finds all of the logistics networks whose construction area intersects with the given position.
Place a deconstruction request.
Cancel a deconstruction order.
Place an upgrade request.
Cancel a upgrade order.
The hidden tile name.
Set the hidden tile for the specified position.
Gets all tiles of the given types that are connected horizontally or vertically to the given tile position including the given tile position.
Regenerate autoplacement of some entities on this surface.
Regenerate autoplacement of some decoratives on this surface.
Print text to the chat console of all players on this surface.
Removes all decoratives from the given area.
Adds the given decoratives to the surface.
Find decoratives of a given name in a given area.
Clears all pollution on this surface.
Play a sound for every player on this surface.
Gets the resource amount of all resources on this surface
Gets a random generated chunk position or 0,0 if no chunks have been generated on this surface.
Clones the given area.
Clones the given area.
Clones the given entities.
Clears this surface deleting all entities and chunks on it.
Generates a path with the specified constraints (as an array of PathfinderWaypoints) using the unit pathfinding algorithm.
Gets the script areas that match the given name or if no name is given all areas are returned.
Gets the first script area by name or id.
Sets the given script area to the new values.
Adds the given script area.
Removes the given script area.
Gets the script positions that match the given name or if no name is given all positions are returned.
Gets the first script position by name or id.
Sets the given script position to the new values.
Adds the given script position.
Removes the given script position.
Gets the map exchange string for the current map generation settings of this surface.
Gets the starting area radius of this surface.
Gets the closest entity in the list to this position.
Gets train stops matching the given filters.
Gets the total amount of pollution on the surface by iterating over all of the chunks containing pollution.
Returns all the military targets (entities with force) on this chunk for the given force.
Sets the given area to the checkerboard lab tiles.
The generation settings for this surface.
When set to true, new chunks will be generated with lab tiles, instead of using the surface's map generation settings.
When set to true, the sun will always shine.
Current wind speed.
Current wind direction.
Change in wind orientation per tick.
Is peaceful mode enabled on this surface?
True if daytime is currently frozen.
The number of ticks per day for this surface.
The multiplier of solar power on this surface.
The minimal brightness during the night.
Defines how surface daytime brightness influences each color channel of the current color lookup table (LUT).
If clouds are shown on this surface.
The class name of this object.
LuaTechnology
Reload this technology from its prototype.
Localised name of this technology.
The prototype of this technology.
If this technology will be visible in the research GUI even though it is disabled.
Has this technology been researched?
Prerequisites of this technology.
The types of ingredients that labs will require to research this technology.
Effects applied when this technology is researched.
The number of research units required for this technology.
Amount of energy required to finish a unit of research.
The count formula used for this infinite research or nil if this isn't an infinite research.
The class name of this object.
LuaTechnologyPrototype
Localised name of this technology.
If this technology prototype is enabled by default (enabled at the beginning of a game).
If this technology will be visible in the research GUI even though it is disabled.
If this technology ignores the technology cost multiplier setting.
Prerequisites of this technology.
The types of ingredients that labs will require to research this technology.
Effects applied when this technology is researched.
The number of research units required for this technology.
Amount of energy required to finish a unit of research.
The count formula used for this infinite research or nil if this isn't an infinite research.
The class name of this object.
LuaTile
What type of things can collide with this tile?
Is this tile marked for deconstruction?
Orders deconstruction of this tile by the given force.
Cancels deconstruction if it is scheduled, does nothing otherwise.
The position this tile references.
The name of the LuaTilePrototype hidden under this tile or nil
if there is no hidden tile.
The surface this tile is on.
The class name of this object.
LuaTilePrototype
The collision mask this tile uses
Autoplace specification for this prototype.
The probability that decorative entities will be removed from on top of this tile when this tile is generated.
If this tile needs correction logic applied when it's generated in the world..
The next direction of this tile or nil
- used when a tile has multiple directions (such as hazard concrete)
Items that when placed will produce this tile.
False if this tile is not allowed in blueprints regardless of the ability to build it.
Amount of pollution emissions per second this tile will absorb.
True if building this tile should check for colliding entities above and prevent building if such are found.
The class name of this object.
LuaTrain
Get the amount of a particular item stored in the train.
Get a mapping of the train's inventory.
Remove some items from the train.
Insert a stack into the train.
Clear all items in this train.
Checks if the path is invalid and tries to re-path if it isn't.
Get the amount of a particular fluid stored in the train.
Gets a mapping of the train's fluid inventory.
Remove some fluid from the train.
Inserts the given fluid into the first available location in this train.
Clears all fluids in this train.
Go to the station specified by the index in the train's schedule.
When true
, the train is explicitly controlled by the player or script.
Current max speed when moving forward, depends on locomotive prototype and fuel.
Current max speed when moving backwards, depends on locomotive prototype and fuel.
The rolling stocks this train is composed of, with the numbering starting at the front of the train.
Arrays of locomotives.
The cargo carriages the train contains.
The fluid carriages the train contains.
The trains current schedule or nil
if empty.
This train's current state.
The rail at the front end of the train, possibly nil
.
The front stock of this train, or nil
.
The back stock of this train, or nil
.
The destination rail this train is currently pathing to or nil
.
The destination train stop this train is currently pathing to or nil
.
The player passengers on the train
The riding state of this train.
The players killed by this train.
The total number of kills by this train.
The path this train is using or nil
if none.
The class name of this object.
LuaTrainStopControlBehavior
extends
LuaGenericOnOffControlBehavior
true
if the train stop should send the circuit network contents to the train to use.
true
if the train stop should send the train contents to the circuit network.
true
if the train stop should send the stopped train id to the circuit network.
true
if the trains_limit_signal is used to set a limit of trains incoming for train stop.
true
if the train stop should send amount of incoming trains to the circuit network.
true
if the train stop is enabled/disabled through the circuit network.
The signal that will be sent when using the send-train-id option.
The signal that will be sent when using the read-trains-count option.
The signal to be used by set-trains-limit to limit amount of incoming trains
The class name of this object.
LuaTransportLine
Get the number of items on this transport line.
The indexing operator.
Remove all items from this transport line.
Count some or all items on this line, similar to how LuaInventory::get_item_count does.
Remove some items from this line.
Can an item be inserted at a given position?
Can an item be inserted at the back of this line?
Insert items at the back of this line.
Get counts of all items on this line, similar to how LuaInventory::get_contents does.
Returns whether the associated internal transport line of this line is the same as the others associated internal transport line.
The transport lines that this transport line outputs items to or an empty table if none.
The transport lines that this transport line is fed by or an empty table if none.
The class name of this object.
LuaTrivialSmokePrototype
LuaUnitGroup
Make a unit a member of this group.
Give this group a command.
Give this group a distraction command.
Make this group autonomous.
Make the group start moving even if some of its members haven't yet arrived.
Dissolve this group.
Group position.
Whether this group is gathering, moving or attacking.
The surface of this unit group.
The group number for this unit group.
Whether this unit group is controlled by a script or by the game engine.
The distraction command given to this group or nil
is the group currently isn't distracted.
The class name of this object.
The class name of this object.
LuaWallControlBehavior
extends
LuaControlBehavior