34 lines
1.0 KiB
Lua
34 lines
1.0 KiB
Lua
-- MultiCraft mod: default
|
|
-- See README.txt for licensing and other information.
|
|
|
|
-- The API documentation in here was moved into doc/lua_api.txt
|
|
|
|
-- Definitions made by this mod that other mods can use too
|
|
default = {}
|
|
|
|
default.LIGHT_MAX = 14
|
|
|
|
-- Load files
|
|
local default_path = minetest.get_modpath("default")
|
|
|
|
dofile(default_path.."/functions.lua")
|
|
dofile(default_path.."/trees.lua")
|
|
dofile(default_path.."/nodes.lua")
|
|
dofile(default_path.."/chests.lua")
|
|
dofile(default_path.."/furnace.lua")
|
|
dofile(default_path.."/tools.lua")
|
|
dofile(default_path.."/craftitems.lua")
|
|
dofile(default_path.."/crafting.lua")
|
|
dofile(default_path.."/mapgen.lua")
|
|
dofile(default_path.."/aliases.lua")
|
|
dofile(default_path.."/workbench.lua")
|
|
dofile(default_path.."/torch.lua")
|
|
|
|
if not minetest.setting_getbool("creative_mode") then
|
|
minetest.register_on_newplayer(function (player)
|
|
player:get_inventory():add_item('main', 'default:sword_steel')
|
|
player:get_inventory():add_item('main', 'default:torch 8')
|
|
player:get_inventory():add_item('main', 'default:wood 64')
|
|
end)
|
|
end
|