1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-23 23:30:19 +01:00
minetest_game/mods/default/init.lua

49 lines
1.7 KiB
Lua
Raw Normal View History

-- Minetest 0.4 mod: default
-- See README.txt for licensing and other information.
2014-12-07 15:17:09 +01:00
-- The API documentation in here was moved into game_api.txt
-- Definitions made by this mod that other mods can use too
default = {}
2014-12-07 15:17:09 +01:00
default.LIGHT_MAX = 14
2014-04-14 22:09:18 +02:00
-- GUI related stuff
2014-06-01 10:49:50 +02:00
default.gui_bg = "bgcolor[#080808BB;true]"
default.gui_bg_img = "background[5,5;1,1;gui_formbg.png;true]"
default.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"
2014-04-14 22:09:18 +02:00
function default.get_hotbar_bg(x,y)
local out = ""
for i=0,7,1 do
out = out .."image["..x+i..","..y..";1,1;gui_hb_bg.png]"
end
return out
end
default.gui_survival_form = "size[8,8.5]"..
2014-06-01 10:49:50 +02:00
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
2014-04-14 22:09:18 +02:00
"list[current_player;main;0,4.25;8,1;]"..
"list[current_player;main;0,5.5;8,3;8]"..
"list[current_player;craft;1.75,0.5;3,3;]"..
"list[current_player;craftpreview;5.75,1.5;1,1;]"..
"image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
"listring[current_player;main]"..
"listring[current_player;craft]"..
2014-04-14 22:09:18 +02:00
default.get_hotbar_bg(0,4.25)
2013-05-19 18:43:04 +02:00
-- Load files
dofile(minetest.get_modpath("default").."/functions.lua")
dofile(minetest.get_modpath("default").."/nodes.lua")
dofile(minetest.get_modpath("default").."/furnace.lua")
2013-05-19 18:43:04 +02:00
dofile(minetest.get_modpath("default").."/tools.lua")
dofile(minetest.get_modpath("default").."/craftitems.lua")
dofile(minetest.get_modpath("default").."/crafting.lua")
dofile(minetest.get_modpath("default").."/mapgen.lua")
2013-05-19 18:43:04 +02:00
dofile(minetest.get_modpath("default").."/player.lua")
dofile(minetest.get_modpath("default").."/trees.lua")
2014-04-16 18:16:02 +02:00
dofile(minetest.get_modpath("default").."/aliases.lua")
dofile(minetest.get_modpath("default").."/legacy.lua")