@@ -368,7 +368,8 @@ Parameters:
368
368
* `<p>` = current animation frame
369
369
370
370
Draw a step of the crack animation on the texture.
371
- `crack` draws it normally, while `cracko` lays it over, keeping transparent pixels intact.
371
+ `crack` draws it normally, while `cracko` lays it over, keeping transparent
372
+ pixels intact.
372
373
373
374
Example:
374
375
@@ -457,7 +458,8 @@ Example:
457
458
default_stone.png^[transformFXR90
458
459
459
460
#### `[inventorycube{<top>{<left>{<right>`
460
- Escaping does not apply here and `^` is replaced by `&` in texture names instead.
461
+ Escaping does not apply here and `^` is replaced by `&` in texture names
462
+ instead.
461
463
462
464
Create an inventory cube texture using the side textures.
463
465
@@ -510,8 +512,8 @@ texture pixel.
510
512
Multiplies texture colors with the given color.
511
513
`<color>` is specified as a `ColorString`.
512
514
Result is more like what you'd expect if you put a color on top of another
513
- color. Meaning white surfaces get a lot of your new color while black parts don't
514
- change very much.
515
+ color. Meaning white surfaces get a lot of your new color while black parts
516
+ don't change very much.
515
517
516
518
Hardware coloring
517
519
-----------------
@@ -808,16 +810,19 @@ the global `minetest.registered_*` tables.
808
810
809
811
* `minetest.register_decoration(decoration definition)`
810
812
* returns an integer uniquely identifying the registered decoration
811
- * added to `minetest.registered_decorations` with the key of `decoration.name`
813
+ * added to `minetest.registered_decorations` with the key of
814
+ `decoration.name`.
812
815
* if `decoration.name` is nil, the key is the returned ID
813
816
814
817
* `minetest.register_schematic(schematic definition)`
815
818
* returns an integer uniquely identifying the registered schematic
816
819
* added to `minetest.registered_schematic` with the key of `schematic.name`
817
820
* if `schematic.name` is nil, the key is the returned ID
818
- * if the schematic is loaded from a file, schematic.name is set to the filename
819
- * if the function is called when loading the mod, and schematic.name is a relative
820
- path, then the current mod path will be prepended to the schematic filename
821
+ * if the schematic is loaded from a file, schematic.name is set to the
822
+ filename.
823
+ * if the function is called when loading the mod, and schematic.name is a
824
+ relative path, then the current mod path will be prepended to the
825
+ schematic filename.
821
826
822
827
* `minetest.clear_registered_biomes()`
823
828
* clears all biomes currently registered
@@ -909,20 +914,22 @@ node definition:
909
914
^ Only valid for "nodebox" with 'type = "leveled"', and "plantlike_rooted".
910
915
Leveled nodebox:
911
916
The level of the top face of the nodebox is stored in param2.
912
- The other faces are defined by 'fixed = {}' like 'type = "fixed"' nodeboxes.
917
+ The other faces are defined by 'fixed = {}' like 'type = "fixed"'
918
+ nodeboxes.
913
919
The nodebox height is (param2 / 64) nodes.
914
920
The maximum accepted value of param2 is 127.
915
921
Rooted plantlike:
916
922
The height of the 'plantlike' section is stored in param2.
917
923
The height is (param2 / 16) nodes.
918
924
paramtype2 == "degrotate"
919
- ^ The rotation of this node is stored in param2. Plants are rotated this way .
925
+ ^ Only valid for "plantlike". The rotation of the node is stored in param2.
920
926
Values range 0 - 179. The value stored in param2 is multiplied by two to
921
- get the actual rotation of the node.
927
+ get the actual rotation in degrees of the node.
922
928
paramtype2 == "meshoptions"
923
- ^ Only valid for "plantlike". The value of param2 becomes a bitfield which can
924
- be used to change how the client draws plantlike nodes. Bits 0, 1 and 2 form
925
- a mesh selector. Currently the following meshes are choosable:
929
+ ^ Only valid for "plantlike". The value of param2 becomes a bitfield which
930
+ can be used to change how the client draws plantlike nodes.
931
+ Bits 0, 1 and 2 form a mesh selector.
932
+ Currently the following meshes are choosable:
926
933
0 = a "x" shaped plant (ordinary plant)
927
934
1 = a "+" shaped plant (just rotated 45 degrees)
928
935
2 = a "*" shaped plant with 3 faces instead of 2
@@ -949,7 +956,8 @@ node definition:
949
956
is picked from the palette.
950
957
The palette should have 32 pixels.
951
958
paramtype2 == "glasslikeliquidlevel"
952
- ^ Only valid for "glasslike_framed" or "glasslike_framed_optional" drawtypes.
959
+ ^ Only valid for "glasslike_framed" or "glasslike_framed_optional"
960
+ drawtypes.
953
961
param2 values 0-63 define 64 levels of internal liquid, 0 being empty and
954
962
63 being full.
955
963
Liquid texture is defined using `special_tiles = {"modname_tilename.png"},`
@@ -981,7 +989,8 @@ Look for examples in `games/minimal` or `games/minetest_game`.
981
989
* `mesh` -- Use models for nodes, see below
982
990
* `plantlike_rooted` -- See below
983
991
984
- `*_optional` drawtypes need less rendering time if deactivated (always client side).
992
+ `*_optional` drawtypes need less rendering time if deactivated
993
+ (always client side).
985
994
986
995
Node boxes
987
996
----------
@@ -1002,9 +1011,9 @@ A nodebox is defined as any of:
1002
1011
fixed = box OR {box1, box2, ...}
1003
1012
}
1004
1013
{
1005
- -- A variable height box (or boxes) with the top face position defined by
1006
- -- the node parameter 'leveled = ', or if 'paramtype2 == "leveled"' by
1007
- -- param2.
1014
+ -- A variable height box (or boxes) with the top face position defined
1015
+ -- by the node parameter 'leveled = ', or if 'paramtype2 == "leveled"'
1016
+ -- by param2.
1008
1017
-- Other faces are defined by 'fixed = {}' as with 'type = "fixed"'.
1009
1018
type = "leveled",
1010
1019
fixed = box OR {box1, box2, ...}
@@ -1038,7 +1047,8 @@ A nodebox is defined as any of:
1038
1047
disconnected_back = box OR {box1, box2, ...}
1039
1048
disconnected_right = box OR {box1, box2, ...}
1040
1049
disconnected = box OR {box1, box2, ...} -- when there is *no* neighbour
1041
- disconnected_sides = box OR {box1, box2, ...} -- when there are *no* neighbours to the sides
1050
+ disconnected_sides = box OR {box1, box2, ...} -- when there are *no*
1051
+ neighbours to the sides
1042
1052
}
1043
1053
1044
1054
A `box` is defined as:
@@ -1080,14 +1090,16 @@ Offset that the noise is translated by (i.e. added) after calculation.
1080
1090
Factor that the noise is scaled by (i.e. multiplied) after calculation.
1081
1091
1082
1092
### `spread`
1083
- Vector containing values by which each coordinate is divided by before calculation.
1093
+ Vector containing values by which each coordinate is divided by before
1094
+ calculation.
1084
1095
Higher spread values result in larger noise features.
1085
1096
1086
1097
A value of `{x=250, y=250, z=250}` is common.
1087
1098
1088
1099
### `seed`
1089
- Random seed for the noise. Add the world seed to a seed offset for world-unique noise.
1090
- In the case of `minetest.get_perlin()`, this value has the world seed automatically added.
1100
+ Random seed for the noise. Add the world seed to a seed offset for world-unique
1101
+ noise. In the case of `minetest.get_perlin()`, this value has the world seed
1102
+ automatically added.
1091
1103
1092
1104
### `octaves`
1093
1105
Number of times the noise gradient is accumulated into the noise.
@@ -1097,10 +1109,11 @@ Increase this number to increase the amount of detail in the resulting noise.
1097
1109
A value of `6` is common.
1098
1110
1099
1111
### `persistence`
1100
- Factor by which the effect of the noise gradient function changes with each successive octave.
1112
+ Factor by which the effect of the noise gradient function changes with each
1113
+ successive octave.
1101
1114
1102
- Values less than `1` make the details of successive octaves' noise diminish, while values
1103
- greater than `1` make successive octaves stronger.
1115
+ Values less than `1` make the details of successive octaves' noise diminish,
1116
+ while values greater than `1` make successive octaves stronger.
1104
1117
1105
1118
A value of `0.6` is common.
1106
1119
@@ -1115,13 +1128,15 @@ Leave this field unset for no special handling.
1115
1128
Currently supported are `defaults`, `eased` and `absvalue`.
1116
1129
1117
1130
#### `defaults`
1118
- Specify this if you would like to keep auto-selection of eased/not-eased while specifying
1119
- some other flags.
1131
+ Specify this if you would like to keep auto-selection of eased/not-eased while
1132
+ specifying some other flags.
1120
1133
1121
1134
#### `eased`
1122
- Maps noise gradient values onto a quintic S-curve before performing interpolation.
1123
- This results in smooth, rolling noise. Disable this (`noeased`) for sharp-looking noise.
1124
- If no flags are specified (or defaults is), 2D noise is eased and 3D noise is not eased.
1135
+ Maps noise gradient values onto a quintic S-curve before performing
1136
+ interpolation. This results in smooth, rolling noise.
1137
+ Disable this (`noeased`) for sharp-looking noise.
1138
+ If no flags are specified (or defaults is), 2D noise is eased and 3D noise is
1139
+ not eased.
1125
1140
1126
1141
#### `absvalue`
1127
1142
Accumulates the absolute value of each noise gradient result.
@@ -1151,9 +1166,9 @@ All default ores are of the uniformly-distributed scatter type.
1151
1166
### `scatter`
1152
1167
Randomly chooses a location and generates a cluster of ore.
1153
1168
1154
- If `noise_params` is specified, the ore will be placed if the 3D perlin noise at
1155
- that point is greater than the `noise_threshold`, giving the ability to create
1156
- a non-equal distribution of ore.
1169
+ If `noise_params` is specified, the ore will be placed if the 3D perlin noise
1170
+ at that point is greater than the `noise_threshold`, giving the ability to
1171
+ create a non-equal distribution of ore.
1157
1172
1158
1173
### `sheet`
1159
1174
Creates a sheet of ore in a blob shape according to the 2D perlin noise
@@ -1164,29 +1179,31 @@ This sheet consists of vertical columns of uniform randomly distributed height,
1164
1179
varying between the inclusive range `column_height_min` and `column_height_max`.
1165
1180
If `column_height_min` is not specified, this parameter defaults to 1.
1166
1181
If `column_height_max` is not specified, this parameter defaults to `clust_size`
1167
- for reverse compatibility. New code should prefer `column_height_max`.
1182
+ for reverse compatibility. New code should prefer `column_height_max`.
1168
1183
1169
- The `column_midpoint_factor` parameter controls the position of the column at which
1170
- ore emanates from. If 1, columns grow upward. If 0, columns grow downward. If 0.5,
1171
- columns grow equally starting from each direction. `column_midpoint_factor` is a
1172
- decimal number ranging in value from 0 to 1. If this parameter is not specified,
1173
- the default is 0.5.
1184
+ The `column_midpoint_factor` parameter controls the position of the column at
1185
+ which ore emanates from.
1186
+ If 1, columns grow upward. If 0, columns grow downward. If 0.5, columns grow
1187
+ equally starting from each direction.
1188
+ `column_midpoint_factor` is a decimal number ranging in value from 0 to 1. If
1189
+ this parameter is not specified, the default is 0.5.
1174
1190
1175
- The ore parameters `clust_scarcity` and `clust_num_ores` are ignored for this ore type.
1191
+ The ore parameters `clust_scarcity` and `clust_num_ores` are ignored for this
1192
+ ore type.
1176
1193
1177
1194
### `puff`
1178
1195
Creates a sheet of ore in a cloud-like puff shape.
1179
1196
1180
1197
As with the `sheet` ore type, the size and shape of puffs are described by
1181
- `noise_params` and `noise_threshold` and are placed at random vertical positions
1182
- within the currently generated chunk.
1198
+ `noise_params` and `noise_threshold` and are placed at random vertical
1199
+ positions within the currently generated chunk.
1183
1200
1184
- The vertical top and bottom displacement of each puff are determined by the noise
1185
- parameters `np_puff_top` and `np_puff_bottom`, respectively.
1201
+ The vertical top and bottom displacement of each puff are determined by the
1202
+ noise parameters `np_puff_top` and `np_puff_bottom`, respectively.
1186
1203
1187
1204
### `blob`
1188
1205
Creates a deformed sphere of ore according to 3d perlin noise described by
1189
- `noise_params`. The maximum size of the blob is `clust_size`, and
1206
+ `noise_params`. The maximum size of the blob is `clust_size`, and
1190
1207
`clust_scarcity` has the same meaning as with the `scatter` type.
1191
1208
1192
1209
### `vein`
@@ -1195,8 +1212,8 @@ instances of 3d perlin noise with different seeds, both described by
1195
1212
`noise_params`.
1196
1213
1197
1214
`random_factor` varies the influence random chance has on placement of an ore
1198
- inside the vein, which is `1` by default. Note that modifying this parameter may
1199
- require adjusting `noise_threshold`.
1215
+ inside the vein, which is `1` by default. Note that modifying this parameter
1216
+ may require adjusting `noise_threshold`.
1200
1217
1201
1218
The parameters `clust_scarcity`, `clust_num_ores`, and `clust_size` are ignored
1202
1219
by this ore type.
@@ -1222,8 +1239,8 @@ computationally expensive than any other ore.
1222
1239
Creates a single undulating ore stratum that is continuous across mapchunk
1223
1240
borders and horizontally spans the world.
1224
1241
1225
- The 2D perlin noise described by `noise_params` defines the Y co-ordinate of the
1226
- stratum midpoint. The 2D perlin noise described by `np_stratum_thickness`
1242
+ The 2D perlin noise described by `noise_params` defines the Y co-ordinate of
1243
+ the stratum midpoint. The 2D perlin noise described by `np_stratum_thickness`
1227
1244
defines the stratum's vertical thickness (in units of nodes). Due to being
1228
1245
continuous across mapchunk borders the stratum's vertical thickness is
1229
1246
unlimited.
@@ -1234,8 +1251,8 @@ to y_max in a simple horizontal stratum.
1234
1251
A parameter `stratum_thickness` can be provided instead of the noise parameter
1235
1252
`np_stratum_thickness`, to create a constant thickness.
1236
1253
1237
- Leaving out one or both noise parameters makes the ore generation less intensive,
1238
- useful when adding multiple strata.
1254
+ Leaving out one or both noise parameters makes the ore generation less
1255
+ intensive, useful when adding multiple strata.
1239
1256
1240
1257
`y_min` and `y_max` define the limits of the ore generation and for performance
1241
1258
reasons should be set as close together as possible but without clipping the
@@ -1255,15 +1272,16 @@ Currently supported flags:
1255
1272
`puff_cliffs`, `puff_additive_composition`.
1256
1273
1257
1274
### `puff_cliffs`
1258
- If set, puff ore generation will not taper down large differences in displacement
1259
- when approaching the edge of a puff. This flag has no effect for ore types other
1260
- than `puff`.
1275
+ If set, puff ore generation will not taper down large differences in
1276
+ displacement when approaching the edge of a puff. This flag has no effect for
1277
+ ore types other than `puff`.
1261
1278
1262
1279
### `puff_additive_composition`
1263
- By default, when noise described by `np_puff_top` or `np_puff_bottom` results in a
1264
- negative displacement, the sub-column at that point is not generated. With this
1265
- attribute set, puff ore generation will instead generate the absolute difference in
1266
- noise displacement values. This flag has no effect for ore types other than `puff`.
1280
+ By default, when noise described by `np_puff_top` or `np_puff_bottom` results
1281
+ in a negative displacement, the sub-column at that point is not generated. With
1282
+ this attribute set, puff ore generation will instead generate the absolute
1283
+ difference in noise displacement values. This flag has no effect for ore types
1284
+ other than `puff`.
1267
1285
1268
1286
Decoration types
1269
1287
----------------
@@ -1290,22 +1308,28 @@ A schematic specifier identifies a schematic by either a filename to a
1290
1308
Minetest Schematic file (`.mts`) or through raw data supplied through Lua,
1291
1309
in the form of a table. This table specifies the following fields:
1292
1310
1293
- * The `size` field is a 3D vector containing the dimensions of the provided schematic. (required)
1294
- * The `yslice_prob` field is a table of {ypos, prob} which sets the `ypos`th vertical slice
1295
- of the schematic to have a `prob / 256 * 100` chance of occurring. (default: 255)
1311
+ * The `size` field is a 3D vector containing the dimensions of the provided
1312
+ schematic. (required)
1313
+ * The `yslice_prob` field is a table of {ypos, prob} which sets the `ypos`th
1314
+ vertical slice of the schematic to have a `prob / 256 * 100` chance of
1315
+ occurring. (default: 255)
1296
1316
* The `data` field is a flat table of MapNode tables making up the schematic,
1297
1317
in the order of `[z [y [x]]]`. (required)
1298
1318
Each MapNode table contains:
1299
1319
* `name`: the name of the map node to place (required)
1300
- * `prob` (alias `param1`): the probability of this node being placed (default: 255)
1301
- * `param2`: the raw param2 value of the node being placed onto the map (default: 0)
1302
- * `force_place`: boolean representing if the node should forcibly overwrite any
1303
- previous contents (default: false)
1320
+ * `prob` (alias `param1`): the probability of this node being placed
1321
+ (default: 255)
1322
+ * `param2`: the raw param2 value of the node being placed onto the map
1323
+ (default: 0)
1324
+ * `force_place`: boolean representing if the node should forcibly overwrite
1325
+ any previous contents (default: false)
1304
1326
1305
1327
About probability values:
1306
1328
1307
- * A probability value of `0` or `1` means that node will never appear (0% chance).
1308
- * A probability value of `254` or `255` means the node will always appear (100% chance).
1329
+ * A probability value of `0` or `1` means that node will never appear
1330
+ (0% chance).
1331
+ * A probability value of `254` or `255` means the node will always appear
1332
+ (100% chance).
1309
1333
* If the probability value `p` is greater than `1`, then there is a
1310
1334
`(p / 256 * 100)` percent chance that node will appear when the schematic is
1311
1335
placed on the map.
@@ -1321,7 +1345,8 @@ Currently supported flags: `place_center_x`, `place_center_y`, `place_center_z`,
1321
1345
* `place_center_x`: Placement of this decoration is centered along the X axis.
1322
1346
* `place_center_y`: Placement of this decoration is centered along the Y axis.
1323
1347
* `place_center_z`: Placement of this decoration is centered along the Z axis.
1324
- * `force_placement`: Schematic nodes other than "ignore" will replace existing nodes.
1348
+ * `force_placement`: Schematic nodes other than "ignore" will replace existing
1349
+ nodes.
1325
1350
1326
1351
1327
1352
HUD element types
0 commit comments