1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 18:35:20 +02:00

Add minetest.get_objects_in_area (#10668)

This commit is contained in:
Elias Fleckenstein
2020-12-29 16:50:09 +01:00
committed by GitHub
parent 09d7fbd645
commit 9250b5205a
6 changed files with 57 additions and 0 deletions

View File

@@ -4891,6 +4891,9 @@ Environment access
* `minetest.get_objects_inside_radius(pos, radius)`: returns a list of
ObjectRefs.
* `radius`: using an euclidean metric
* `minetest.get_objects_in_area(pos1, pos2)`: returns a list of
ObjectRefs.
* `pos1` and `pos2` are the min and max positions of the area to search.
* `minetest.set_timeofday(val)`
* `val` is between `0` and `1`; `0` for midnight, `0.5` for midday
* `minetest.get_timeofday()`