diff options
author | upsilon <upsilon@langg.net> | 2018-04-18 18:27:08 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-08-14 13:15:41 +0200 |
commit | b2065756cf9c90d493846a559587e4acec4a7851 (patch) | |
tree | 4a105572c46a6af0b0ed91bba0fb52d7f7537802 /doc/lua_api.txt | |
parent | bf22184d6e16f21b9001322aad1bf8f6dbaa372b (diff) | |
download | minetest-b2065756cf9c90d493846a559587e4acec4a7851.tar.gz minetest-b2065756cf9c90d493846a559587e4acec4a7851.tar.bz2 minetest-b2065756cf9c90d493846a559587e4acec4a7851.zip |
Add function `minetest.read_schematic`
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 6506dc2b2..3d7d3ed3d 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4844,6 +4844,18 @@ Schematics the Lua code generated will use that number of spaces as indentation instead of a tab character. +* `minetest.read_schematic(schematic, options)` + * Returns a Lua table representing the schematic (see: [Schematic specifier]) + * `schematic` is the schematic to read (see: [Schematic specifier]) + * `options` is a table containing the following optional parameters: + * `write_yslice_prob`: string value: + * `none`: no `write_yslice_prob` table is inserted, + * `low`: only probabilities that are not 254 or 255 are written in + the `write_ylisce_prob` table, + * `all`: write all probabilities to the `write_yslice_prob` table. + * The default for this option is `all`. + * Any invalid value will be interpreted as `all`. + HTTP Requests ------------- |