Extract player model from default
[minetest_hades/hades_revisited.git] / mods / default / init.lua
blob33c6ea5056190ca39c1d4bb48054ef7280a8749e
1 -- Minetest 0.4 mod: default
2 -- See README.txt for licensing and other information.
5 -- The API documentation in here was moved into doc/lua_api.txt
7 -- Definitions made by this mod that other mods can use too
8 default = {}
10 -- GUI related stuff
11 default.gui_inventory_bg_img = "background[5,5;1,1;inventory.png;true]"
12 default.gui_chest_bg_img = "background[5,5;1,1;chestui.png;true]"
14 function default.get_hotbar_bg(x,y)
15 local out = ""
16 for i=0,7,1 do
17 out = out .."image["..x+i..","..y..";1,1;gui_hb_bg.png]"
18 end
19 return out
20 end
22 default.gui_survival_form = "size[8,8.5]"..
23 default.gui_inventory_bg_img..
24 "list[current_player;main;0,4.25;8,1;]"..
25 "list[current_player;main;0,5.5;8,3;8]"..
26 "list[current_player;craft;3,0.5;3,3;]"..
27 "list[current_player;craftpreview;7,1.5;1,1;]"..
28 "image[6,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]]"..
29 "listring[current_player;main]"..
30 "listring[current_player;craft]"..
31 default.get_hotbar_bg(0,4.25)
33 -- Load files
34 dofile(minetest.get_modpath("default").."/functions.lua")
35 dofile(minetest.get_modpath("default").."/sounds.lua")
36 dofile(minetest.get_modpath("default").."/simple_nodes.lua")
37 dofile(minetest.get_modpath("default").."/tools.lua")
38 dofile(minetest.get_modpath("default").."/plants.lua")
39 dofile(minetest.get_modpath("default").."/furnaces.lua")
40 dofile(minetest.get_modpath("default").."/chests.lua")
41 dofile(minetest.get_modpath("default").."/torches.lua")
42 dofile(minetest.get_modpath("default").."/chests.lua")
43 dofile(minetest.get_modpath("default").."/ladders.lua")
44 dofile(minetest.get_modpath("default").."/deco.lua")
45 dofile(minetest.get_modpath("default").."/craftitems.lua")
46 dofile(minetest.get_modpath("default").."/crafting.lua")
47 dofile(minetest.get_modpath("default").."/alias.lua")
48 dofile(minetest.get_modpath("default").."/mapgen.lua")