forked from Mirrorlandia_minetest/minetest
Add missing paramtype2 documentation (#9397)
This commit is contained in:
parent
ac5f53e364
commit
ff769e7df5
@ -948,7 +948,8 @@ Node paramtypes
|
|||||||
The functions of `param1` and `param2` are determined by certain fields in the
|
The functions of `param1` and `param2` are determined by certain fields in the
|
||||||
node definition.
|
node definition.
|
||||||
|
|
||||||
`param1` is reserved for the engine when `paramtype != "none"`:
|
The function of `param1` is determined by `paramtype` in node definition.
|
||||||
|
`param1` is reserved for the engine when `paramtype != "none"`.
|
||||||
|
|
||||||
* `paramtype = "light"`
|
* `paramtype = "light"`
|
||||||
* The value stores light with and without sun in its upper and lower 4 bits
|
* The value stores light with and without sun in its upper and lower 4 bits
|
||||||
@ -965,19 +966,27 @@ node definition.
|
|||||||
* mesh
|
* mesh
|
||||||
* plantlike
|
* plantlike
|
||||||
* plantlike_rooted
|
* plantlike_rooted
|
||||||
|
* `paramtype = "none"`
|
||||||
|
* `param1` will not be used by the engine and can be used to store
|
||||||
|
an arbitrary value
|
||||||
|
|
||||||
`param2` is reserved for the engine when any of these are used:
|
The function of `param2` is determined by `paramtype2` in node definition.
|
||||||
|
`param2` is reserved for the engine when `paramtype2 != "none"`.
|
||||||
|
|
||||||
* `liquidtype = "flowing"`
|
* `paramtype2 = "flowingliquid"`
|
||||||
* The level and some flags of the liquid is stored in `param2`
|
* Used by `drawtype = "flowingliquid"` and `liquidtype = "flowing"`
|
||||||
* `drawtype = "flowingliquid"`
|
* The liquid level and a flag of the liquid are stored in `param2`
|
||||||
* The drawn liquid level is read from `param2`
|
* Bits 0-2: Liquid level (0-7). The higher, the more liquid is in this node
|
||||||
* `drawtype = "torchlike"`
|
* Bit 3: If set, liquid is flowing downwards (no graphical effect)
|
||||||
* `drawtype = "signlike"`
|
|
||||||
* `paramtype2 = "wallmounted"`
|
* `paramtype2 = "wallmounted"`
|
||||||
* The rotation of the node is stored in `param2`. You can make this value
|
* Supported drawtypes: "torchlike", "signlike", "normal", "nodebox", "mesh"
|
||||||
by using `minetest.dir_to_wallmounted()`.
|
* The rotation of the node is stored in `param2`
|
||||||
|
* You can make this value by using `minetest.dir_to_wallmounted()`
|
||||||
|
* Values range 0 - 5
|
||||||
|
* The value denotes at which direction the node is "mounted":
|
||||||
|
0 = y+, 1 = y-, 2 = x+, 3 = x-, 4 = z+, 5 = z-
|
||||||
* `paramtype2 = "facedir"`
|
* `paramtype2 = "facedir"`
|
||||||
|
* Supported drawtypes: "normal", "nodebox", "mesh"
|
||||||
* The rotation of the node is stored in `param2`. Furnaces and chests are
|
* The rotation of the node is stored in `param2`. Furnaces and chests are
|
||||||
rotated this way. Can be made by using `minetest.dir_to_facedir()`.
|
rotated this way. Can be made by using `minetest.dir_to_facedir()`.
|
||||||
* Values range 0 - 23
|
* Values range 0 - 23
|
||||||
@ -996,13 +1005,13 @@ node definition.
|
|||||||
* The height of the 'plantlike' section is stored in `param2`.
|
* The height of the 'plantlike' section is stored in `param2`.
|
||||||
* The height is (`param2` / 16) nodes.
|
* The height is (`param2` / 16) nodes.
|
||||||
* `paramtype2 = "degrotate"`
|
* `paramtype2 = "degrotate"`
|
||||||
* Only valid for "plantlike". The rotation of the node is stored in
|
* Only valid for "plantlike" drawtype. The rotation of the node is stored in
|
||||||
`param2`.
|
`param2`.
|
||||||
* Values range 0 - 179. The value stored in `param2` is multiplied by two to
|
* Values range 0 - 179. The value stored in `param2` is multiplied by two to
|
||||||
get the actual rotation in degrees of the node.
|
get the actual rotation in degrees of the node.
|
||||||
* `paramtype2 = "meshoptions"`
|
* `paramtype2 = "meshoptions"`
|
||||||
* Only valid for "plantlike". The value of `param2` becomes a bitfield which
|
* Only valid for "plantlike" drawtype. The value of `param2` becomes a
|
||||||
can be used to change how the client draws plantlike nodes.
|
bitfield which can be used to change how the client draws plantlike nodes.
|
||||||
* Bits 0, 1 and 2 form a mesh selector.
|
* Bits 0, 1 and 2 form a mesh selector.
|
||||||
Currently the following meshes are choosable:
|
Currently the following meshes are choosable:
|
||||||
* 0 = a "x" shaped plant (ordinary plant)
|
* 0 = a "x" shaped plant (ordinary plant)
|
||||||
@ -1034,6 +1043,9 @@ node definition.
|
|||||||
* `param2` values 0-63 define 64 levels of internal liquid, 0 being empty
|
* `param2` values 0-63 define 64 levels of internal liquid, 0 being empty
|
||||||
and 63 being full.
|
and 63 being full.
|
||||||
* Liquid texture is defined using `special_tiles = {"modname_tilename.png"}`
|
* Liquid texture is defined using `special_tiles = {"modname_tilename.png"}`
|
||||||
|
* `paramtype2 = "none"`
|
||||||
|
* `param2` will not be used by the engine and can be used to store
|
||||||
|
an arbitrary value
|
||||||
|
|
||||||
Nodes can also contain extra data. See [Node Metadata].
|
Nodes can also contain extra data. See [Node Metadata].
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user