2017-02-01 00:32:56 +02:00
|
|
|
-- Minetest 0.4 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
|
|
|
|
mcl_core = {}
|
|
|
|
mcl_core.gui_slots = "listcolors[#9990;#FFF7;#FFF0;#000;#FFF]"
|
|
|
|
mcl_core.gui_bg = "bgcolor[#080808BB;true]"
|
|
|
|
mcl_core.gui_bg_img = ""
|
|
|
|
|
|
|
|
mcl_core.inventory_header = mcl_core.gui_slots .. mcl_core.gui_bg
|
|
|
|
|
2017-02-14 18:17:49 +02:00
|
|
|
-- Repair percentage for toolrepair
|
|
|
|
mcl_core.repair = 0.05
|
|
|
|
|
2017-02-01 00:32:56 +02:00
|
|
|
minetest.nodedef_default.stack_max = 64
|
|
|
|
minetest.craftitemdef_default.stack_max = 64
|
|
|
|
|
2017-02-16 05:08:33 +02:00
|
|
|
-- Set random seed for all other mods (Remember to make sure no other mod calls this function)
|
|
|
|
math.randomseed(os.time())
|
|
|
|
|
2017-02-01 00:32:56 +02:00
|
|
|
-- Load files
|
|
|
|
dofile(minetest.get_modpath("mcl_core").."/functions.lua")
|
|
|
|
dofile(minetest.get_modpath("mcl_core").."/nodes.lua")
|
|
|
|
dofile(minetest.get_modpath("mcl_core").."/tools.lua")
|
|
|
|
dofile(minetest.get_modpath("mcl_core").."/craftitems.lua")
|
|
|
|
dofile(minetest.get_modpath("mcl_core").."/crafting.lua")
|