5 local function GetNoiseParams()
7 scale
=1, offset
=0, seed
=rocksl
.GetNextSeed(), octaves
=1, persist
=1,
8 spread
={ x
=100, y
=100, z
=100 } }
11 -- ores have to be redefined for skarn background
14 minetest
.register_node( "mineral:skarn_chalcopyrite", {
15 description
= S("Chalcopyrite"),
16 tiles
= { "rocks_Skarn.png^mineral_Chalcopyrite.png" },
18 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
21 minetest
.register_node( "mineral:skarn_malachyte", {
22 description
= S("Malachyte"),
23 tiles
= { "rocks_Skarn.png^mineral_Chalcopyrite.png" },
25 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
27 -- Chalcopyrite/Malachyte skarn mix
28 mineral
.noise
.Copper
=GetNoiseParams()
29 minetest
.register_ore({
30 wherein
="rocks:skarn",
31 ore
="mineral:skarn_chalcopyrite",
36 noise_params
=mineral
.noise
.Copper
38 minetest
.register_ore({
39 wherein
="rocks:skarn",
40 ore
="mineral:skarn_malachyte",
45 noise_params
=mineral
.noise
.Copper
49 minetest
.register_node( "mineral:skarn_sphalerite", {
50 description
= S("Sphalerite"),
51 tiles
= { "rocks_Skarn.png^mineral_sphalerite.png" },
53 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
56 minetest
.register_node( "mineral:skarn_galena", {
57 description
= S("Galena"),
58 tiles
= { "rocks_Skarn.png^mineral_galena.png" },
60 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
63 mineral
.noise
.PbZn
=GetNoiseParams()
64 minetest
.register_ore({
65 wherein
="rocks:skarn",
66 ore
="mineral:skarn_sphalerite",
71 noise_params
=mineral
.noise
.PbZn
73 minetest
.register_ore({
74 wherein
="rocks:skarn",
75 ore
="mineral:skarn_galena",
80 noise_params
=mineral
.noise
.PbZn
82 -- marble and hornfels, as well as unchanged limestone.
83 -- { ore="rocks:marble", percent=10 },
84 -- { ore="rocks:hornfels", percent=10 },
85 -- { ore="rocks:skarn_galena", percent=25 },
86 -- { ore="rocks:skarn_sphalerite", percent=25 },
89 minetest
.register_node( "mineral:skarn_magnetite", {
90 description
= S("Magnetite"),
91 tiles
= { "rocks_Skarn.png^mineral_Magnetite.png" },
93 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
96 mineral
.noise
.Iron
=GetNoiseParams()
97 minetest
.register_ore({
98 wherein
="rocks:skarn",
99 ore
="mineral:skarn_magnetite",
104 noise_params
=mineral
.noise
.Iron
106 -- marble and hornfels, as well as unchanged limestone.
107 -- { ore="rocks:marble", percent=10 },
108 -- { ore="rocks:hornfels", percent=10 },
109 -- { ore="rocks:skarn_magnetite", percent=40 },
112 minetest
.register_node( "mineral:skarn_magnesite", {
113 description
= S("Magnesite"),
114 tiles
= { "rocks_Skarn.png^mineral_Magnesite.png" },
116 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
118 -- Vermiculite (fixme: move to CommonRocks)
119 minetest
.register_node( "mineral:vermiculite", {
120 description
= S("Vermiculite"),
121 tiles
= { "mineral_Vermiculite.png" },
122 groups
= {crumbly
=3},
123 is_ground_content
= true, sounds
= default
.node_sound_stone_defaults(),
125 -- magnesite/vermiculite skarn mix
126 -- marble and hornfels, as well as unchanged limestone.
127 -- { ore="rocks:marble", percent=10 },
128 -- { ore="rocks:hornfels", percent=10 },
129 -- { ore="rocks:skarn_magnesite", percent=30 },
130 -- { ore="rocks:vermiculite", percent=20 },