minetest.hash_node_position

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

Description

Returns 48-bit integer.

Example

Implementation, taken from builtin/misc.lua.

function minetest.hash_node_position(pos)
	return (pos.z+32768)*65536*65536 + (pos.y+32768)*65536 + pos.x+32768
end
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox