summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-28 21:17:12 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-28 21:17:12 -0500
commit61dfa912f5f37f435e41b3c7d8cdb6244562e597 (patch)
treeb3cde6151a714d3cee7d0646aac1936f89410eb3 /doc
parent900fa26965a2fbdf2b9de74e2d680c083de91482 (diff)
downloadminetest-61dfa912f5f37f435e41b3c7d8cdb6244562e597.tar.gz
minetest-61dfa912f5f37f435e41b3c7d8cdb6244562e597.tar.bz2
minetest-61dfa912f5f37f435e41b3c7d8cdb6244562e597.zip
Ore: Add Vein ore type
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt28
1 files changed, 25 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 8f491f5a8..7474c2bf4 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -563,9 +563,27 @@ All default ores are of the uniformly-distributed scatter type.
clust_scarcity and clust_num_ores are ignored.
This is essentially an improved version of the so-called "stratus" ore seen in some unofficial mods.
- blob
- Creates a roundish blob of ore according to 3d perlin noise described by noise_params. The maximum
- size of the blob is clust_size, and clust_scarcity has the same meaning as with scatter type.
-
+ Creates a deformed sphere blobs of ore according to 3d perlin noise described by noise_params. The
+ maximum size of the blob is clust_size, and clust_scarcity has the same meaning as with scatter type.
+ - vein
+ Creates veins of ore varying in density by according to the intersection of two instances 3d perlin
+ noise with diffferent seeds both described by noise_params. random_factor varies the influence random
+ chance has on placement of an ore inside the vein, which is 1 by default. Note that modifying this
+ parameter may require adjusting noise_threshhold. The parameters clust_scarcity, clust_num_ores, and
+ clust_size are ignored by this ore type. This ore type is difficult to control since it is sensitive
+ to small changes. The following is a decent set of parameters to work from:
+ noise_params = {
+ offset = 0,
+ scale = 3,
+ spread = {x=200, y=200, z=200},
+ seed = 5390,
+ octaves = 4,
+ persist = 0.5,
+ flags = "eased",
+ },
+ noise_threshhold = 1.6
+ WARNING: Use this ore type *very* sparingly since it is ~200x more computationally expensive than
+ any other ore.
Ore attributes
-------------------
@@ -2717,6 +2735,10 @@ Ore definition (register_ore)
noise_params = {offset=0, scale=1, spread={x=100, y=100, z=100}, seed=23, octaves=3, persist=0.70}
^ NoiseParams structure describing the perlin noise used for ore distribution.
^ Needed for sheet ore_type. Omit from scatter ore_type for a uniform ore distribution
+ random_factor = 1.0,
+ ^ Multiplier of the randomness contribution to the noise value at any given point to
+ ^ decide if ore should be placed. Set to 0 for solid veins. This parameter is only valid
+ ^ for ore_type == "vein".
}
Decoration definition (register_decoration)