5 -- Basalt Ex/Mafic hard same as diorite, byt limit=0.5
6 minetest
.register_node( "rocks:basalt", {
7 description
= S("Basalt"),
8 tiles
= { "rocks_Basalt.png" },
9 groups
= {cracky
=3, stone
=1},
10 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
12 minetest
.register_alias("mapgen_stone", "rocks:basalt")
14 -- ^ does not work. Seems we can not overwrite an alias.
15 -- If the alias in default/mapgen.lua is deleted, this works.
18 minetest
.register_node( "rocks:granite", {
19 description
= S("Granite"),
20 tiles
= { "rocks_Granite.png" },
21 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
22 groups
= {cracky
=3, stone
=1},
24 minetest
.register_node( "rocks:diorite", {
25 description
= S("Diorite"),
26 tiles
= { "rocks_Diorite.png" },
27 groups
= {cracky
=3, stone
=1},
28 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
30 minetest
.register_node( "rocks:gabbro", {
31 description
= S("Gabbro"),
32 tiles
= { "rocks_Gabbro.png" },
33 groups
= {cracky
=3, stone
=1},
34 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
37 local reg
=function(name
,param
)
38 minetest
.register_ore({
40 wherein
= { "mapgen_stone" },
42 clust_scarcity
= 10^
3,
43 clust_num_ores
= 20^
3,
47 noise_treshhold
=param
.treshold
,
49 offset
= 0, scale
= 1, octaves
= 3, persist
= 0.5,
50 spread
= {x
=param
.spread
, y
=param
.height
, z
=param
.spread
},
51 seed
=rocksl
.GetNextSeed(),
55 rocks
.register_igneous_stratus
=reg
58 reg("rocks:granite", { spread
=40, height
=32, treshold
=0.06})
59 reg("rocks:diorite", { spread
=40, height
=32, treshold
=0.23})
60 reg("rocks:gabbro", { spread
=40, height
=32, treshold
=0.36})
64 local regv
=function(name
,param
)
65 minetest
.log("error","stub called, rocks.register_vein")
66 minetest
.register_ore({
68 wherein
= param
.wherein
,
70 clust_scarcity
= param
.rarity^
3,
75 noise_threshhold
= 0.5, --< determined experimentally
77 offset
= 1-param
.radius
.amplitude
, scale
= param
.radius
.amplitude
, octaves
= 3, persist
= 0.5,
78 spread
= {x
=param
.radius
.frequency
, y
=param
.radius
.frequency
, z
=param
.radius
.frequency
},
79 seed
=rocksl
.GetNextSeed(),
84 rocks
.register_vein
=regv
86 rocks
.register_vein("default:nyancat",{
87 wherein
={"rocks:granite", "air"},
89 radius
={ average
=10, amplitude
=0.1, frequency
=8 },
91 rarity
=70, -- this^3*mapblock_volume veins per mapblock
93 { ore
="default:sand", percent
=30 },
94 { ore
="default:dirt", percent
=30 },