diff --git a/mapgen.lua b/mapgen.lua index 6531b7d..bc036fa 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -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 diff --git a/pegmatite.lua b/pegmatite.lua index 9762b2b..e5e9bf8 100644 --- a/pegmatite.lua +++ b/pegmatite.lua @@ -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={ + } + }) diff --git a/textures/rocks_Pegmatite.png b/textures/rocks_Pegmatite.png new file mode 100644 index 0000000..eb88047 Binary files /dev/null and b/textures/rocks_Pegmatite.png differ