forked from minetest-mods/technic
Denser documentation. 'Slay The Dragon' Part 2
This commit is contained in:
18
mod_api.md
Normal file
18
mod_api.md
Normal file
@ -0,0 +1,18 @@
|
||||
# technic API
|
||||
|
||||
This is an initial version of the API that can be used by mods.
|
||||
|
||||
|
||||
* `technic.register_tier(tier, description)`
|
||||
* Registers a network type (tier)
|
||||
* `tier`: string, short name (ex. `LV`)
|
||||
* `description`: string, long name (ex. `Low Voltage`)
|
||||
* `technic.register_machine(tier, nodename, machine_type)`
|
||||
* Registers a machine bound to the network tier
|
||||
* `tier`: see `register_tier`
|
||||
* `nodename`: string, node name
|
||||
* `machine_type`: string, following options are possible:
|
||||
* `"RE"`: Receiver
|
||||
* `"PR"`: Producer
|
||||
* `"BA"`: Battery, energy storage
|
||||
|
Reference in New Issue
Block a user