Home

LuaEntityPrototype

Prototype of an entity.

Parent

Attributes

infinite_resource

Whether this resource is infinite.

minimum_resource_amount

Minimum amount of this resource.

normal_resource_amount

The normal amount for this resource.

infinite_depletion_resource_amount

Every time this infinite resource 'ticks' down, it is reduced by this amount. Meaningless if this isn't an infinite resource.

resource_category

Name of the category of this resource.

During data stage, this property is named "category".

mineable_properties

Whether this entity is minable and what can be obtained by mining it.

items_to_place_this

Items that when placed will produce this entity, if any. Construction bots will choose the first item in the list to build this entity.

collision_box

The bounding box used for collision checking.

secondary_collision_box

The secondary bounding box used for collision checking, if any. This is only used in rails and rail remnants.

map_generator_bounding_box

The bounding box used for map generator collision checking.

selection_box

The bounding box used for drawing selection.

drawing_box_vertical_extension

Extra vertical space needed to see the whole entity in GUIs. This is used to calculate the correct zoom and positioning in the entity info gui, for example in the entity tooltip.

sticker_box

The bounding box used to attach sticker type entities.

collision_mask

The collision masks this entity uses

trigger_target_mask

The trigger target mask for this entity prototype type.

The values in the dictionary are meaningless and exists just to allow the dictionary type for easy lookup.

healing_per_tick

Amount this entity can heal per tick, if any.

emissions_per_second

A table of pollution emissions per second the entity will create, grouped by the name of the pollution type.

corpses

Corpses used when this entity is destroyed. It is a dictionary indexed by the corpse's prototype name.

selectable_in_game

Is this entity selectable?

selection_priority

The selection priority of this entity - a value between 0 and 255.

weight

The weight of this vehicle prototype.

resistances

List of resistances towards each damage type. It is a dictionary indexed by damage type names (see data/base/prototypes/damage-type.lua).

fast_replaceable_group

The group of mutually fast-replaceable entities, if any.

next_upgrade

The next upgrade for this entity, if any.

icons_positioning

The icon positioning for inventories of this entity, if defined.

icon_draw_specification

The definition of where and how the alt-mode icons of this entity should be drawn.

loot

Loot that will be dropped when this entity is killed, if any.

repair_speed_modifier

Repair-speed modifier for this entity, if any. Actual repair speed will be tool_repair_speed * entity_repair_speed_modifier.

turret_range

The range of this turret.

autoplace_specification

Autoplace specification for this entity prototype, if any.

belt_speed

The speed of this transport belt.

result_units

The result units and spawn points with weight and evolution factor for a biter spawner entity.

attack_result

The attack result of this entity, if any.

final_attack_result

The final attack result for this projectile.

attack_parameters

The attack parameters for this entity, if any.

revenge_attack_parameters

The revenge attack parameters for this entity, if any. These attack parameters are used in addition to LuaEntityPrototype::attack_parameters if the entity is attacking a target that has previously dealt damage to the entity.

spawn_cooldown

The spawning cooldown for this enemy spawner prototype.

mining_drill_radius

The mining radius of this mining drill prototype.

quality_affects_mining_radius

mining_speed

The mining speed of this mining drill/character prototype.

resource_drain_rate_percent

The resource drain rate percent of this mining drill prototype.

uses_force_mining_productivity_bonus

If this drill uses force productivity bonus

logistic_mode

The logistic mode of this logistic container.

max_underground_distance

The max underground distance for underground belts and underground pipes.

flags

The flags for this entity prototype.

remains_when_mined

The remains left behind when this entity is mined.

additional_pastable_entities

Entities this entity can be pasted onto in addition to the normal allowed ones.

allow_copy_paste

When false copy-paste is not allowed for this entity.

shooting_cursor_size

The cursor size used when shooting at this entity.

created_smoke

The smoke trigger run when this entity is built, if any.

created_effect

The trigger to run when this entity is created, if any.

update_effects

The trigger effects to run every tick when on cooldown.

update_effects_while_enraged

The trigger effects to run every tick when on cooldown while the owning LuaSegmentedUnit is enraged.

map_color

The map color used when charting this entity if a friendly or enemy color isn't defined, if any.

friendly_map_color

The friendly map color used when charting this entity.

enemy_map_color

The enemy map color used when charting this entity.

build_base_evolution_requirement

The evolution requirement to build this entity as a base when expanding enemy bases.

instruments

The instruments for this programmable speaker.

max_polyphony

The maximum polyphony for this programmable speaker.

module_inventory_size

The module inventory size. nil if this entity doesn't support modules.

quality_affects_module_slots

inventory_type

The inventory type this container or linked container uses.

inventory_weight_limit

Weight limit of the inventory if inventory_type is "with_weight_limit".

inventory_properties

Properties of custom inventory. Only provided if inventory_type is "with_custom_stack_size".

ingredient_count

The max number of ingredients this crafting machine prototype supports.

max_item_product_count

The max number of item products this crafting machine prototype supports.

crafting_categories

The crafting categories this entity prototype supports.

The value in the dictionary is meaningless and exists just to allow for easy lookup.

resource_categories

The resource categories this character or mining drill supports.

The value in the dictionary is meaningless and exists just to allow for easy lookup.

energy_usage

The direct energy usage of this entity, if any.

effectivity

The effectivity of this car prototype, generator prototype.

consumption

The energy consumption of this car prototype.

friction_force

The friction of this vehicle prototype.

braking_force

The braking force of this vehicle prototype.

air_resistance

The air resistance of this rolling stock prototype.

tank_driving

If this car prototype uses tank controls to drive.

rotation_speed

The rotation speed of this car prototype.

rotation_snap_angle

The rotation snap angle of this car prototype.

turret_rotation_speed

The turret rotation speed of this car prototype.

guns

A mapping of the gun name to the gun prototype this prototype uses. nil if this entity prototype doesn't use guns.

indexed_guns

A vector of the gun prototypes of this car, spider vehicle, artillery wagon, or turret.

speed

The default speed of this flying robot, rolling stock or unit. For rolling stocks, this is their max_speed.

speed_multiplier_when_out_of_energy

The speed multiplier when this flying robot is out of energy.

max_payload_size

The cargo carrying capacity of this logistics or construction robot.

max_payload_size_after_bonus

The maximum possible cargo carrying capacity of this logistics or construction robot. Bonuses from technologies/forces can't increase the carrying capacity beyond this number.

draw_cargo

Whether this logistics or construction robot renders its cargo when flying.

energy_per_move

The energy consumed per tile moved for this flying robot.

energy_per_tick

The energy consumed per tick for this flying robot.

min_to_charge

The minimum energy for this flying robot before it tries to recharge.

max_to_charge

The maximum energy for this flying robot above which it won't try to recharge when stationing.

burner_prototype

The burner energy source prototype this entity uses, if any.

electric_energy_source_prototype

The electric energy source prototype this entity uses, if any.

heat_energy_source_prototype

The heat energy source prototype this entity uses, if any.

fluid_energy_source_prototype

The fluid energy source prototype this entity uses, if any.

void_energy_source_prototype

The void energy source prototype this entity uses, if any.

heat_buffer_prototype

The heat buffer prototype this entity uses, if any.

building_grid_bit_shift

The log2 of grid size of the building.

fluid_usage_per_tick

The fluid usage of this generator prototype. This property is deprecated in favor of LuaEntityPrototype::get_fluid_usage_per_tick and should not be used.

maximum_temperature

The maximum fluid temperature of this generator prototype.

burns_fluid

Whether this generator prototype burns fluid.

scale_fluid_usage

Whether this generator prototype scales fluid usage.

destroy_non_fuel_fluid

Whether this generator prototype destroys non-fuel fluids.

max_power_output

The default maximum power output of this generator prototype. This property is deprecated in favor of LuaEntityPrototype::get_max_power_output and should not be used.

target_temperature

The target temperature of this boiler or fusion reactor prototype. If nil on a fusion reactor, the target temperature is the default temperature of the output fluid.

boiler_mode

The boiler operation mode of this boiler prototype.

fluid_capacity

The fluid capacity of this entity or 0 if this entity doesn't support fluids.

Crafting machines will report 0 due to their fluid capacity being whatever a given recipe needs.

pumping_speed

The pumping speed of this offshore pump or normal pump. This property is deprecated in favor of LuaEntityPrototype::get_pumping_speed and should not be used.

valve_mode

The mode of operation of this valve.

valve_threshold

The default threshold of this valve.

bulk

Whether this inserter is a bulk-type.

uses_inserter_stack_size_bonus

fluid_source_offset

flow_scaling

allow_custom_vectors

Whether this inserter allows custom pickup and drop vectors.

allow_burner_leech

Whether this inserter allows burner leeching.

inserter_pickup_position

The pickup position for this inserter.

inserter_drop_position

The drop position for this inserter.

inserter_chases_belt_items

True if this inserter chases items on belts for pickup.

inserter_max_belt_stack_size

The max belt stack size for this inserter.

loader_max_belt_stack_size

The max belt stack size for this loader.

loader_adjustable_belt_stack_size

True if this loader supports a runtime-adjustable belt stack size.

loader_wait_for_full_stack

True if this loader will not drop items for which total amount is less than a full belt stack.

loader_respect_insert_limits

count_as_rock_for_filtered_deconstruction

If this simple-entity is counted as a rock for the deconstruction planner "trees and rocks only" filter.

filter_count

The filter count of this inserter, loader, mining drill or logistic chest. For logistic containers, nil means no limit.

time_to_live

The time to live for this prototype or 0 if prototype doesn't have time_to_live or time_before_removed.

distribution_effectivity

The distribution effectivity for this beacon prototype.

distribution_effectivity_bonus_per_quality_level

The distribution effectivity bonus per quality level for this beacon prototype.

profile

The beacon profile: extra multiplier applied to the effects received from beacon by the effect receiver based on amount of beacons that reach that effect receiver

beacon_counter

The beacon counter used by effect receiver when deciding which sample to take from beacon profile.

explosion_beam

Whether this explosion has a beam.

explosion_rotate

Whether this explosion rotates.

tree_color_count

If it is a tree, return the number of colors it supports.

alert_when_damaged

Whether this entity raises an alert when damaged.

alert_when_attacking

Whether this turret raises an alert when attacking

color

The color of the prototype, if any.

collision_mask_collides_with_self

Does this prototype collision mask collide with itself?

collision_mask_collides_with_tiles_only

Does this prototype collision mask collide with tiles only?

collision_mask_considers_tile_transitions

Does this prototype collision mask consider tile transitions?

allowed_effects

The allowed module effects for this entity, if any.

allowed_module_categories

The allowed module categories for this entity, if any.

rocket_parts_required

The rocket parts required for this rocket silo prototype.

rocket_rising_delay

The rocket rising delay for this rocket silo prototype.

launch_wait_time

The rocket launch delay for this rocket silo prototype.

light_blinking_speed

The light blinking speed for this rocket silo prototype.

door_opening_speed

The door opening speed for this rocket silo prototype.

launch_to_space_platforms

rising_speed

The rising speed for this rocket silo rocket prototype.

engine_starting_speed

The engine starting speed for this rocket silo rocket prototype.

flying_speed

The flying speed for this rocket silo rocket prototype.

flying_acceleration

The flying acceleration for this rocket silo rocket prototype.

fixed_recipe

The fixed recipe name for this assembling machine prototype, if any.

construction_radius

The construction radius for this roboport prototype.

logistic_radius

The logistic radius for this roboport prototype.

energy_per_hit_point

The energy used per hit point taken for this vehicle during collisions.

create_ghost_on_death

If this prototype will attempt to create a ghost of itself on death.

If this is false then a ghost will never be made, if it's true a ghost may be made.

ammo_category

Name of the ammo category of this land mine.

timeout

The time it takes this land mine to arm.

trigger_collision_mask

The collision mask entities must collide with to make this landmine blow up.

fluidbox_prototypes

The fluidbox prototypes for this entity.

neighbour_bonus

container_distance

belt_distance

belt_length

per_lane_filters

is_building

automated_ammo_count

The amount of ammo that inserters automatically insert into this ammo turret, artillery turret or artillery wagon.

max_speed

The max speed of this projectile or flying robot prototype.

darkness_for_all_lamps_on

Value between 0 and 1 darkness where all lamps of this lamp prototype are on.

darkness_for_all_lamps_off

Value between 0 and 1 darkness where all lamps of this lamp prototype are off.

always_on

Whether the lamp is always on (except when out of power or turned off by the circuit network).

min_darkness_to_spawn

The minimum darkness at which this unit spawner can spawn entities.

max_darkness_to_spawn

The maximum darkness at which this unit spawner can spawn entities.

call_for_help_radius

max_count_of_owned_units

Count of enemies this spawner can sustain.

max_count_of_owned_defensive_units

Count of defensive enemies this spawner can sustain.

max_friends_around_to_spawn

How many friendly units are required within the spawning_radius of this spawner for it to stop producing more units.

max_defensive_friends_around_to_spawn

How many defensive friendly units are required within the spawning_radius of this spawner for it to stop producing more units.

spawning_radius

How far from the spawner can the units be spawned.

spawning_spacing

What spaces should be between the spawned units.

radius

The radius of this entity prototype. The radius is defined as half the distance between the top left corner and bottom right corner of the collision box.

cliff_explosive_prototype

The item prototype name used to destroy this cliff.

rocket_entity_prototype

The rocket entity prototype associated with this rocket silo prototype.

has_belt_immunity

Whether this unit, car, or character prototype has belt immunity.

vision_distance

The vision distance of this unit prototype.

absorptions_to_join_attack

A table of pollutions amounts that has to be absorbed by the unit's spawner before the unit will leave the spawner and attack the source of the pollution, indexed by the name of each absorbed pollution type.

min_pursue_time

The minimum pursue time of this unit prototype.

max_pursue_distance

The maximum pursue distance of this unit prototype.

radar_range

The radar range of this unit prototype.

move_while_shooting

Whether this unit prototype can move while shooting.

can_open_gates

Whether this unit prototype can open gates.

affected_by_tiles

Whether this unit prototype is affected by tile walking speed modifiers.

distraction_cooldown

The distraction cooldown of this unit prototype.

spawning_time_modifier

The spawning time modifier of this unit prototype.

alert_icon_shift

The alert icon shift of this entity prototype.

alert_icon_scale

The alert icon scale of this entity prototype.

lab_inputs

The item prototype names that are the inputs of this lab prototype.

science_pack_drain_rate_percent

How much science pack durability is required to research one science point.

effect_receiver

Effect receiver prototype of this crafting machine, lab, or mining drill.

allow_access_to_all_forces

Whether this market allows access to all forces or just friendly ones.

supports_direction

Whether this entity prototype could possibly ever be rotated.

terrain_friction_modifier

The terrain friction modifier for this vehicle.

allow_passengers

Whether this vehicle allows passengers.

grid_prototype

The equipment grid prototype for this entity, if any.

remove_decoratives

Whether this entity should remove decoratives that collide with it when this entity is built.

related_underground_belt

inserter_stack_size_bonus

The built-in stack size bonus of this inserter prototype.

protected_from_tile_building

True if this entity prototype should be included during tile collision checks with LuaTilePrototype::check_collision_with_entities enabled.

is_entity_with_owner

True if this is entity-with-owner

is_military_target

True if this entity-with-owner is military target

allow_run_time_change_of_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)

logistic_parameters

The logistic parameters for this roboport.

height

The height of this spider vehicle prototype.

torso_rotation_speed

The torso rotation speed of this spider vehicle prototype.

torso_bob_speed

The torso bob speed of this spider vehicle prototype.

automatic_weapon_cycling

Whether this spider vehicle prototype automatically cycles weapons.

chain_shooting_cooldown_modifier

The chain shooting cooldown modifier of this spider vehicle prototype.

spider_engine

chunk_exploration_radius

The chunk exploration radius of this vehicle prototype.

animation_speed_coefficient

The animation speed coefficient of this belt connectable prototype.

manual_range_modifier

The manual range modifier for this artillery turret or wagon prototype.

dying_speed

The dying time of this corpse prototype.

active_energy_usage

The active energy usage of this rocket silo or combinator prototype.

lamp_energy_usage

The lamp energy usage of this rocket silo prototype.

crane_energy_usage

The crane energy usage of this agricultural tower prototype.

use_exact_mode

Whether this logistic container prototype uses exact mode

tile_width

Specifies the tiling size of the entity, is used to decide, if the center should be in the center of the tile (odd tile size dimension) or on the tile border (even tile size dimension)

tile_height

Specifies the tiling size of the entity, is used to decide, if the center should be in the center of the tile (odd tile size dimension) or on the tile border (even tile size dimension)

vertical_selection_shift

Vertical selection shift used by rolling stocks. It affects selection box vertical position but is also used to shift rolling stock graphics along the rails to fine tune train's look.

spawn_decoration

spawn_decorations_on_expansion

connection_distance

joint_distance

radius_visualisation_specification

growth_ticks

harvest_emissions

A table of pollutants that this plant will release when it is harvested.

agricultural_tower_radius

growth_area_radius

growth_grid_tile_size

vector_to_place_result

surface_conditions

The surface conditions required to build this entity.

heating_energy

The energy required to keep this entity from freezing. Zero energy means it doesn't freeze.

auto_setup_collision_box

factoriopedia_alternative

An alternative prototype that will be used to display info about this prototype in Factoriopedia.

rewire_neighbours_when_destroying

solar_panel_performance_at_day

solar_panel_performance_at_night

solar_panel_solar_coefficient_property

accepted_seeds

captured_spawner_entity

min_performance

max_performance

two_direction_only

perceived_performance

overkill_fraction

dying_explosion

dying_trigger_effect

damaged_trigger_effect

attack_reaction

hide_resistances

random_corpse_variation

neighbour_connectable

tile_buildability_rules

support_range

territory_radius

enraged_duration

patrolling_speed

investigating_speed

attacking_speed

enraged_speed

acceleration_rate

turn_radius

patrolling_turn_radius

turn_smoothing

ticks_per_scan

segment_engine

running_speed

The movement speed of this character prototype.

maximum_corner_sliding_distance

build_distance

drop_item_distance

reach_distance

reach_resource_distance

item_pickup_distance

loot_pickup_distance

enter_vehicle_distance

ticks_to_keep_gun

ticks_to_keep_aiming_direction

ticks_to_stay_in_combat

respawn_time

damage_hit_tint

character_corpse

arm_inventory_size_quality_increase

inventory_size_quality_increase

passive_energy_usage

arm_energy_usage

arm_slow_energy_usage

energy_usage_quality_scaling

arm_count_base

arm_count_quality_scaling

head_collection_radius

collection_box_offset

deposit_radius

arm_speed_base

arm_speed_quality_scaling

arm_angular_speed_cap_base

arm_angular_speed_cap_quality_scaling

tether_size

unpowered_arm_speed_scale

minimal_arm_swing_segment_retraction

held_items_offset

held_items_spread

held_items_display_count

arm_color_gradient

fluid_buffer_size

activation_buffer_ratio

fluid_buffer_input_flow

range_from_player

combat_robot_friction

destroy_action

follows_player

strike_effect

attractor_hit_effect

damage

When lightning strikes something that is not a lightning attractor, this damage is applied to the target.

energy

When lightning hits a lightning attractor this amount of energy is transferred to the lightning attractor.

connection_category

valid

Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.

object_name

The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.

Methods

has_flag

LuaEntityPrototype.has_flag(flag: EntityPrototypeFlag) -> boolean

Call As

entityPrototype.has_flag(flag)

Call Convention

Test whether this entity prototype has a certain flag set.

Parameters

Returns

get_inventory_size

LuaEntityPrototype.get_inventory_size(index: defines.inventory, quality?: QualityID) -> uint32?

Call As

entityPrototype.get_inventory_size(index, quality)

Call Convention

Gets the base size of the given inventory on this entity or nil if the given inventory doesn't exist.

Parameters

Returns

get_crafting_speed

LuaEntityPrototype.get_crafting_speed(quality?: QualityID) -> double

Call As

entityPrototype.get_crafting_speed()

Call Convention

The crafting speed of this crafting-machine or character.

Parameters

Returns

get_supply_area_distance

LuaEntityPrototype.get_supply_area_distance(quality?: QualityID) -> double

Call As

entityPrototype.get_supply_area_distance()

Call Convention

The supply area of this electric pole or beacon prototype.

Parameters

Returns

get_max_wire_distance

LuaEntityPrototype.get_max_wire_distance(quality?: QualityID) -> double

Call As

entityPrototype.get_max_wire_distance()

Call Convention

The maximum wire distance for this entity. 0 if the entity doesn't support wires.

Parameters

Returns

get_max_circuit_wire_distance

LuaEntityPrototype.get_max_circuit_wire_distance(quality?: QualityID) -> double

Call As

entityPrototype.get_max_circuit_wire_distance()

Call Convention

The maximum circuit wire distance for this entity. 0 if the entity doesn't support circuit wires.

Parameters

Returns

get_max_energy_usage

LuaEntityPrototype.get_max_energy_usage(quality?: QualityID) -> double

Call As

entityPrototype.get_max_energy_usage()

Call Convention

The theoretical maximum energy usage for this entity.

Parameters

Returns

get_max_energy_production

LuaEntityPrototype.get_max_energy_production(quality?: QualityID) -> double

Call As

entityPrototype.get_max_energy_production()

Call Convention

The theoretical maximum energy production for this entity.

Parameters

Returns

get_max_energy

LuaEntityPrototype.get_max_energy(quality?: QualityID) -> double?

Call As

entityPrototype.get_max_energy()

Call Convention

The max energy for this flying robot prototype.

Parameters

Returns

get_inserter_extension_speed

LuaEntityPrototype.get_inserter_extension_speed(quality?: QualityID) -> double?

Call As

entityPrototype.get_inserter_extension_speed()

Call Convention

The extension speed of this inserter.

Parameters

Returns

get_inserter_rotation_speed

LuaEntityPrototype.get_inserter_rotation_speed(quality?: QualityID) -> double?

Call As

entityPrototype.get_inserter_rotation_speed()

Call Convention

The rotation speed of this inserter.

Parameters

Returns

get_researching_speed

LuaEntityPrototype.get_researching_speed(quality?: QualityID) -> double?

Call As

entityPrototype.get_researching_speed()

Call Convention

The base researching speed of this lab prototype.

Parameters

Returns

get_max_distance_of_sector_revealed

LuaEntityPrototype.get_max_distance_of_sector_revealed(quality?: QualityID) -> uint32?

Call As

entityPrototype.get_max_distance_of_sector_revealed()

Call Convention

The radius of the area this radar can chart, in chunks.

Parameters

Returns

get_max_distance_of_nearby_sector_revealed

LuaEntityPrototype.get_max_distance_of_nearby_sector_revealed(quality?: QualityID) -> uint32?

Call As

entityPrototype.get_max_distance_of_nearby_sector_revealed()

Call Convention

The radius of the area constantly revealed by this radar, or cargo landing pad, in chunks.

Parameters

Returns

get_max_health

LuaEntityPrototype.get_max_health(quality?: QualityID) -> float

Call As

entityPrototype.get_max_health()

Call Convention

Max health of this entity. Will be 0 if this is not an entity with health.

Parameters

Returns

get_fluid_usage_per_tick

LuaEntityPrototype.get_fluid_usage_per_tick(quality?: QualityID) -> double?

Call As

entityPrototype.get_fluid_usage_per_tick()

Call Convention

The fluid usage of this generator, fusion generator or fusion reactor prototype.

Parameters

Returns

get_max_power_output

LuaEntityPrototype.get_max_power_output(quality?: QualityID) -> double?

Call As

entityPrototype.get_max_power_output()

Call Convention

The maximum power output of this burner generator or generator prototype.

Parameters

Returns

get_pumping_speed

LuaEntityPrototype.get_pumping_speed(quality?: QualityID) -> double

Call As

entityPrototype.get_pumping_speed()

Call Convention

The pumping speed of this offshore pump or normal pump.

Parameters

Returns

get_valve_flow_rate

LuaEntityPrototype.get_valve_flow_rate(quality?: QualityID) -> double

Call As

entityPrototype.get_valve_flow_rate()

Call Convention

The maximum flow rate through this valve.

Parameters

Returns

get_mining_drill_radius

LuaEntityPrototype.get_mining_drill_radius(quality?: QualityID) -> double?

Call As

entityPrototype.get_mining_drill_radius()

Call Convention

The mining radius of this mining drill prototype.

Parameters

Returns

get_fluid_capacity

LuaEntityPrototype.get_fluid_capacity(quality?: QualityID) -> double

Call As

entityPrototype.get_fluid_capacity()

Call Convention

Gets the fluid capacity of this entity or 0 if this entity doesn't support fluids.

Crafting machines will report 0 due to their fluid capacity being whatever a given recipe needs.

Parameters

Returns

get_attraction_range_elongation

LuaEntityPrototype.get_attraction_range_elongation(quality?: QualityID) -> double?

Call As

entityPrototype.get_attraction_range_elongation()

Call Convention

Parameters

Returns

get_energy_distribution_efficiency

LuaEntityPrototype.get_energy_distribution_efficiency(quality?: QualityID) -> double?

Call As

entityPrototype.get_energy_distribution_efficiency()

Call Convention

Parameters

Returns