EnvRef get_objects_inside_radius - Uberi/MineTest-API GitHub Wiki

EnvRef:get_objects_inside_radius

Description

Obtain a list of all objects within a given radius from a position.

Syntax

[table](../type/table.html) get_objects_inside_radius([position](../type/position.html) pos, [integer](../type/integer.html) radius)

Examples

local positions_list = minetest.env:get_objects_inside_radius({x=0, y=0, z=0}, 20)
⚠️ **GitHub.com Fallback** ⚠️