diff --git a/rocks/init.lua b/rocks/init.lua index 638fea1..ab5ec22 100644 --- a/rocks/init.lua +++ b/rocks/init.lua @@ -29,6 +29,7 @@ local modpath=minetest.get_modpath(minetest.get_current_modname()) dofile(modpath.."/sed.lua") dofile(modpath.."/ign.lua") dofile(modpath.."/skarn.lua") +dofile(modpath.."/pegmatite.lua") minetest.register_on_mapgen_init(function(mapgen_params) -- todo: disable caves and ores diff --git a/rocks/pegmatite.lua b/rocks/pegmatite.lua new file mode 100644 index 0000000..e5e9bf8 --- /dev/null +++ b/rocks/pegmatite.lua @@ -0,0 +1,37 @@ +-- +-- Pegmatite vein +-- + +local CommonRarity=0.024 +local CommonRadius=8 +local CommonWherein={ "rocks:granite" } + +minetest.register_node( "rocks:pegmatite", { + description = S("Pegmatite"), + tiles = { "rocks_Pegmatite.png" }, + groups = {cracky=3, stone=1}, + is_ground_content = true, sounds = default.node_sound_stone_defaults(), +}) + +-- ores have to be redefined for pegmatite background + +-- Lepidolite Li Medium Pegmatite (2.5%) +-- Cassiterite Sn Strong Granite, Pegmatite (1.5%) +-- Pollucite Cs Strong Pegmatite (0.1%) +-- Scheelite W Medium SEDEX, Pegmatite (2%), Skarn +-- Spodumene Li Strong Pegmatite (7%) +-- Tantalite Ta Strong Pegmatite (2%) +-- Wolframite W Medium Pegmatite (1%) +-- Spodumene 7% +-- Muscovite (mica) 7% +-- Kyanite 5% + +-- pegmatites are only 1 kind +rocks.register_vein("rocks:pegmatite",{ + wherein={ "rocks:granite" }, + miny=-160, maxy=20, + radius={ average=8, amplitude=4, frequency=5 }, + density=80, rarity=CommonRarity, + ores={ + } + }) diff --git a/rocks/textures/rocks_Pegmatite.png b/rocks/textures/rocks_Pegmatite.png new file mode 100644 index 0000000..eb88047 Binary files /dev/null and b/rocks/textures/rocks_Pegmatite.png differ