1
0
mirror of git://repo.or.cz/rocks.git synced 2024-09-30 08:10:39 +02:00
rocks/init.lua

29 lines
656 B
Lua
Raw Normal View History

2015-04-03 15:48:49 +02:00
minetest.log("info","[rocks] mod initializing")
2015-04-02 20:17:56 +02:00
-- 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
2015-04-01 21:46:30 +02:00
rocks={}
2015-04-02 20:17:56 +02:00
rocksl={}
2015-04-03 15:48:49 +02:00
rocksl.print=function(text)
print("[rocks] "..text)
end
2015-04-01 21:46:30 +02:00
local modpath=minetest.get_modpath(minetest.get_current_modname())
2015-04-02 20:17:56 +02:00
dofile(modpath.."/mapgen.lua")
2015-04-01 21:46:30 +02:00
dofile(modpath.."/sed.lua")
2015-04-02 20:17:56 +02:00
dofile(modpath.."/ign.lua")
2015-04-10 21:21:51 +02:00
dofile(modpath.."/skarn.lua")
minetest.register_on_mapgen_init(function(mapgen_params)
2015-02-08 21:49:40 +01:00
-- todo: disable caves and ores
end)