summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-05-30 15:07:09 -0700
committerparamat <mat.gregory@virginmedia.com>2016-06-17 04:41:20 +0100
commit39a9e9874ee739aea91acf36c6f81fc38bce7363 (patch)
tree71141b53e953660320ac428660f7b273027d25ff /doc/lua_api.txt
parent1b8dbf072ad042542b6bfb29eaed81b8a21ac38c (diff)
downloadminetest-39a9e9874ee739aea91acf36c6f81fc38bce7363.tar.gz
minetest-39a9e9874ee739aea91acf36c6f81fc38bce7363.tar.bz2
minetest-39a9e9874ee739aea91acf36c6f81fc38bce7363.zip
Builtin/game/item: Add `place_param2` nodedef field
This allows a nodedef to specify a fixed value for param2 to be used for all normal placements. There are several uses for this: - nodes that require param2 to be set to a non-zero value for internal mod use. E.g. leafdecay could use this to detect that leaves are played by players. - force wallmounted or facedir value at placement at placement This overrides any player look direction or other on-the-fly param2 setting during placement.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index d89b0bf7b..ed8f8504e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3528,6 +3528,7 @@ Definition tables
^ paramtype = "light" allows light to propagate from or through the node with light value
^ falling by 1 per node. This line is essential for a light source node to spread its light. ]]
paramtype2 = "none", -- See "Nodes"
+ place_param2 = nil, -- Force value for param2 when player places node
is_ground_content = true, -- If false, the cave generator will not carve through this
sunlight_propagates = false, -- If true, sunlight will go infinitely through this
walkable = true, -- If true, objects collide with node