2017-02-19 13:35:16 +01:00
|
|
|
# API documentation for Stairs+
|
2014-03-09 10:38:18 +01:00
|
|
|
|
2022-06-16 01:18:11 +02:00
|
|
|
TODO: write new API docs
|
|
|
|
|
|
|
|
|
2022-06-14 01:11:20 +02:00
|
|
|
# legacy API
|
|
|
|
|
2014-03-09 10:38:18 +01:00
|
|
|
* `stairsplus:register_all(modname, subname, recipeitem, fields)`
|
2022-06-12 03:17:41 +02:00
|
|
|
Registers a stair, slab, panel, microblock, and any other types of
|
|
|
|
nodes to be added in the future.
|
|
|
|
This also registers the node with the circular saw.
|
|
|
|
Example:
|
|
|
|
```lua
|
|
|
|
stairsplus:register_all("moreblocks", "wood", "default:wood", {
|
|
|
|
description = "Wooden",
|
|
|
|
tiles = {"default_wood.png"},
|
|
|
|
groups = {oddly_breakabe_by_hand=1},
|
|
|
|
sounds = moreblocks.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|
2022-06-14 01:11:20 +02:00
|
|
|
need to also support legacy aliasing
|