mirror of
https://github.com/minetest-mods/technic.git
synced 2025-03-13 16:10:42 +01:00
Update api.md
Radiation functions moved to Radiation section.
This commit is contained in:
parent
cf01860727
commit
feb853c715
@ -145,14 +145,6 @@ Unsorted functions:
|
||||
* Some configuration function
|
||||
* `technic.tube_inject_item(pos, start_pos, velocity, item)`
|
||||
* Same as `pipeworks.tube_inject_item`
|
||||
* `technic.register_rad_resistance(node_name, resistance)`
|
||||
* Sets the radiation resistance of the given node.
|
||||
* `node_name`: name of the node
|
||||
* `resistance`: number, radiation resistance of the node
|
||||
* `technic.register_group_resistance(group_name, resistance)`
|
||||
* Sets the radiation resistance of the given group of nodes.
|
||||
* `group_name`: name of the group
|
||||
* `resistance`: number, radiation resistance of the group
|
||||
|
||||
### Energy modifiers
|
||||
* `technic.set_RE_wear(itemstack, item_load, max_charge)`
|
||||
@ -280,6 +272,20 @@ Network functionality:
|
||||
5. If the total demand is more than the available power all RE nodes will be shut
|
||||
down. We have a brown-out situation.
|
||||
|
||||
|
||||
## Radiation
|
||||
* `technic.register_rad_resistance(node_name, resistance)`
|
||||
* Sets the radiation resistance of the given node.
|
||||
* `node_name`: name of the node
|
||||
* `resistance`: number, radiation resistance of the node
|
||||
* `technic.register_group_resistance(group_name, resistance)`
|
||||
* Sets the radiation resistance of the given group of nodes.
|
||||
* `group_name`: name of the group
|
||||
* `resistance`: number, radiation resistance of the group
|
||||
* `technic.cache_resistances()`
|
||||
* Cache radiation resistances after Technic loads.
|
||||
|
||||
|
||||
## Deprecated functions
|
||||
|
||||
Following functions are either no longer used by technic, or are planned to
|
||||
|
Loading…
x
Reference in New Issue
Block a user