@@ -1247,6 +1247,9 @@ A box of a regular node would look like:
1247
1247
1248
1248
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
1249
1249
1250
+ To avoid collision issues, keep each value within the range of +/- 1.45.
1251
+ This also applies to leveled nodeboxes, where the final height shall not
1252
+ exceed this soft limit.
1250
1253
1251
1254
1252
1255
@@ -3234,6 +3237,7 @@ Helper functions
3234
3237
* returns true when the passed number represents NaN.
3235
3238
* `minetest.get_us_time()`
3236
3239
* returns time with microsecond precision. May not return wall time.
3240
+ * This value might overflow on certain 32-bit systems!
3237
3241
* `table.copy(table)`: returns a table
3238
3242
* returns a deep copy of `table`
3239
3243
* `table.indexof(list, val)`: returns the smallest numerical index containing
@@ -6425,6 +6429,8 @@ object you are working with still exists.
6425
6429
* `selected_mode` is the mode index to be selected after modes have been changed
6426
6430
(0 is the first mode).
6427
6431
* `set_sky(sky_parameters)`
6432
+ * The presence of the function `set_sun`, `set_moon` or `set_stars` indicates
6433
+ whether `set_sky` accepts this format. Check the legacy format otherwise.
6428
6434
* `sky_parameters` is a table with the following optional fields:
6429
6435
* `base_color`: ColorSpec, changes fog in "skybox" and "plain".
6430
6436
* `type`: Available types:
@@ -6466,6 +6472,15 @@ object you are working with still exists.
6466
6472
abides by, `"custom"` uses `sun_tint` and `moon_tint`, while
6467
6473
`"default"` uses the classic Minetest sun and moon tinting.
6468
6474
Will use tonemaps, if set to `"default"`. (default: `"default"`)
6475
+ * `set_sky(base_color, type, {texture names}, clouds)`
6476
+ * Deprecated. Use `set_sky(sky_parameters)`
6477
+ * `base_color`: ColorSpec, defaults to white
6478
+ * `type`: Available types:
6479
+ * `"regular"`: Uses 0 textures, `bgcolor` ignored
6480
+ * `"skybox"`: Uses 6 textures, `bgcolor` used
6481
+ * `"plain"`: Uses 0 textures, `bgcolor` used
6482
+ * `clouds`: Boolean for whether clouds appear in front of `"skybox"` or
6483
+ `"plain"` custom skyboxes (default: `true`)
6469
6484
* `get_sky()`: returns base_color, type, table of textures, clouds.
6470
6485
* `get_sky_color()`: returns a table with the `sky_color` parameters as in
6471
6486
`set_sky`.
@@ -7346,6 +7361,7 @@ Used by `minetest.register_node`.
7346
7361
leveled_max = 127,
7347
7362
-- Maximum value for `leveled` (0-127), enforced in
7348
7363
-- `minetest.set_node_level` and `minetest.add_node_level`.
7364
+ -- Values above 124 might causes collision detection issues.
7349
7365
7350
7366
liquid_range = 8, -- Number of flowing nodes around source (max. 8)
7351
7367
@@ -7373,6 +7389,7 @@ Used by `minetest.register_node`.
7373
7389
type = "fixed",
7374
7390
fixed = {
7375
7391
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
7392
+ -- Node box format: see [Node boxes]
7376
7393
},
7377
7394
},
7378
7395
-- Custom selection box definition. Multiple boxes can be defined.
@@ -7383,13 +7400,12 @@ Used by `minetest.register_node`.
7383
7400
type = "fixed",
7384
7401
fixed = {
7385
7402
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
7403
+ -- Node box format: see [Node boxes]
7386
7404
},
7387
7405
},
7388
7406
-- Custom collision box definition. Multiple boxes can be defined.
7389
7407
-- If "nodebox" drawtype is used and collision_box is nil, then node_box
7390
7408
-- definition is used for the collision box.
7391
- -- Both of the boxes above are defined as:
7392
- -- {xmin, ymin, zmin, xmax, ymax, zmax} in nodes from node center.
7393
7409
7394
7410
-- Support maps made in and before January 2012
7395
7411
legacy_facedir_simple = false,
0 commit comments