From 7113f0f9508b4f412a0839a5e2076d2011beb1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Sun, 12 Apr 2015 12:35:45 +0200 Subject: [PATCH 1/3] Skel for pegmatite veins. --- init.lua | 1 + pegmatite.lua | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 pegmatite.lua diff --git a/init.lua b/init.lua index 962577f..45fef8e 100644 --- a/init.lua +++ b/init.lua @@ -22,6 +22,7 @@ dofile(modpath.."/mapgen.lua") 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/pegmatite.lua b/pegmatite.lua new file mode 100644 index 0000000..9762b2b --- /dev/null +++ b/pegmatite.lua @@ -0,0 +1,18 @@ +-- +-- Pegmatite vein +-- + +local CommonRarity=0.02 --too high... should be like 0.013 +local CommonRadius=10 +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 + + From 0dae80073937096222adfb2b280cde1752da4f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Sun, 12 Apr 2015 13:18:48 +0200 Subject: [PATCH 2/3] Pegmatite vein def. --- mapgen.lua | 4 ++-- pegmatite.lua | 23 +++++++++++++++++++++-- textures/rocks_Pegmatite.png | Bin 0 -> 893 bytes 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 textures/rocks_Pegmatite.png 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 0000000000000000000000000000000000000000..eb8804765a4fef89639dbca8b06df84bdd27387f GIT binary patch literal 893 zcmV-@1A_dCP)WFTUBAVFhebyIIS{0r0J4=m}r^?<+=>xNY{19m-Q>&EMgia zlEoQe6md8l*=#mAwuNaLTwJ7#qvTZAIF8HubxU2h_}&b0_v!D6X~6S+vOH%TdZuxp z9|oFMQjDLnP(eTt0#mI{9OH{sY;S$N#75=y=_^qU$9Jp)(ux_LJ)+s-AG-xD91&P zNXAicI<+WI(d(Y?|9!)dBc5`I;}|JzJTKsFv&Hol$LfgdI)w28arf!ZX+oeoP2hVV z1)H}G$ueOWCx*Ub_51=tkStPScJ@;R}5=R04Y)0SrxVFM{6pRDGJYu`e7!e>EJmryR`8y)hz>K2+;~?LqC1?2l zjQZ4&XInf!W?vQzNPhkJ0Va4|KjSLJ>7=Ra7Sj*r^uvg&T-sJ+SsL9oWLb{wIC!37 zxlHJ_e*fVpq_nuczM!gW%wBhdQAAnpkwTL1wn$-cb#;Z-9Z?i>sw-T_!Llu$SI;Di zgsyAQdcahk2MF3mb9I$+I36)glcFft?RFp}OcO=1XFd=4aC5`4s+fln%JcXiWW9wU T0@Y1h00000NkvXXu0mjfb2gRY literal 0 HcmV?d00001 From eef1902490fdb55ad41b0522ed8c01d41c646874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Sun, 12 Apr 2015 13:54:59 +0200 Subject: [PATCH 3/3] Granite texture from Minecraft. --- textures/rocks_Granite.png | Bin 712 -> 618 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/textures/rocks_Granite.png b/textures/rocks_Granite.png index eae5d3721b3d14e4d248b238db8989d7ffc35a4c..e1d682b9478ba1a1edffba9ab52d40278db2d3ff 100644 GIT binary patch literal 618 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLl<6e(pbstUx|vage(c z!@6@aFM%9|WRD45bDP46hOx7_4S6Fo+k-*%fF5lqe1G z331&tvwv=8*xa_d9B=zDd$Z!CmYqBv%31#&p^-Q0?SbOTUafg#|| zn`R(~v%n(~B$xokAF`d!g9OV89MgfS8W8Wk2^ zsae>w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