Re-enabled skarn deposits. Currently without ores.
[rocks.git] / init.lua
blobf05da60d5523f0dbdcbb95c4131176943bdff1c1
1 minetest.log("info","[rocks] mod initializing")
3 -- Load translation library if intllib is installed
5 if (minetest.get_modpath("intllib")) then
6 dofile(minetest.get_modpath("intllib").."/intllib.lua")
7 S = intllib.Getter(minetest.get_current_modname())
8 else
9 S = function ( s ) return s end
10 end
12 rocks={}
13 rocksl={}
15 rocksl.print=function(text)
16 minetest.log("info","/rocks "..text)
17 end
19 rocksl.seedseq=0
20 rocksl.GetNextSeed=function()
21 rocksl.seedseq=rocksl.seedseq+20
22 return rocksl.seedseq
23 end
25 local modpath=minetest.get_modpath(minetest.get_current_modname())
27 dofile(modpath.."/sed.lua")
28 dofile(modpath.."/ign.lua")
29 dofile(modpath.."/skarn.lua")
31 minetest.register_on_mapgen_init(function(mapgen_params)
32 -- todo: disable caves and ores
33 end)