From f4973d1b69ddfe3689f01fd2362c34dbd80a2331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Mon, 20 Apr 2015 15:25:56 +0200 Subject: [PATCH] Init mineral. --- mineral/init.lua | 25 ++++++++++++++++++++++++- rocks/skarn.lua | 2 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/mineral/init.lua b/mineral/init.lua index 07851d1..84d8f0b 100644 --- a/mineral/init.lua +++ b/mineral/init.lua @@ -1,3 +1,26 @@ -- -- The minerals mod. --- \ No newline at end of file +-- + +minetest.log("info","/mineral mod initializing") + +-- Load translation library if intllib is installed + +if (minetest.get_modpath("intllib")) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) + else + S = function ( s ) return s end +end + +mineral={} +mineral.noise={} + +local print=function(text) + minetest.log("info","/mineral "..text) +end + +local modpath=minetest.get_modpath(minetest.get_current_modname()) + +dofile(modpath.."/skarn.lua") + diff --git a/rocks/skarn.lua b/rocks/skarn.lua index e0081ac..f79684d 100644 --- a/rocks/skarn.lua +++ b/rocks/skarn.lua @@ -4,7 +4,7 @@ local CommonRarity=40 --too high... should be like 76 local CommonRadius=10 -local CommonWherein={ "rocks:granite", "rocks:limestone" } +local CommonWherein={ "rocks:granite", "rocks:limestone", "air" } minetest.register_node( "rocks:skarn", { description = S("Skarn"),