@@ -907,9 +907,19 @@ node definition:
907
907
908
908
paramtype = "light"
909
909
^ The value stores light with and without sun in its upper and lower 4 bits
910
- respectively. Allows light to propagate from or through the node with
911
- light value falling by 1 per node. This is essential for a light source
912
- node to spread its light.
910
+ respectively.
911
+ Required by a light source node to enable spreading its light.
912
+ Required by the following drawtypes as they determine their visual
913
+ brightness from their internal light value:
914
+ torchlike,
915
+ signlike,
916
+ firelike,
917
+ fencelike,
918
+ raillike,
919
+ nodebox,
920
+ mesh,
921
+ plantlike,
922
+ plantlike_rooted.
913
923
914
924
`param2` is reserved for the engine when any of these are used:
915
925
@@ -1217,6 +1227,7 @@ size of the finest detail you require. For example:
1217
1227
if `spread` is 512 nodes, `lacunarity` is 2.0 and finest detail required is 16
1218
1228
nodes, octaves will be 6 because the 'wavelengths' of the octaves will be
1219
1229
512, 256, 128, 64, 32, 16 nodes.
1230
+ Warning: If the 'wavelength' of any octave falls below 1 an error will occur.
1220
1231
1221
1232
### `persistence`
1222
1233
Each additional octave has an amplitude that is the amplitude of the previous
@@ -1506,9 +1517,6 @@ factor!
1506
1517
Below are the specific uses for fields in each type; fields not listed for that
1507
1518
type are ignored.
1508
1519
1509
- **Note**: Future revisions to the HUD API may be incompatible; the HUD API is
1510
- still in the experimental stages.
1511
-
1512
1520
### `image`
1513
1521
Displays an image on the HUD.
1514
1522
@@ -5322,11 +5330,7 @@ Definition tables
5322
5330
^ Only when `paramtype2` supports palettes. ]]
5323
5331
post_effect_color = "green#0F",
5324
5332
^ Screen tint if player is inside node, see "ColorSpec".
5325
- paramtype = "none", --[[
5326
- ^ See "Nodes".
5327
- ^ paramtype = "light" allows light to propagate from or through the
5328
- ^ node with light value falling by 1 per node. This line is essential
5329
- ^ for a light source node to spread its light. ]]
5333
+ paramtype = "none", -- See "Nodes".
5330
5334
paramtype2 = "none", -- See "Nodes"
5331
5335
place_param2 = nil, -- Force value for param2 when player places node
5332
5336
is_ground_content = true,
@@ -5374,10 +5378,26 @@ Definition tables
5374
5378
^ Tells connected nodebox nodes to connect only to these sides of this
5375
5379
^ node. ]]
5376
5380
mesh = "model",
5377
- selection_box = {type="regular"}, --[[
5378
- ^ See "Node boxes".
5381
+ selection_box = {
5382
+ type = "fixed",
5383
+ fixed = {
5384
+ {-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
5385
+ },
5386
+ },
5387
+ ^ Custom selection box definition. Multiple boxes can be defined.
5379
5388
^ If drawtype "nodebox" is used and selection_box is nil, then node_box
5380
- ^ is used. ]]
5389
+ ^ definition is used for the selection box.
5390
+ collision_box = {
5391
+ type = "fixed",
5392
+ fixed = {
5393
+ {-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
5394
+ },
5395
+ },
5396
+ ^ Custom collision box definition. Multiple boxes can be defined.
5397
+ ^ If drawtype "nodebox" is used and collision_box is nil, then node_box
5398
+ ^ definition is used for the collision box.
5399
+ ^ For both of the above a box is defined as:
5400
+ ^ {xmin, ymin, zmin, xmax, ymax, zmax} in nodes from node center.
5381
5401
legacy_facedir_simple = false,
5382
5402
^ Support maps made in and before January 2012.
5383
5403
legacy_wallmounted = false,
@@ -5946,11 +5966,12 @@ Note that in params, use of symbols is as follows:
5946
5966
texture = "image.png",
5947
5967
-- ^ Uses texture (string)
5948
5968
playername = "singleplayer",
5949
- -- ^ optional , if specified spawns particle only on the player's client
5969
+ -- ^ Optional , if specified spawns particle only on the player's client
5950
5970
animation = {Tile Animation definition},
5951
- -- ^ optional , specifies how to animate the particle texture
5971
+ -- ^ Optional , specifies how to animate the particle texture
5952
5972
glow = 0
5953
- -- ^ optional, specify particle self-luminescence in darkness
5973
+ -- ^ Optional, specify particle self-luminescence in darkness.
5974
+ -- ^ Values 0-14.
5954
5975
}
5955
5976
5956
5977
@@ -5991,9 +6012,10 @@ Note that in params, use of symbols is as follows:
5991
6012
-- ^ Playername is optional, if specified spawns particle only on the
5992
6013
-- ^ player's client.
5993
6014
animation = {Tile Animation definition},
5994
- -- ^ optional , specifies how to animate the particle texture
6015
+ -- ^ Optional , specifies how to animate the particle texture
5995
6016
glow = 0
5996
- -- ^ optional, specify particle self-luminescence in darkness
6017
+ -- ^ Optional, specify particle self-luminescence in darkness.
6018
+ -- ^ Values 0-14.
5997
6019
}
5998
6020
5999
6021
### `HTTPRequest` definition (`HTTPApiTable.fetch_async`, `HTTPApiTable.fetch_async`)
0 commit comments