Skip to content

Commit

Permalink
Document minetest.generate_biome_dust
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelysam committed Jan 14, 2024
1 parent 24a029f commit 780aff1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6079,8 +6079,15 @@ Environment access
* The initial data in `vm` may only contain air, stone, water and
river water nodes (see [Essential aliases]). Other nodes are ignored.
* Also populates the mapgen objects `heatmap`, `humiditymap` and `biomemap`
(see [Mapgen objects]), so that `minetest.generate_decorations` and
`minetest.generate_ores` will take them into account.
(see [Mapgen objects]), so that `minetest.generate_decorations`,
`minetest.generate_ores` and `minetest.generate_biome_dust` will take
them into account.
* `minetest.generate_biome_dust(vm, pos1, pos2)`
* Generate the `node_dust` of the biome (see [Biome definition]) within the
VoxelManip `vm` and in the area from `pos1` to `pos2`.
* `pos1` and `pos2` should have the same X and Z size than mapgen chunks.
* Reads the mapgen object `biomemap` (see [Mapgen Objects]), that must be
already computed (ie. using `minetest.generate_biomes`)
* `minetest.clear_objects([options])`
* Clear all objects in the environment
* Takes an optional table as an argument with the field `mode`.
Expand Down

0 comments on commit 780aff1

Please sign in to comment.