aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-09-01 17:33:21 -0400
committerkwolekr <kwolekr@minetest.net>2014-09-01 17:33:21 -0400
commitf3eefeb7948b8b8d1a98f2f89baa39abc807f72d (patch)
tree86f51e45a4da09351b37a39610cd671e8dce0dfd /doc
parent9e4e7072da8f565eef37da7558053a436b9cbba3 (diff)
downloadminetest-f3eefeb7948b8b8d1a98f2f89baa39abc807f72d.tar.gz
minetest-f3eefeb7948b8b8d1a98f2f89baa39abc807f72d.tar.bz2
minetest-f3eefeb7948b8b8d1a98f2f89baa39abc807f72d.zip
Add LuaVoxelManip methods: get_node_at() and set_node_at()
Diffstat (limited to 'doc')
-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 46b789526..5fd10d418 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2077,6 +2077,8 @@ methods:
^ returns actual emerged pmin, actual emerged pmax
- write_to_map(): Writes the data loaded from the VoxelManip back to the map.
^ important: data must be set using VoxelManip:set_data before calling this
+- get_node_at(pos): Returns a MapNode table of the node currently loaded in the VoxelManip at that position
+- set_node_at(pos, node): Sets a specific MapNode in the VoxelManip at that position
- get_data(): Gets the data read into the VoxelManip object
^ returns raw node data is in the form of an array of node content ids
- set_data(data): Sets the data contents of the VoxelManip object