Prototype/GodController: Difference between revisions
(Added prototype type to page) |
(Updated styling of prototype doc migration note) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= | <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/GodControllerPrototype.html https://lua-api.factorio.com/latest/prototypes/GodControllerPrototype.html] | ||
</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}} | |||
Properties of the god controller. | Properties of the god controller. | ||
{{Prototype TOC|god-controller}} | |||
== Mandatory properties == | == Mandatory properties == | ||
{{Prototype property|type|[[Types/string|string]]}} | |||
Must be "god-controller". | Must be "god-controller". | ||
{{Prototype property|name|[[Types/string|string]]}} | |||
Name of the god-controller. Must be "default" since only one instances of this prototype can be defined. | Name of the god-controller. Must be "default" since only one instances of this prototype can be defined. | ||
{{Prototype property|inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]}} | |||
{{Prototype property|movement_speed|[[Types/double|double]]}} | |||
Must be >= 0.34375. | Must be >= 0.34375. | ||
{{Prototype property|item_pickup_distance|[[Types/double|double]]}} | |||
{{Prototype property|loot_pickup_distance|[[Types/double|double]]}} | |||
{{Prototype property|mining_speed|[[Types/double|double]]}} | |||
== Optional properties == | == Optional properties == | ||
{{Prototype property|crafting_categories|[[Types/table|table]] of [[Types/string|string]]|optional=true}} | |||
Names of the crafting categories the player can craft recipes from. | Names of the crafting categories the player can craft recipes from. | ||
{{Prototype property|mining_categories |[[Types/table|table]] of [[Types/string|string]]|optional=true}} | |||
Names of the resource categories the player can mine resources from. | Names of the resource categories the player can mine resources from. |
Latest revision as of 10:43, 21 September 2023
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/GodControllerPrototype.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.
Prototype definitions » Prototype/GodController
Properties of the god controller.
Prototype/GodController — god-controller | ||
inventory_size | :: | ItemStackIndex |
item_pickup_distance | :: | double |
loot_pickup_distance | :: | double |
mining_speed | :: | double |
movement_speed | :: | double |
name | :: | string |
type | :: | string |
crafting_categories | :: | table of string (optional) |
mining_categories | :: | table of string (optional) |
Mandatory properties
type
Type: string
Must be "god-controller".
name
Type: string
Name of the god-controller. Must be "default" since only one instances of this prototype can be defined.
inventory_size
Type: ItemStackIndex
movement_speed
Type: double
Must be >= 0.34375.
item_pickup_distance
Type: double
loot_pickup_distance
Type: double
mining_speed
Type: double
Optional properties
crafting_categories
Type: table of string
Names of the crafting categories the player can craft recipes from.
mining_categories
Type: table of string
Names of the resource categories the player can mine resources from.