From f3eefeb7948b8b8d1a98f2f89baa39abc807f72d Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 1 Sep 2014 17:33:21 -0400 Subject: Add LuaVoxelManip methods: get_node_at() and set_node_at() --- doc/lua_api.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3