1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00
This commit is contained in:
sfan5 2025-06-16 12:17:32 +02:00
parent f7223129af
commit 90b80d52a8
3 changed files with 31 additions and 34 deletions

View file

@ -6482,10 +6482,10 @@ Environment access
* Same as `get_node` but returns `nil` for unloaded areas.
* Note that even loaded areas can contain "ignore" nodes.
* `core.get_node_raw(x, y, z)`
* Low-level API returning numbers, not tables
* Same as `get_node` but a faster low-level API
* Returns `content_id`, `param1`, `param2`, and `pos_ok`
* The `content_id` can be mapped to a node name via `core.get_name_from_content_id`
* If `pos_ok` is false, the node is not yet loaded and the `content_id` is that of "ignore" nodes
* The `content_id` can be mapped to a name using `core.get_name_from_content_id()`
* If `pos_ok` is false, the area is unloaded and `content_id == core.CONTENT_IGNORE`
* `core.get_node_light(pos[, timeofday])`
* Gets the light value at the given position. Note that the light value
"inside" the node at the given position is returned, so you usually want