27 lines
974 B
Markdown
27 lines
974 B
Markdown
# API Documentation
|
|
|
|
## Helper Functions
|
|
|
|
There are many helper functions defined in `mods/CORE/pyutest/util.lua`
|
|
|
|
There isn't much documentation on these so looking at how they're implemented is
|
|
the best way to learn how to use those functions.
|
|
|
|
## Blocks
|
|
|
|
There are many functions for creating nodes. Here is a list:
|
|
|
|
- `PyuTest.make_node`: Wrapper around core.register_node, I wouldn't of made
|
|
this if I wasn't so stupid in the early development of this game.
|
|
- `PyuTest.make_slab`: Creates slabs.
|
|
- `PyuTest.make_stairs`: Creates stairs.
|
|
- `PyuTest.make_sign`: Creates signs.
|
|
- `PyuTest.make_door`: Creates doors.
|
|
- `PyuTest.make_fence`: Creates fences.
|
|
- `PyuTest.make_building_blocks`: Originally for making woolen blocks and
|
|
carpets but has since become the backbone to creating most of the blocks in
|
|
this game. I wouldn't of made this if I wasn't so stupid in the early
|
|
development of this game.
|
|
|
|
These functons automatically use translators under the hood.
|