@@ -3250,9 +3250,9 @@ For this parameter you can randomly choose any whole number. Usually it is
3250
3250
preferable for this to be different from other seeds, but sometimes it is useful
3251
3251
to be able to create identical noise patterns.
3252
3252
3253
- When used in mapgen this is actually a ' seed offset', it is added to the
3254
- 'world seed' to create the seed used by the noise, to ensure the noise has a
3255
- different pattern in different worlds .
3253
+ In some noise APIs the world seed is added to the seed specified in noise
3254
+ parameters. This is done to make the resulting noise pattern vary in different
3255
+ worlds, and be 'world-specific' .
3256
3256
3257
3257
### `octaves`
3258
3258
@@ -4649,8 +4649,11 @@ Environment access
4649
4649
* Return value: Table with all node positions with a node air above
4650
4650
* Area volume is limited to 4,096,000 nodes
4651
4651
* `minetest.get_perlin(noiseparams)`
4652
+ * Return world-specific perlin noise.
4653
+ * The actual seed used is the noiseparams seed plus the world seed.
4652
4654
* `minetest.get_perlin(seeddiff, octaves, persistence, spread)`
4653
- * Return world-specific perlin noise (`int(worldseed)+seeddiff`)
4655
+ * Deprecated: use `minetest.get_perlin(noiseparams)` instead.
4656
+ * Return world-specific perlin noise.
4654
4657
* `minetest.get_voxel_manip([pos1, pos2])`
4655
4658
* Return voxel manipulator object.
4656
4659
* Loads the manipulator from the map if positions are passed.
@@ -6207,10 +6210,15 @@ It can be created via `PcgRandom(seed)` or `PcgRandom(seed, sequence)`.
6207
6210
-------------
6208
6211
6209
6212
A perlin noise generator.
6210
- It can be created via `PerlinNoise(seed, octaves, persistence, spread)`
6211
- or `PerlinNoise(noiseparams)`.
6212
- Alternatively with `minetest.get_perlin(seeddiff, octaves, persistence, spread)`
6213
- or `minetest.get_perlin(noiseparams)`.
6213
+ It can be created via `PerlinNoise()` or `minetest.get_perlin()`.
6214
+ For `minetest.get_perlin()`, the actual seed used is the noiseparams seed
6215
+ plus the world seed, to create world-specific noise.
6216
+
6217
+ `PerlinNoise(noiseparams)`
6218
+ `PerlinNoise(seed, octaves, persistence, spread)` (Deprecated).
6219
+
6220
+ `minetest.get_perlin(noiseparams)`
6221
+ `minetest.get_perlin(seeddiff, octaves, persistence, spread)` (Deprecated).
6214
6222
6215
6223
### Methods
6216
6224
@@ -6224,6 +6232,8 @@ A fast, bulk perlin noise generator.
6224
6232
6225
6233
It can be created via `PerlinNoiseMap(noiseparams, size)` or
6226
6234
`minetest.get_perlin_map(noiseparams, size)`.
6235
+ For `minetest.get_perlin_map()`, the actual seed used is the noiseparams seed
6236
+ plus the world seed, to create world-specific noise.
6227
6237
6228
6238
Format of `size` is `{x=dimx, y=dimy, z=dimz}`. The `z` component is omitted
6229
6239
for 2D noise, and it must be must be larger than 1 for 3D noise (otherwise
0 commit comments