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
|
|
|
|
|
2014-12-29 21:47:55 +01:00
|
|
|
local modpath=minetest.get_modpath(minetest.get_current_modname())
|
2014-12-24 23:42:36 +01:00
|
|
|
|
2014-12-29 20:16:14 +01:00
|
|
|
dofile(modpath.."/register.lua")
|
2014-12-24 23:42:36 +01:00
|
|
|
|
2014-12-29 16:14:15 +01:00
|
|
|
rocks.noiseparams_layers = {
|
|
|
|
offset = 0,
|
|
|
|
scale = 1,
|
2015-01-10 16:05:32 +01:00
|
|
|
spread = {x=300, y=300, z=300},
|
2014-12-29 16:14:15 +01:00
|
|
|
octaves = 3,
|
|
|
|
persist = 0.63
|
|
|
|
}
|
|
|
|
|
2014-12-29 20:16:14 +01:00
|
|
|
dofile(modpath.."/mapgen.lua")
|
2015-01-10 15:46:45 +01:00
|
|
|
dofile(modpath.."/geologica.lua")
|
2014-12-24 23:42:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
print("[rocks] loaded.")
|