@@ -2816,58 +2816,93 @@ and `minetest.auth_reload` call the authentication handler.
2816
2816
* Return voxel manipulator object.
2817
2817
* Loads the manipulator from the map if positions are passed.
2818
2818
* `minetest.set_gen_notify(flags, {deco_ids})`
2819
- * Set the types of on-generate notifications that should be collected
2820
- * `flags` is a flag field with the available flags: `dungeon`, `temple`, `cave_begin`,
2821
- `cave_end`, `large_cave_begin`, `large_cave_end`, `decoration`
2822
- * The second parameter is a list of IDS of decorations which notification is requested for
2823
- * `get_gen_notify()`: returns a flagstring and a table with the `deco_id`s
2819
+ * Set the types of on-generate notifications that should be collected.
2820
+ * `flags` is a flag field with the available flags:
2821
+ * dungeon
2822
+ * temple
2823
+ * cave_begin
2824
+ * cave_end
2825
+ * large_cave_begin
2826
+ * large_cave_end
2827
+ * decoration
2828
+ * The second parameter is a list of IDS of decorations which notification
2829
+ is requested for.
2830
+ * `get_gen_notify()`
2831
+ * Returns a flagstring and a table with the `deco_id`s.
2824
2832
* `minetest.get_mapgen_object(objectname)`
2825
2833
* Return requested mapgen object if available (see "Mapgen objects")
2834
+ * `minetest.get_heat(pos)`
2835
+ * Returns the heat at the position, or `nil` on failure.
2836
+ * `minetest.get_humidity(pos)`
2837
+ * Returns the humidity at the position, or `nil` on failure.
2838
+ * `minetest.get_biome_data(pos)`
2839
+ * Returns a table containing:
2840
+ * `biome` the biome id of the biome at that position
2841
+ * `heat` the heat at the position
2842
+ * `humidity` the humidity at the position
2843
+ * Or returns `nil` on failure.
2826
2844
* `minetest.get_biome_id(biome_name)`
2827
- * Returns the biome id, as used in the biomemap Mapgen object, for a
2828
- given biome_name string.
2829
- * `minetest.get_mapgen_params()` Returns mapgen parameters, a table containing
2830
- `mgname`, `seed`, `chunksize`, `water_level`, and `flags`.
2831
- * Deprecated: use `minetest.get_mapgen_setting(name)` instead
2845
+ * Returns the biome id, as used in the biomemap Mapgen object and returned
2846
+ by `minetest.get_biome_data(pos)`, for a given biome_name string.
2847
+ * `minetest.get_mapgen_params()`
2848
+ * Deprecated: use `minetest.get_mapgen_setting(name)` instead.
2849
+ * Returns a table containing:
2850
+ * `mgname`
2851
+ * `seed`
2852
+ * `chunksize`
2853
+ * `water_level`
2854
+ * `flags`
2832
2855
* `minetest.set_mapgen_params(MapgenParams)`
2833
- * Deprecated: use `minetest.set_mapgen_setting(name, value, override)` instead
2834
- * Set map generation parameters
2835
- * Function cannot be called after the registration period; only initialization
2836
- and `on_mapgen_init`
2837
- * Takes a table as an argument with the fields `mgname`, `seed`, `water_level`,
2838
- and `flags`.
2839
- * Leave field unset to leave that parameter unchanged
2840
- * `flags` contains a comma-delimited string of flags to set,
2841
- or if the prefix `"no"` is attached, clears instead.
2842
- * `flags` is in the same format and has the same options as `mg_flags` in `minetest.conf`
2856
+ * Deprecated: use `minetest.set_mapgen_setting(name, value, override)`
2857
+ instead.
2858
+ * Set map generation parameters.
2859
+ * Function cannot be called after the registration period; only
2860
+ initialization and `on_mapgen_init`.
2861
+ * Takes a table as an argument with the fields:
2862
+ * `mgname`
2863
+ * `seed`
2864
+ * `chunksize`
2865
+ * `water_level`
2866
+ * `flags`
2867
+ * Leave field unset to leave that parameter unchanged.
2868
+ * `flags` contains a comma-delimited string of flags to set, or if the
2869
+ prefix `"no"` is attached, clears instead.
2870
+ * `flags` is in the same format and has the same options as `mg_flags` in
2871
+ `minetest.conf`.
2843
2872
* `minetest.get_mapgen_setting(name)`
2844
- * Gets the *active* mapgen setting (or nil if none exists) in string format with the following
2845
- order of precedence:
2873
+ * Gets the *active* mapgen setting (or nil if none exists) in string
2874
+ format with the following order of precedence:
2846
2875
1) Settings loaded from map_meta.txt or overrides set during mod execution
2847
2876
2) Settings set by mods without a metafile override
2848
2877
3) Settings explicitly set in the user config file, minetest.conf
2849
2878
4) Settings set as the user config default
2850
2879
* `minetest.get_mapgen_setting_noiseparams(name)`
2851
- * Same as above, but returns the value as a NoiseParams table if the setting `name` exists
2852
- and is a valid NoiseParams
2880
+ * Same as above, but returns the value as a NoiseParams table if the
2881
+ setting `name` exists and is a valid NoiseParams.
2853
2882
* `minetest.set_mapgen_setting(name, value, [override_meta])`
2854
- * Sets a mapgen param to `value`, and will take effect if the corresponding mapgen setting
2855
- is not already present in map_meta.txt.
2856
- * `override_meta` is an optional boolean (default: `false`). If this is set to true,
2857
- the setting will become the active setting regardless of the map metafile contents.
2858
- * Note: to set the seed, use `"seed"`, not `"fixed_map_seed"`
2883
+ * Sets a mapgen param to `value`, and will take effect if the corresponding
2884
+ mapgen setting is not already present in map_meta.txt.
2885
+ * `override_meta` is an optional boolean (default: `false`). If this is set
2886
+ to true, the setting will become the active setting regardless of the map
2887
+ metafile contents.
2888
+ * Note: to set the seed, use `"seed"`, not `"fixed_map_seed"`.
2859
2889
* `minetest.set_mapgen_setting_noiseparams(name, value, [override_meta])`
2860
- * Same as above, except value is a NoiseParams table.
2890
+ * Same as above, except value is a NoiseParams table.
2861
2891
* `minetest.set_noiseparams(name, noiseparams, set_default)`
2862
- * Sets the noiseparams setting of `name` to the noiseparams table specified in `noiseparams`.
2863
- * `set_default` is an optional boolean (default: `true`) that specifies whether the setting
2864
- should be applied to the default config or current active config
2865
- * `minetest.get_noiseparams(name)`: returns a table of the noiseparams for name
2892
+ * Sets the noiseparams setting of `name` to the noiseparams table specified
2893
+ in `noiseparams`.
2894
+ * `set_default` is an optional boolean (default: `true`) that specifies
2895
+ whether the setting should be applied to the default config or current
2896
+ active config.
2897
+ * `minetest.get_noiseparams(name)`
2898
+ * Returns a table of the noiseparams for name.
2866
2899
* `minetest.generate_ores(vm, pos1, pos2)`
2867
- * Generate all registered ores within the VoxelManip `vm` and in the area from `pos1` to `pos2`.
2900
+ * Generate all registered ores within the VoxelManip `vm` and in the area
2901
+ from `pos1` to `pos2`.
2868
2902
* `pos1` and `pos2` are optional and default to mapchunk minp and maxp.
2869
2903
* `minetest.generate_decorations(vm, pos1, pos2)`
2870
- * Generate all registered decorations within the VoxelManip `vm` and in the area from `pos1` to `pos2`.
2904
+ * Generate all registered decorations within the VoxelManip `vm` and in the
2905
+ area from `pos1` to `pos2`.
2871
2906
* `pos1` and `pos2` are optional and default to mapchunk minp and maxp.
2872
2907
* `minetest.clear_objects([options])`
2873
2908
* Clear all objects in the environment
0 commit comments