minetest.find_node_near

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.find_node_near(pos, radius, nodenames)

Description

Finds a node near pos. radius is a integer value. nodenames is either a string or a table of strings, direct nodenames and "group:groupname" are supported.

Returns position or nil.

Example

minetest.find_node_near({x=0, y=0, z=0}, 4, {"group:water"})
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox