mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Rooted plantlike drawtype: Add remaining documentation
Plus a small clarification of 'glasslike framed' documentation.
This commit is contained in:
parent
d8f20d029a
commit
a016b64838
@ -827,12 +827,11 @@ node definition:
|
|||||||
Leveled nodebox:
|
Leveled nodebox:
|
||||||
The level of the top face of the nodebox is stored in param2.
|
The level of the top face of the nodebox is stored in param2.
|
||||||
The other faces are defined by 'fixed = {}' like 'type = "fixed"' nodeboxes.
|
The other faces are defined by 'fixed = {}' like 'type = "fixed"' nodeboxes.
|
||||||
The nodebox height is param2 / 64 nodes.
|
The nodebox height is (param2 / 64) nodes.
|
||||||
The maximum accepted value of param2 is 127.
|
The maximum accepted value of param2 is 127.
|
||||||
Rooted plantlike:
|
Rooted plantlike:
|
||||||
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.
|
||||||
The maximum accepted value of param2 is 127.
|
|
||||||
paramtype2 == "degrotate"
|
paramtype2 == "degrotate"
|
||||||
^ The rotation of this node is stored in param2. Plants are rotated this way.
|
^ The rotation of this node is stored in param2. Plants are rotated this way.
|
||||||
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
|
||||||
@ -868,13 +867,14 @@ node definition:
|
|||||||
The palette should have 32 pixels.
|
The palette should have 32 pixels.
|
||||||
paramtype2 == "glasslikeliquidlevel"
|
paramtype2 == "glasslikeliquidlevel"
|
||||||
^ Only valid for "glasslike_framed" or "glasslike_framed_optional" drawtypes.
|
^ Only valid for "glasslike_framed" or "glasslike_framed_optional" drawtypes.
|
||||||
param2 defines 64 levels of internal liquid.
|
param2 values 0-63 define 64 levels of internal liquid, 0 being empty and
|
||||||
|
63 being full.
|
||||||
Liquid texture is defined using `special_tiles = {"modname_tilename.png"},`
|
Liquid texture is defined using `special_tiles = {"modname_tilename.png"},`
|
||||||
|
|
||||||
Nodes can also contain extra data. See "Node Metadata".
|
Nodes can also contain extra data. See "Node Metadata".
|
||||||
|
|
||||||
Node drawtypes
|
Node drawtypes
|
||||||
---------------
|
--------------
|
||||||
There are a bunch of different looking node types.
|
There are a bunch of different looking node types.
|
||||||
|
|
||||||
Look for examples in `games/minimal` or `games/minetest_game`.
|
Look for examples in `games/minimal` or `games/minetest_game`.
|
||||||
@ -895,13 +895,13 @@ Look for examples in `games/minimal` or `games/minetest_game`.
|
|||||||
* `fencelike`
|
* `fencelike`
|
||||||
* `raillike`
|
* `raillike`
|
||||||
* `nodebox` -- See below
|
* `nodebox` -- See below
|
||||||
* `mesh` -- Use models for nodes
|
* `mesh` -- Use models for nodes, see below
|
||||||
* `plantlike_rooted`
|
* `plantlike_rooted` -- See below
|
||||||
|
|
||||||
`*_optional` drawtypes need less rendering time if deactivated (always client side).
|
`*_optional` drawtypes need less rendering time if deactivated (always client side).
|
||||||
|
|
||||||
Node boxes
|
Node boxes
|
||||||
-----------
|
----------
|
||||||
Node selection boxes are defined using "node boxes"
|
Node selection boxes are defined using "node boxes"
|
||||||
|
|
||||||
The `nodebox` node drawtype allows defining nodes consisting of an arbitrary
|
The `nodebox` node drawtype allows defining nodes consisting of an arbitrary
|
||||||
@ -955,13 +955,24 @@ A box of a regular node would look like:
|
|||||||
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
|
||||||
|
|
||||||
Meshes
|
Meshes
|
||||||
------
|
------
|
||||||
If drawtype `mesh` is used, tiles should hold model materials textures.
|
If drawtype `mesh` is used, tiles should hold model materials textures.
|
||||||
Only static meshes are implemented.
|
Only static meshes are implemented.
|
||||||
For supported model formats see Irrlicht engine documentation.
|
For supported model formats see Irrlicht engine documentation.
|
||||||
|
|
||||||
|
Rooted plantlike drawtype
|
||||||
|
-------------------------
|
||||||
|
The `plantlike_rooted` drawtype was developed to enable underwater plants
|
||||||
|
without air bubbles around the plants.
|
||||||
|
It consists of a base cube at the co-ordinates of the node (the seabed /
|
||||||
|
lakebed / riverbed node) plus a 'plantlike' extension above with a height
|
||||||
|
defined by param2 (maximum height 16 nodes). This extension visually passes
|
||||||
|
through any nodes above the base cube without affecting them.
|
||||||
|
The node is dug by digging the base cube.
|
||||||
|
The base cube texture tiles are defined as normal, the plantlike extension
|
||||||
|
uses the defined 'special tile', for example:
|
||||||
|
`special_tiles = {{name = "default_papyrus.png", tileable_vertical = true}},`
|
||||||
|
|
||||||
Noise Parameters
|
Noise Parameters
|
||||||
----------------
|
----------------
|
||||||
|
Loading…
Reference in New Issue
Block a user