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] 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 + +