aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-11-30 18:57:56 +0100
committerNovatux <nathanael.courant@laposte.net>2013-11-30 18:57:56 +0100
commit06baf05c641355ead97e9428c4455af9e8b11cef (patch)
tree6dc5eba41bc93f1993a9472a81408645023f6083 /doc/lua_api.txt
parentd879a539cd19ddd1ee34afec2512fb2238de2822 (diff)
downloadminetest-06baf05c641355ead97e9428c4455af9e8b11cef.tar.gz
minetest-06baf05c641355ead97e9428c4455af9e8b11cef.tar.bz2
minetest-06baf05c641355ead97e9428c4455af9e8b11cef.zip
Add documentation for minetest.swap_node
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 7fa8870aa..6c06d558f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1254,6 +1254,8 @@ Environment access:
minetest.set_node(pos, node)
minetest.add_node(pos, node): alias set_node(pos, node)
^ Set node at position (node = {name="foo", param1=0, param2=0})
+minetest.swap_node(pos, node)
+^ Set node at position, but don't remove metadata
minetest.remove_node(pos)
^ Equivalent to set_node(pos, "air")
minetest.get_node(pos)