diff options
author | paramat <mat.gregory@virginmedia.com> | 2015-10-21 08:51:59 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2015-10-23 21:30:20 +0100 |
commit | 59fa117d13ba881f6f5e77c94f5a4ce6adb9647f (patch) | |
tree | 43c26bb908a117de4471a442626812fea942c3ea /doc | |
parent | c32847838d72c327031520c48b76607b63da4ccc (diff) | |
download | minetest-59fa117d13ba881f6f5e77c94f5a4ce6adb9647f.tar.gz minetest-59fa117d13ba881f6f5e77c94f5a4ce6adb9647f.tar.bz2 minetest-59fa117d13ba881f6f5e77c94f5a4ce6adb9647f.zip |
Decoration API: Add flag for placement on liquid surface
Add findLiquidSurface() function to mapgen.cpp
Update lua_api.txt
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 0339345ba..52da2d095 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -801,15 +801,13 @@ Decoration types ---------------- The varying types of decorations that can be placed. -The default value is `simple`, and is currently the only type supported. - ### `simple` Creates a 1 times `H` times 1 column of a specified node (or a random node from a list, if a decoration list is specified). Can specify a certain node it must spawn next to, such as water or lava, for example. Can also generate a decoration of random height between a specified lower and upper bound. This type of decoration is intended for placement of grass, flowers, cacti, -papyri, and so on. +papyri, waterlilies and so on. ### `schematic` Copies a box of `MapNodes` from a specified schematic file (or raw description). @@ -848,8 +846,8 @@ Schematic attributes -------------------- See section "Flag Specifier Format". -Currently supported flags: `place_center_x`, `place_center_y`, - `place_center_z`, `force_placement`. +Currently supported flags: `place_center_x`, `place_center_y`, `place_center_z`, + `force_placement`. * `place_center_x`: Placement of this decoration is centered along the X axis. * `place_center_y`: Placement of this decoration is centered along the Y axis. @@ -3418,6 +3416,11 @@ Definition tables -- ^ Minimum and maximum `y` positions these decorations can be generated at. -- ^ This parameter refers to the `y` position of the decoration base, so -- the actual maximum height would be `height_max + size.Y`. + flags = "liquid_surface", + -- ^ Flags for all decoration types. + -- ^ "liquid_surface": Instead of placement on the highest solid surface + -- ^ in a mapchunk column, placement is on the highest liquid surface. + -- ^ Placement is disabled if solid nodes are found above the liquid surface. ----- Simple-type parameters decoration = "default:grass", |