Module directmapmanipulator
The DirectMapManipulator is similiar to the MapManipulator, except that it does not use the VoxelManip object, but the Minetest get_node/set_node functions.
It is mostly compatible with MapManipulator, which means you can pass it to functions which expect a MapManipulator.
Functions
DirectMapManipulator:new () | Creates a new instance of DirectMapManipulator. |
DirectMapManipulator:get_data () | Does nothing, only for compatibility with MapManipulator. |
DirectMapManipulator:get_node (x, z, y) | Gets the node and param2 at the given location. |
DirectMapManipulator:set_data () | Does nothing, only for compatibility with MapManipulator. |
DirectMapManipulator:set_node (x, z, y, node, param2) | Sets the node at the given location. |
Functions
- DirectMapManipulator:new ()
-
Creates a new instance of DirectMapManipulator.
Returns:
-
A new instance.
- DirectMapManipulator:get_data ()
- Does nothing, only for compatibility with MapManipulator.
- DirectMapManipulator:get_node (x, z, y)
-
Gets the node and param2 at the given location.
Parameters:
- x The x coordinate (width).
- z the z coordinate (depth).
- y The y coordinate (height).
Returns:
-
Two values, the node at the given location and the param2 value.
- DirectMapManipulator:set_data ()
- Does nothing, only for compatibility with MapManipulator.
- DirectMapManipulator:set_node (x, z, y, node, param2)
-
Sets the node at the given location.
Parameters:
- x The x coordinate (width).
- z the z coordinate (depth).
- y The y coordinate (height).
- node The node to set.
- param2 Optional. The param2 data to set for this node.