Prototype/TransportBelt: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
(Removed old prototype docs)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Prototype parent|Prototype/TransportBeltConnectable}}
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/TransportBeltPrototype.html https://lua-api.factorio.com/latest/prototypes/TransportBeltPrototype.html]


== Basics ==
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
Prototype type: '''transport-belt'''
 
A [[transport belt]]. Extends [[Prototype/TransportBeltConnectable]].
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/TransportBeltConnectable]].
 
=== connector_frame_sprites ===
'''Type''': [[Types/TransportBeltConnectorFrame]]
 
== Optional properties ==
 
=== circuit_wire_max_distance ===
'''Type''': [[Types/double]]
 
'''Default''': 0
 
The maximum circuit wire distance for this entity.
 
=== draw_copper_wires ===
'''Type''': [[Types/bool]]
 
'''Default''': true
 
=== draw_circuit_wires ===
'''Type''': [[Types/bool]]
 
'''Default''': true
 
=== circuit_wire_connection_point ===
'''Type''': Array of [[Types/WireConnectionPoint]]
 
Defines how wires visually connect to this transport belt.
 
=== circuit_connector_sprites ===
'''Type''': Array of [[Types/CircuitConnectorSprites]]
 
The pictures displayed for circuit connections to this transport belt.
 
=== belt_animation_set ===
'''Type''': [[Types/table]]
 
Either this, or <code>animations</code> has to present.
 
This is the same table as the one used by [[Prototype/TransportBeltConnectable]], with additional properties. If this is present, the belt_animation_set will used for all graphics.
 
Table with the following additional optional properties:
* east_to_north_index - [[Types/uint8]] - Default: 5
* north_to_east_index - [[Types/uint8]] - Default: 6
* west_to_north_index - [[Types/uint8]] - Default: 7
* north_to_west_index - [[Types/uint8]] - Default: 8
* south_to_east_index - [[Types/uint8]] - Default: 9
* east_to_south_index - [[Types/uint8]] - Default: 10
* south_to_west_index - [[Types/uint8]] - Default: 11
* west_to_south_index - [[Types/uint8]] - Default: 12
 
=== animations ===
'''Type''': [[Types/RotatedAnimation]]
 
Transport belts must have 12 animations. Mandatory if <code>belt_animation_set</code> is not present.

Latest revision as of 14:33, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/TransportBeltPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.