2014-06-27 20:14:08 +02:00
|
|
|
API documentation for Stairs+
|
2014-03-09 10:38:18 +01:00
|
|
|
================================
|
|
|
|
- - - - - - - - - - - - - - - -
|
|
|
|
|
|
|
|
* `stairsplus:register_all(modname, subname, recipeitem, fields)`
|
|
|
|
Registers a stair, slab, panel, microblock, and any other types of
|
2014-06-27 20:14:08 +02:00
|
|
|
nodes to be added in the future.
|
|
|
|
This also registers the node with the circular saw.
|
2014-03-09 10:38:18 +01:00
|
|
|
Example:
|
|
|
|
```lua
|
|
|
|
stairsplus:register_all("moreblocks", "wood", "defaut:wood", {
|
|
|
|
description = "Wooden",
|
|
|
|
tiles = {"default_wood.png"},
|
|
|
|
groups = {oddly_breakabe_by_hand=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
```
|
|
|
|
The following register only a particular type of microblock.
|
2014-06-27 20:14:08 +02:00
|
|
|
You will probably never want to use them directly:
|
2014-03-09 10:38:18 +01:00
|
|
|
|
|
|
|
* `stairsplus:register_stair(modname, subname, recipeitem, fields)`
|
|
|
|
* `stairsplus:register_slab(modname, subname, recipeitem, fields)`
|
|
|
|
* `stairsplus:register_panel(modname, subname, recipeitem, fields)`
|
|
|
|
* `stairsplus:register_micro(modname, subname, recipeitem, fields)`
|
|
|
|
|