Replace reference to default:stone in biomes to mapgen_stone.
[rocks.git] / skarn.lua
blobfd28cc1f0154b036e3dbc4882fcb97bf6485ddc2
1 --
2 -- Skarn deposit
3 --
5 local CommonRarity=0.02 --too high... should be like 0.013
6 local CommonRadius=10
7 local CommonWherein={ "rocks:granite", "rocks:limestone" }
9 minetest.register_node( "rocks:skarn", {
10 description = S("Skarn"),
11 tiles = { "rocks_Skarn.png" },
12 groups = {cracky=3, stone=1},
13 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
16 -- ores have to be redefined for skarn background
18 -- Todo:
19 -- There is also a chance of isolated lapis crystals, Gold
20 -- Molybdenite with Cu
21 -- wollastonite with Fe
22 -- enrichments: scheelite and wollastonite
24 -- Chalcopyrite
25 minetest.register_node( "rocks:skarn_chalcopyrite", {
26 description = S("Chalcopyrite"),
27 tiles = { "rocks_Skarn.png^rocks_Chalcopyrite.png" },
28 groups = {cracky=3},
29 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
31 -- Malachyte
32 minetest.register_node( "rocks:skarn_malachyte", {
33 description = S("Malachyte"),
34 tiles = { "rocks_Skarn.png^rocks_Chalcopyrite.png" },
35 groups = {cracky=3},
36 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
38 -- Chalcopyrite/Malachyte skarn mix
39 rocks.register_vein("rocks:skarn",{
40 wherein=CommonWherein,
41 miny=-160, maxy=20,
42 radius={ average=CommonRadius, amplitude=3, frequency=5 },
43 density=80, rarity=CommonRarity,
44 ores={
45 -- marble and hornfels, as well as unchanged limestone.
46 -- { ore="rocks:marble", percent=10 },
47 -- { ore="rocks:hornfels", percent=10 },
48 { ore="rocks:skarn_chalcopyrite", percent=30 },
49 { ore="rocks:skarn_malachyte", percent=15 },
50 -- { ore="rocks:skarn_molybdenite", percent=5 },
54 -- Sphalerite
55 minetest.register_node( "rocks:skarn_sphalerite", {
56 description = S("Sphalerite"),
57 tiles = { "rocks_Skarn.png^rocks_sphalerite.png" },
58 groups = {cracky=3},
59 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
61 -- Galena
62 minetest.register_node( "rocks:skarn_galena", {
63 description = S("Galena"),
64 tiles = { "rocks_Skarn.png^rocks_galena.png" },
65 groups = {cracky=3},
66 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
68 -- Pb Zn skarn mix
69 rocks.register_vein("rocks:skarn",{
70 wherein=CommonWherein,
71 miny=-160, maxy=20,
72 radius={ average=CommonRadius, amplitude=3, frequency=5 },
73 density=80, rarity=CommonRarity,
74 ores={
75 -- marble and hornfels, as well as unchanged limestone.
76 -- { ore="rocks:marble", percent=10 },
77 -- { ore="rocks:hornfels", percent=10 },
78 { ore="rocks:skarn_galena", percent=25 },
79 { ore="rocks:skarn_sphalerite", percent=25 },
83 -- Magnetite
84 minetest.register_node( "rocks:skarn_magnetite", {
85 description = S("Magnetite"),
86 tiles = { "rocks_Skarn.png^rocks_Magnetite.png" },
87 groups = {cracky=3},
88 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
90 -- Fe skarn mix
91 rocks.register_vein("rocks:skarn",{
92 wherein=CommonWherein,
93 miny=-160, maxy=20,
94 radius={ average=CommonRadius, amplitude=3, frequency=5 },
95 density=80, rarity=CommonRarity,
96 ores={
97 -- marble and hornfels, as well as unchanged limestone.
98 -- { ore="rocks:marble", percent=10 },
99 -- { ore="rocks:hornfels", percent=10 },
100 { ore="rocks:skarn_magnetite", percent=40 },
104 -- Magnesite
105 minetest.register_node( "rocks:skarn_magnesite", {
106 description = S("Magnesite"),
107 tiles = { "rocks_Skarn.png^rocks_Magnesite.png" },
108 groups = {cracky=3},
109 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
111 -- Vermiculite (fixme: move to CommonRocks)
112 minetest.register_node( "rocks:vermiculite", {
113 description = S("Vermiculite"),
114 tiles = { "rocks_Vermiculite.png" },
115 groups = {crumbly=3},
116 is_ground_content = true, sounds = default.node_sound_stone_defaults(),
118 -- magnesite/vermiculite skarn mix
119 rocks.register_vein("rocks:skarn",{
120 wherein=CommonWherein,
121 miny=-160, maxy=20,
122 radius={ average=CommonRadius, amplitude=3, frequency=5 },
123 density=80, rarity=CommonRarity,
124 ores={
125 -- marble and hornfels, as well as unchanged limestone.
126 -- { ore="rocks:marble", percent=10 },
127 -- { ore="rocks:hornfels", percent=10 },
128 { ore="rocks:skarn_magnesite", percent=30 },
129 { ore="rocks:vermiculite", percent=20 },
133 -- ~ Tomas Brod