projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d879a53
)
Add documentation for minetest.swap_node
author
Novatux
<nathanael.courant@laposte.net>
Sat, 30 Nov 2013 17:57:56 +0000
(18:57 +0100)
committer
Novatux
<nathanael.courant@laposte.net>
Sat, 30 Nov 2013 17:57:56 +0000
(18:57 +0100)
doc/lua_api.txt
patch
|
blob
|
history
diff --git
a/doc/lua_api.txt
b/doc/lua_api.txt
index 7fa8870aa988f08700eecc510fadfb657564a88e..6c06d558fa76d4697f2892a7bad0eb747fcb04dc 100644
(file)
--- 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)