@@ -473,8 +473,10 @@ node definition:
473
473
`param1` is reserved for the engine when `paramtype != "none"`:
474
474
475
475
paramtype = "light"
476
- ^ The value stores light with and without sun in it's
477
- upper and lower 4 bits.
476
+ ^ The value stores light with and without sun in its upper and lower 4 bits
477
+ respectively. Allows light to propagate from or through the node with
478
+ light value falling by 1 per node. This is essential for a light source
479
+ node to spread its light.
Has a conversation. Original line has a conversation. 478
480
479
481
`param2` is reserved for the engine when any of these are used:
480
482
@@ -1332,7 +1334,8 @@ examples.
1332
1334
* Position and size units are inventory slots
1333
1335
* Example for formspec 8x4 in 16x resolution:
1334
1336
image shall be sized 8 times 16px times 4 times 16px
1335
- * If `true` the background is clipped to formspec size (`x` and `y` are used as offset values, `w` and `h` are ignored)
1337
+ * If `true` the background is clipped to formspec size
1338
+ (`x` and `y` are used as offset values, `w` and `h` are ignored)
1336
1339
1337
1340
#### `pwdfield[<X>,<Y>;<W>,<H>;<name>;<label>]`
1338
1341
* Textual password style field; will be sent to server when a button is clicked
@@ -1851,7 +1854,8 @@ and `minetest.auth_reload` call the authetification handler.
1851
1854
* Function cannot be called after the registration period; only initialization and `on_mapgen_init`
1852
1855
* Takes a table as an argument with the fields `mgname`, `seed`, `water_level`, and `flags`.
1853
1856
* Leave field unset to leave that parameter unchanged
1854
- * `flags` contains a comma-delimited string of flags to set, or if the prefix `"no"` is attached, clears instead.
1857
+ * `flags` contains a comma-delimited string of flags to set,
1858
+ or if the prefix `"no"` is attached, clears instead.
1855
1859
* `flags` is in the same format and has the same options as `mg_flags` in `minetest.conf`
1856
1860
* `minetest.set_noiseparams(name, noiseparams, set_default)`
1857
1861
* Sets the noiseparams setting of `name` to the noiseparams table specified in `noiseparams`.
@@ -1940,7 +1944,8 @@ and `minetest.auth_reload` call the authetification handler.
1940
1944
* Get position of a `pointed_thing` (that you can get from somewhere)
1941
1945
* `minetest.dir_to_facedir(dir, is6d)`
1942
1946
* Convert a vector to a facedir value, used in `param2` for `paramtype2="facedir"`;
1943
- * passing something non-`nil`/`false` for the optional second parameter causes it to take the y component into account
1947
+ * passing something non-`nil`/`false` for the optional second parameter causes it to
1948
+ take the y component into account
1944
1949
* `minetest.facedir_to_dir(facedir)`
1945
1950
* Convert a facedir back into a vector aimed directly out the "back" of a node
1946
1951
* `minetest.dir_to_wallmounted(dir)`
@@ -1989,7 +1994,8 @@ and `minetest.auth_reload` call the authetification handler.
1989
1994
ground)
1990
1995
1991
1996
### Rollback
1992
- * `minetest.rollback_get_node_actions(pos, range, seconds, limit)`: returns `{{actor, pos, time, oldnode, newnode}, ...}`
1997
+ * `minetest.rollback_get_node_actions(pos, range, seconds, limit)`:
1998
+ returns `{{actor, pos, time, oldnode, newnode}, ...}`
1993
1999
* Find who has done something to a node, or near a node
1994
2000
* `actor`: `"player:<name>"`, also `"liquid"`.
1995
2001
* `minetest.rollback_revert_actions_by(actor, seconds)`: returns `boolean, log_messages`
@@ -2076,8 +2082,8 @@ These functions return the leftover itemstack.
2076
2082
* If there are two or more entries with the same pos value, the last entry is used.
2077
2083
* If `pos` is not inside the box formed by `p1` and `p2`, it is ignored.
2078
2084
* If `probability_list` equals `nil`, no probabilities are applied.
2079
- * Slice probability works in the same manner, except takes a field called `ypos` instead which indicates
2080
- the y position of the slice with a probability applied.
2085
+ * Slice probability works in the same manner, except takes a field called `ypos` instead which
2086
+ indicates the y position of the slice with a probability applied.
2081
2087
* If slice probability list equals `nil`, no slice probabilities are applied.
2082
2088
* Saves schematic in the Minetest Schematic format to filename.
2083
2089
@@ -2369,7 +2375,8 @@ This is basically a reference to a C++ `ServerActiveObject`
2369
2375
* `override_day_night_ratio(ratio or nil)`
2370
2376
* `0`...`1`: Overrides day-night ratio, controlling sunlight to a specific amount
2371
2377
* `nil`: Disables override, defaulting to sunlight based on day-night cycle
2372
- * `set_local_animation({x=0, y=79}, {x=168, y=187}, {x=189, y=198}, {x=200, y=219}, frame_speed=30)`: set animation for player model in third person view
2378
+ * `set_local_animation({x=0, y=79}, {x=168, y=187}, {x=189, y=198}, {x=200, y=219}, frame_speed=30)`:
2379
+ set animation for player model in third person view
2373
2380
* stand/idle animation key frames
2374
2381
* walk animation key frames
2375
2382
* dig animation key frames
@@ -2484,7 +2491,8 @@ for 2D noise, and it must be must be larger than 1 for 3D noise (otherwise
2484
2491
with values starting at `pos={x=,y=}`
2485
2492
* `get3dMap(pos)`: returns a `<size.x>` times `<size.y>` times `<size.z>` 3D array
2486
2493
of 3D noise with values starting at `pos={x=,y=,z=}`
2487
- * `get2dMap_flat(pos)`: returns a flat `<size.x * size.y>` element array of 2D noise with values starting at `pos={x=,y=}`
2494
+ * `get2dMap_flat(pos)`: returns a flat `<size.x * size.y>` element array of 2D noise
2495
+ with values starting at `pos={x=,y=}`
2488
2496
* `get3dMap_flat(pos)`: Same as `get2dMap_flat`, but 3D noise
2489
2497
2490
2498
### `VoxelManip`
@@ -2859,7 +2867,9 @@ Definition tables
2859
2867
alpha = 255,
2860
2868
use_texture_alpha = false, -- Use texture's alpha channel
2861
2869
post_effect_color = {a=0, r=0, g=0, b=0}, -- If player is inside node
2862
- paramtype = "none", -- See "Nodes"
2870
+ paramtype = "none", -- See "Nodes" --[[
2871
+ ^ paramtype = "light" allows light to propagate from or through the node with light value
2872
+ ^ falling by 1 per node. This line is essential for a light source node to spread its light. ]]
2863
2873
paramtype2 = "none", -- See "Nodes"
2864
2874
is_ground_content = true, -- If false, the cave generator will not carve through this
2865
2875
sunlight_propagates = false, -- If true, sunlight will go infinitely through this
@@ -2873,15 +2883,17 @@ Definition tables
2873
2883
liquid_alternative_source = "", -- Source version of flowing liquid
2874
2884
liquid_viscosity = 0, -- Higher viscosity = slower flow (max. 7)
2875
2885
liquid_renewable = true, -- Can new liquid source be created by placing two or more sources nearby?
2876
- leveled = 0, -- Block contain level in param2. value - default level, used for snow. Don't forget use "leveled" type nodebox
2886
+ leveled = 0, --[[
2887
+ ^ Block contains level in param2. Value is default level, used for snow.
2888
+ ^ Don't forget to use "leveled" type nodebox. ]]
2877
2889
liquid_range = 8, -- number of flowing nodes around source (max. 8)
2878
2890
drowning = 0, -- Player will take this amount of damage if no bubbles are left
2879
2891
light_source = 0, -- Amount of light emitted by node
2880
2892
damage_per_second = 0, -- If player is inside node, this damage is caused
2881
2893
node_box = {type="regular"}, -- See "Node boxes"
2882
2894
mesh = "model",
2883
- selection_box = {type="regular"}, -- See "Node boxes"
2884
- ^ If drawtype "nodebox" is used and selection_box is nil, then node_box is used
2895
+ selection_box = {type="regular"}, -- See "Node boxes" --[[
2896
+ ^ If drawtype "nodebox" is used and selection_box is nil, then node_box is used. ]]
2885
2897
legacy_facedir_simple = false, -- Support maps made in and before January 2012
2886
2898
legacy_wallmounted = false, -- Support maps made in and before January 2012
2887
2899
sounds = {