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

Pegmatite vein def.

This commit is contained in:
Tomáš Brada 2015-04-12 13:18:48 +02:00
parent 7113f0f950
commit 0dae800739
3 changed files with 23 additions and 4 deletions

View File

@ -153,7 +153,7 @@ rocksl.veingen=function(veins,minp,maxp,seed)
local noise_ix=1
local posi = area:index(x0, y0, z0)
if ignore_wherein or wherein_set[nodes[posi]] then
print("vein "..vein.primary.." @ "..x0..","..y0..","..z0.." vrm="..vrm)
print("[rocks] vein "..vein.primary.." @ "..x0..","..y0..","..z0.." vrm="..vrm)
did_generate=1
for x=-vrm, vrm do
for y=-vrm, vrm do
@ -184,7 +184,7 @@ rocksl.veingen=function(veins,minp,maxp,seed)
manipulator:set_data(nodes)
--manipulator:calc_lighting()
manipulator:write_to_map()
print("end veingen "..(os.clock()-timebefore))
print2("end veingen "..(os.clock()-timebefore))
else
--print("end veingen (nothin generated)")
end

View File

@ -2,8 +2,8 @@
-- Pegmatite vein
--
local CommonRarity=0.02 --too high... should be like 0.013
local CommonRadius=10
local CommonRarity=0.024
local CommonRadius=8
local CommonWherein={ "rocks:granite" }
minetest.register_node( "rocks:pegmatite", {
@ -15,4 +15,23 @@ minetest.register_node( "rocks:pegmatite", {
-- 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