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

Merge branch 'pegmatite'

Conflicts:
	mapgen.lua
This commit is contained in:
Tomáš Brada 2015-04-20 18:55:59 +02:00
commit 2c06f0486e
3 changed files with 38 additions and 0 deletions

View File

@ -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

37
rocks/pegmatite.lua Normal file
View File

@ -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={
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 893 B