1
0
mirror of git://repo.or.cz/rocks.git synced 2025-01-01 14:00:30 +01:00

Add Skarn deposits.

This commit is contained in:
Tomáš Brada 2015-04-10 21:21:51 +02:00
parent 450da72080
commit 0068977a3d
2 changed files with 129 additions and 0 deletions

View File

@ -21,6 +21,7 @@ local modpath=minetest.get_modpath(minetest.get_current_modname())
dofile(modpath.."/mapgen.lua")
dofile(modpath.."/sed.lua")
dofile(modpath.."/ign.lua")
dofile(modpath.."/skarn.lua")
minetest.register_on_mapgen_init(function(mapgen_params)
-- todo: disable caves and ores

128
skarn.lua Normal file
View File

@ -0,0 +1,128 @@
--
-- Skarn deposit
--
local CommonRarity=0.02
local CommonRadius=10
minetest.register_node( "rocks:skarn", {
description = S("Skarn"),
tiles = { "rocks_Skarn.png" },
groups = {cracky=3, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
-- ores have to be redefined for skarn background
-- There is also a chance of isolated lapis crystals
-- enrichments: scheelite and wollastonite -> in each vein
-- Chalcopyrite
minetest.register_node( "rocks:skarn_chalcopyrite", {
description = S("Chalcopyrite"),
tiles = { "rocks_Skarn.png^rocks_Chalcopyrite.png" },
groups = {cracky=3},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
-- Malachyte
minetest.register_node( "rocks:skarn_malachyte", {
description = S("Malachyte"),
tiles = { "rocks_Skarn.png^rocks_Chalcopyrite.png" },
groups = {cracky=3},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
-- Chalcopyrite/Malachyte skarn mix
rocks.register_vein("rocks:skarn",{
wherein="rocks:granite",
miny=-160, maxy=20,
radius={ average=CommonRadius, amplitude=3, frequency=5 },
density=80, rarity=CommonRarity,
ores={
-- marble and hornfels, as well as unchanged limestone.
-- { ore="rocks:marble", percent=10 },
-- { ore="rocks:hornfels", percent=10 },
{ ore="rocks:skarn_chalcopyrite", percent=30 },
{ ore="rocks:skarn_malachyte", percent=15 },
}
})
-- Sphalerite
minetest.register_node( "rocks:skarn_sphalerite", {
description = S("Sphalerite"),
tiles = { "rocks_Skarn.png^rocks_sphalerite.png" },
groups = {cracky=3},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
-- Galena
minetest.register_node( "rocks:skarn_galena", {
description = S("Galena"),
tiles = { "rocks_Skarn.png^rocks_galena.png" },
groups = {cracky=3},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
-- Pb Zn skarn mix
rocks.register_vein("rocks:skarn",{
wherein="rocks:granite",
miny=-160, maxy=20,
radius={ average=CommonRadius, amplitude=3, frequency=5 },
density=80, rarity=CommonRarity,
ores={
-- marble and hornfels, as well as unchanged limestone.
-- { ore="rocks:marble", percent=10 },
-- { ore="rocks:hornfels", percent=10 },
{ ore="rocks:skarn_galena", percent=25 },
{ ore="rocks:skarn_sphalerite", percent=25 },
}
})
-- Magnetite
minetest.register_node( "rocks:skarn_magnetite", {
description = S("Magnetite"),
tiles = { "rocks_Skarn.png^rocks_Magnetite.png" },
groups = {cracky=3},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
-- Fe skarn mix
rocks.register_vein("rocks:skarn",{
wherein="rocks:granite",
miny=-160, maxy=20,
radius={ average=CommonRadius, amplitude=3, frequency=5 },
density=80, rarity=CommonRarity,
ores={
-- marble and hornfels, as well as unchanged limestone.
-- { ore="rocks:marble", percent=10 },
-- { ore="rocks:hornfels", percent=10 },
{ ore="rocks:skarn_magnetite", percent=40 },
}
})
-- Magnesite
minetest.register_node( "rocks:skarn_magnesite", {
description = S("Magnesite"),
tiles = { "rocks_Skarn.png^rocks_Magnesite.png" },
groups = {cracky=3},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
-- Vermiculite (fixme: move to CommonRocks)
minetest.register_node( "rocks:vermiculite", {
description = S("Vermiculite"),
tiles = { "rocks_Vermiculite.png" },
groups = {crumbly=3},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
-- magnesite/vermiculite skarn mix
rocks.register_vein("rocks:skarn",{
wherein="rocks:granite",
miny=-160, maxy=20,
radius={ average=CommonRadius, amplitude=3, frequency=5 },
density=80, rarity=CommonRarity,
ores={
-- marble and hornfels, as well as unchanged limestone.
-- { ore="rocks:marble", percent=10 },
-- { ore="rocks:hornfels", percent=10 },
{ ore="rocks:skarn_magnesite", percent=30 },
{ ore="rocks:vermiculite", percent=20 },
}
})
-- ~ Tomas Brod