I separated the ores from rocks, to give freedom of choose to users.
[rocks.git] / mineral / skarn.lua
blob1feacd6c51a21435f3bee3cdaf2b913e2ddbd38e
1 --
2 -- Skarn deposit
3 --
5 local function GetNoiseParams()
6 return {
7 scale=1, offset=0, seed=rocksl.GetNextSeed(), octaves=1, persist=1,
8 spread={ x=100, y=100, z=100 } }
9 end
11 -- ores have to be redefined for skarn background
13 -- Chalcopyrite
14 minetest.register_node( "mineral:skarn_chalcopyrite", {
15 description = S("Chalcopyrite"),
16 tiles = { "rocks_Skarn.png^mineral_Chalcopyrite.png" },
17 groups = {cracky=3},
18 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
20 -- Malachyte
21 minetest.register_node( "mineral:skarn_malachyte", {
22 description = S("Malachyte"),
23 tiles = { "rocks_Skarn.png^mineral_Chalcopyrite.png" },
24 groups = {cracky=3},
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",
32 clust_size=3,
33 clust_num_ores=12,
34 clust_scarcity=4^3,
35 noise_treshold=0.333,
36 noise_params=mineral.noise.Copper
38 minetest.register_ore({
39 wherein="rocks:skarn",
40 ore="mineral:skarn_malachyte",
41 clust_size=3,
42 clust_num_ores=11,
43 clust_scarcity=4^3,
44 noise_treshold=0.333,
45 noise_params=mineral.noise.Copper
48 -- Sphalerite
49 minetest.register_node( "mineral:skarn_sphalerite", {
50 description = S("Sphalerite"),
51 tiles = { "rocks_Skarn.png^mineral_sphalerite.png" },
52 groups = {cracky=3},
53 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
55 -- Galena
56 minetest.register_node( "mineral:skarn_galena", {
57 description = S("Galena"),
58 tiles = { "rocks_Skarn.png^mineral_galena.png" },
59 groups = {cracky=3},
60 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
62 -- Pb Zn skarn mix
63 mineral.noise.PbZn=GetNoiseParams()
64 minetest.register_ore({
65 wherein="rocks:skarn",
66 ore="mineral:skarn_sphalerite",
67 clust_size=3,
68 clust_num_ores=9,
69 clust_scarcity=4^3,
70 noise_treshold=0.38,
71 noise_params=mineral.noise.PbZn
73 minetest.register_ore({
74 wherein="rocks:skarn",
75 ore="mineral:skarn_galena",
76 clust_size=3,
77 clust_num_ores=10,
78 clust_scarcity=4^3,
79 noise_treshold=0.38,
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 },
88 -- Magnetite
89 minetest.register_node( "mineral:skarn_magnetite", {
90 description = S("Magnetite"),
91 tiles = { "rocks_Skarn.png^mineral_Magnetite.png" },
92 groups = {cracky=3},
93 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
95 -- Fe skarn mix
96 mineral.noise.Iron=GetNoiseParams()
97 minetest.register_ore({
98 wherein="rocks:skarn",
99 ore="mineral:skarn_magnetite",
100 clust_size=3,
101 clust_num_ores=13,
102 clust_scarcity=4^3,
103 noise_treshold=0.3,
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 },
111 -- Magnesite
112 minetest.register_node( "mineral:skarn_magnesite", {
113 description = S("Magnesite"),
114 tiles = { "rocks_Skarn.png^mineral_Magnesite.png" },
115 groups = {cracky=3},
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 },
132 -- ~ Tomas Brod