Prototype/Loader1x1: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Updated styling of prototype doc migration note)
(Removed old prototype docs)
 
Line 2: Line 2:


</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>
</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 parent|Prototype/TransportBeltConnectable}}
Continuously loads and unloads machines, as an alternative to inserters.<br>
This loader type is identical to [[Prototype/Loader1x2]] with the exception of its hardcoded belt_distance:
* The belt_distance of the loader determines the distance between the position of this loader and the tile of the loader's belt target.
* This loader type always has a belt_distance of 0, meaning by default it is 1 tile long in total.
* For a loader type with a belt_distance of 0.5, see [[Prototype/Loader1x2]].
{{Prototype TOC|loader-1x1}}
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/TransportBeltConnectable]].
{{Prototype property|structure|[[Types/table|table]]}}
Table with the following members:
* direction_in - [[Types/Sprite4Way|Sprite4Way]] - Mandatory.
* direction_out - [[Types/Sprite4Way|Sprite4Way]] - Mandatory.
* back_patch - [[Types/Sprite4Way|Sprite4Way]] - Optional.
* front_patch - [[Types/Sprite4Way|Sprite4Way]] - Optional.
{{Prototype property|filter_count|[[Types/uint8|uint8]]}}
How many item filters this loader has. Maximum count of filtered items in loader is 5.
== Optional properties ==
{{Prototype property|structure_render_layer|[[Types/RenderLayer|RenderLayer]]|"object"|optional=true}}
{{Prototype property|container_distance|[[Types/double|double]]|1.5|optional=true}}
The distance between the position of this loader and the tile of the loader's container target.
{{Prototype property|allow_rail_interaction|[[Types/bool|bool]]|true|optional=true}}
Whether the loader can load and unload [[Prototype/RollingStock|rolling stock]].
{{Prototype property|allow_container_interaction|[[Types/bool|bool]]|true|optional=true}}
Whether the loader can load and unload stationary inventories such as containers and crafting machines.
{{Prototype property|belt_length|[[Types/double|double]]|0.5|optional=true}}
How long this loader's belt is. Should be the same as belt_distance, which is hardcoded to 0 for this loader type. [[Prototype/Loader1x2]] can be used if a belt_distance of 0.5 is desired.
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]|optional=true}}
Cannot be a burner energy source.
{{Prototype property|energy_per_item|[[Types/Energy|Energy]]|0J|optional=true}}
Cannot be negative.

Latest revision as of 14:32, 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/Loader1x1Prototype.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.