@@ -393,7 +393,7 @@ All default ores are of the uniformly-distributed scatter type.
393
393
394
394
- scatter
395
395
Randomly chooses a location and generates a cluster of ore.
396
- If noise_params is specified, the ore will be placed if the 3d perlin noise at
396
+ If noise_params is specified, the ore will be placed if the 3d perlin noise at
397
397
that point is greater than the noise_threshhold, giving the ability to create a non-equal
398
398
distribution of ore.
399
399
- sheet
@@ -439,7 +439,7 @@ or through raw data supplied through Lua, in the form of a table. This table mu
439
439
- The 'data' field is a flat table of MapNodes making up the schematic, in the order of [z [y [x]]].
440
440
Important: The default value for param1 in MapNodes here is 255, which represents "always place".
441
441
442
- In the bulk MapNode data, param1, instead of the typical light values, instead represents the
442
+ In the bulk MapNode data, param1, instead of the typical light values, instead represents the
443
443
probability of that node appearing in the structure.
444
444
When passed to minetest.create_schematic, probability is an integer value ranging from 0 to 255:
445
445
- A probability value of 0 means that node will never appear (0% chance).
@@ -542,7 +542,7 @@ eg. 'default:pick_wood 21323'
542
542
eg. 'default:apple'
543
543
544
544
Table format:
545
- eg. {name="default:dirt", count=5, wear=0, metadata=""}
545
+ eg. {name="default:dirt", count=5, wear=0, metadata=""}
546
546
^ 5 dirt nodes
547
547
eg. {name="default:pick_wood", count=1, wear=21323, metadata=""}
548
548
^ a wooden pick about 1/3 weared out
@@ -1102,7 +1102,7 @@ tablecolumns[<type 1>,<opt 1a>,<opt 1b>,...;<type 2>,<opt 2a>,<opt 2b>;...]
1102
1102
^^ span=<value> number of following columns to affect (default infinite)
1103
1103
1104
1104
Note: do NOT use a element name starting with "key_" those names are reserved to
1105
- pass key press events to formspec!
1105
+ pass key press events to formspec!
1106
1106
1107
1107
Inventory location:
1108
1108
@@ -1458,7 +1458,7 @@ minetest.get_all_craft_recipes(query item) -> table or nil
1458
1458
^ returns indexed table with all registered recipes for query item (node)
1459
1459
or nil if no recipe was found
1460
1460
recipe entry table:
1461
- {
1461
+ {
1462
1462
method = 'normal' or 'cooking' or 'fuel'
1463
1463
width = 0-3, 0 means shapeless recipe
1464
1464
items = indexed [1-9] table with recipe items
@@ -1532,6 +1532,7 @@ minetest.get_ban_list() -> ban list (same as minetest.get_ban_description(""))
1532
1532
minetest.get_ban_description(ip_or_name) -> ban description (string)
1533
1533
minetest.ban_player(name) -> ban a player
1534
1534
minetest.unban_player_or_ip(name) -> unban player or IP address
1535
+ minetest.kick_player(name, [reason]) -> disconnect a player with a optional reason
1535
1536
1536
1537
Particles:
1537
1538
minetest.add_particle(particle definition)
@@ -1918,7 +1919,7 @@ methods:
1918
1919
^ returns raw node data is in the form of an array of node content ids
1919
1920
- set_data(data): Sets the data contents of the VoxelManip object
1920
1921
- update_map(): Update map after writing chunk back to map.
1921
- ^ To be used only by VoxelManip objects created by the mod itself; not a VoxelManip that was
1922
+ ^ To be used only by VoxelManip objects created by the mod itself; not a VoxelManip that was
1922
1923
^ retrieved from minetest.get_mapgen_object
1923
1924
- set_lighting(light, p1, p2): Set the lighting within the VoxelManip to a uniform value
1924
1925
^ light is a table, {day=<0...15>, night=<0...15>}
@@ -1968,31 +1969,31 @@ methods:
1968
1969
1969
1970
Mapgen objects
1970
1971
---------------
1971
- A mapgen object is a construct used in map generation. Mapgen objects can be used by an on_generate
1972
- callback to speed up operations by avoiding unnecessary recalculations; these can be retrieved using the
1973
- minetest.get_mapgen_object() function. If the requested Mapgen object is unavailable, or
1972
+ A mapgen object is a construct used in map generation. Mapgen objects can be used by an on_generate
1973
+ callback to speed up operations by avoiding unnecessary recalculations; these can be retrieved using the
1974
+ minetest.get_mapgen_object() function. If the requested Mapgen object is unavailable, or
1974
1975
get_mapgen_object() was called outside of an on_generate() callback, nil is returned.
1975
1976
1976
1977
The following Mapgen objects are currently available:
1977
1978
1978
1979
- voxelmanip
1979
- This returns three values; the VoxelManip object to be used, minimum and maximum emerged position, in that
1980
+ This returns three values; the VoxelManip object to be used, minimum and maximum emerged position, in that
1980
1981
order. All mapgens support this object.
1981
1982
1982
1983
- heightmap
1983
- Returns an array containing the y coordinates of the ground levels of nodes in the most recently
1984
+ Returns an array containing the y coordinates of the ground levels of nodes in the most recently
1984
1985
generated chunk by the current mapgen.
1985
1986
1986
1987
- biomemap
1987
- Returns an array containing the biome IDs of nodes in the most recently generated chunk by the
1988
+ Returns an array containing the biome IDs of nodes in the most recently generated chunk by the
1988
1989
current mapgen.
1989
1990
1990
1991
- heatmap
1991
- Returns an array containing the temperature values of nodes in the most recently generated chunk by
1992
+ Returns an array containing the temperature values of nodes in the most recently generated chunk by
1992
1993
the current mapgen.
1993
1994
1994
1995
- humiditymap
1995
- Returns an array containing the humidity values of nodes in the most recently generated chunk by the
1996
+ Returns an array containing the humidity values of nodes in the most recently generated chunk by the
1996
1997
current mapgen.
1997
1998
1998
1999
- gennotify
0 commit comments