1
0
şunun yansıması https://github.com/minetest-mods/moreblocks.git eşitlendi 2025-07-16 14:50:33 +02:00

Merge ShadowNinja's rewrite.

Bu işleme şunda yer alıyor:
Calinou
2014-03-09 10:38:18 +01:00
ebeveyn 396945ed3e
işleme 8337a6c192
19 değiştirilmiş dosya ile 1348 ekleme ve 1663 silme

25
stairsplus/API.md Normal dosya
Dosyayı Görüntüle

@ -0,0 +1,25 @@
API documentation for StairsPlus
================================
- - - - - - - - - - - - - - - -
* `stairsplus:register_all(modname, subname, recipeitem, fields)`
Registers a stair, slab, panel, microblock, and any other types of
microblocks to be added in the future.
Also registers the node with the circular saw.
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.
You will probably never want to use them directly.
* `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)`