mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add LuaVoxelManip methods: get_node_at() and set_node_at()
This commit is contained in:
parent
9e4e7072da
commit
f3eefeb794
4 changed files with 41 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue