Module blockutil
Various functions related to blocks/chunks.
Functions
get_begin (x, y, z) | Gets the begin coordinates of the block the given coordinates are in. |
get_begin_pos (x, y, z) | Gets the begin coordinates of the block the given coordinates are in as position (a table with three entries, x, y, and z). |
get_end (x, y, z) | Gets the end coordinates of the block the given coordinates are in. |
get_end_pos (x, y, z) | Gets the end coordinates of the block the given coordinates are in as position (a table with three entries, x, y, z). |
Functions
- get_begin (x, y, z)
-
Gets the begin coordinates of the block the given coordinates are in.
Parameters:
- x The x coordinate. Can also be a table with the x, y and z values.
- y The y coordinate.
- z The z coordinate.
Returns:
-
The coordinates (x, y, z) of the blocks begin.
- get_begin_pos (x, y, z)
-
Gets the begin coordinates of the block the given coordinates are in
as position (a table with three entries, x, y, and z).
Parameters:
- x The x coordinate. Can also be a table with the x, y and z values.
- y The y coordinate.
- z The z coordinate.
Returns:
-
The coordinates (x, y, z) of the blocks begin as pos.
- get_end (x, y, z)
-
Gets the end coordinates of the block the given coordinates are in.
Parameters:
- x The x coordinate. Can also be a table with the x, y and z values.
- y The y coordinate.
- z The z coordinate.
Returns:
-
The coordinates (x, y, z) of the blocks end.
- get_end_pos (x, y, z)
-
Gets the end coordinates of the block the given coordinates are in
as position (a table with three entries, x, y, z).
Parameters:
- x The x coordinate. Can also be a table with the x, y and z values.
- y The y coordinate.
- z The z coordinate.
Returns:
-
The coordinates (x, y, z) of the blocks end as pos.