Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document glasslikeliquidlevel merge bits (#11479)
  • Loading branch information
random-geek committed Jul 25, 2021
1 parent a049e82 commit 5d27cc5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions doc/lua_api.txt
Expand Up @@ -247,7 +247,7 @@ Media files (textures, sounds, whatever) that will be transferred to the
client and will be available for use by the mod and translation files for
the clients (see [Translations]).

It is suggested to use the folders for the purpous they are thought for,
It is suggested to use the folders for the purpose they are thought for,
eg. put textures into `textures`, translation files into `locale`,
models for entities or meshnodes into `models` et cetera.

Expand Down Expand Up @@ -1085,9 +1085,14 @@ The function of `param2` is determined by `paramtype2` in node definition.
palette. The palette should have 32 pixels.
* `paramtype2 = "glasslikeliquidlevel"`
* Only valid for "glasslike_framed" or "glasslike_framed_optional"
drawtypes.
* `param2` values 0-63 define 64 levels of internal liquid, 0 being empty
and 63 being full.
drawtypes. "glasslike_framed_optional" nodes are only affected if the
"Connected Glass" setting is enabled.
* Bits 0-5 define 64 levels of internal liquid, 0 being empty and 63 being
full.
* Bits 6 and 7 modify the appearance of the frame and node faces. One or
both of these values may be added to `param2`:
* 64 - Makes the node not connect with neighbors above or below it.
* 128 - Makes the node not connect with neighbors to its sides.
* Liquid texture is defined using `special_tiles = {"modname_tilename.png"}`
* `paramtype2 = "colordegrotate"`
* Same as `degrotate`, but with colors.
Expand Down Expand Up @@ -3607,7 +3612,7 @@ A whole number, 1 or more.
Each additional octave adds finer detail to the noise but also increases the
noise calculation load.
3 is a typical minimum for a high quality, complex and natural-looking noise
variation. 1 octave has a slight 'gridlike' appearence.
variation. 1 octave has a slight 'gridlike' appearance.

Choose the number of octaves according to the `spread` and `lacunarity`, and the
size of the finest detail you require. For example:
Expand Down Expand Up @@ -7204,7 +7209,7 @@ Used by `minetest.register_abm`.
chance = 1,
-- Chance of triggering `action` per-node per-interval is 1.0 / this
-- value

min_y = -32768,
max_y = 32767,
-- min and max height levels where ABM will be processed
Expand Down

0 comments on commit 5d27cc5

Please sign in to comment.