2014-12-24 23:42:36 +01: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={}
|
2014-12-24 23:42:36 +01:00
|
|
|
|
2015-04-01 21:46:30 +02:00
|
|
|
local modpath=minetest.get_modpath(minetest.get_current_modname())
|
2014-12-24 23:42:36 +01:00
|
|
|
|
2015-04-01 21:46:30 +02:00
|
|
|
print("[rocks] begin")
|
2015-02-08 16:58:57 +01:00
|
|
|
|
2015-04-01 21:46:30 +02:00
|
|
|
dofile(modpath.."/sed.lua")
|
2015-02-08 16:58:57 +01:00
|
|
|
|
2015-02-08 21:44:04 +01:00
|
|
|
minetest.register_on_mapgen_init(function(mapgen_params)
|
2015-02-08 21:49:40 +01:00
|
|
|
-- todo: disable caves and ores
|
2015-04-01 21:46:30 +02:00
|
|
|
print("[rocks] mapgen initalized ")
|
2015-02-08 21:44:04 +01:00
|
|
|
end)
|
2015-04-01 21:46:30 +02:00
|
|
|
|
|
|
|
print("[rocks] done")
|