summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-07-08 20:01:29 +0100
committerparamat <mat.gregory@virginmedia.com>2015-07-08 22:44:10 +0100
commitb51738177e2dae60153a825e200ea9cdeb1cec99 (patch)
treeae62777ef0e973fee087bb706ac51f018d9092a6 /doc/lua_api.txt
parent39439cbd3dd4acce0ff897e3e277736251dde2a4 (diff)
downloadminetest-b51738177e2dae60153a825e200ea9cdeb1cec99.tar.gz
minetest-b51738177e2dae60153a825e200ea9cdeb1cec99.tar.bz2
minetest-b51738177e2dae60153a825e200ea9cdeb1cec99.zip
Biome API decorations: 'spawnby' searches a 3D neighbourhood
The neighbours checked are the 8 nodes horizontally surrounding the decoration base and the 8 nodes horizontally surrounding the ground node below the decoration
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 95b514a92..49292d2b4 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3331,7 +3331,9 @@ Definition tables
-- ^ Number of nodes the decoration can be at maximum.
-- ^ If absent, the parameter 'height' is used as a constant.
spawn_by = "default:water",
- -- ^ Node that the decoration only spawns next to, in a 1-node square radius.
+ -- ^ Node that the decoration only spawns next to.
+ -- ^ The neighbours checked are the 8 nodes horizontally surrounding the lowest node of the
+ -- ^ decoration, and the 8 nodes horizontally surrounding the ground node below the decoration.
num_spawn_by = 1,
-- ^ Number of spawn_by nodes that must be surrounding the decoration position to occur.
-- ^ If absent or -1, decorations occur next to any nodes.