mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Add documentation for minetest.swap_node
This commit is contained in:
parent
d879a539cd
commit
06baf05c64
@ -1254,6 +1254,8 @@ Environment access:
|
|||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
minetest.add_node(pos, node): alias 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})
|
^ 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)
|
minetest.remove_node(pos)
|
||||||
^ Equivalent to set_node(pos, "air")
|
^ Equivalent to set_node(pos, "air")
|
||||||
minetest.get_node(pos)
|
minetest.get_node(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user