1
0
mirror of git://repo.or.cz/rocks.git synced 2024-12-29 12:20:35 +01:00

Init mineral.

This commit is contained in:
Tomáš Brada 2015-04-20 15:25:56 +02:00
parent 8f4b02bd1e
commit f4973d1b69
2 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,26 @@
--
-- The minerals mod.
--
--
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")

View File

@ -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"),