2019-05-23 15:17:23 +02:00
|
|
|
-- MultiCraft Game mod: default
|
2016-02-07 03:24:38 +02:00
|
|
|
-- 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
|
2019-05-08 20:04:40 +02:00
|
|
|
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")
|
2019-05-23 15:17:23 +02:00
|
|
|
dofile(default_path.."/torch.lua")
|
2019-05-08 20:04:40 +02:00
|
|
|
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")
|
2019-05-04 22:47:33 +02:00
|
|
|
|
2019-05-23 23:47:19 +02:00
|
|
|
if not minetest.settings:get_bool("creative_mode") then
|
2019-05-08 02:04:54 +02:00
|
|
|
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
|