2ac5a5fc35
* update: xpanes * update wool * update walls * update vessels * update tnt * update stairs * update spawn * update sfinv * update sethome * update screwdriver * update player_api * update map * update give_initial_stuff * update game_commands * update flowers * update fireflies * update fire * update dye * update dungeon_loot * update doors * update creative * update butterflies * update bucket * update bones * update boats * update binoculars * update beds * update default * revert to stairs_redo * mc brick texture * add xpanes_space.png as dependency
27 lines
586 B
Lua
27 lines
586 B
Lua
-- beds/init.lua
|
|
|
|
-- Load support for MT game translation.
|
|
local S = minetest.get_translator("beds")
|
|
local esc = minetest.formspec_escape
|
|
|
|
beds = {}
|
|
beds.player = {}
|
|
beds.bed_position = {}
|
|
beds.pos = {}
|
|
beds.spawn = {}
|
|
beds.get_translator = S
|
|
|
|
beds.formspec = "size[8,11;true]" ..
|
|
"no_prepend[]" ..
|
|
"bgcolor[#080808BB;true]" ..
|
|
"button_exit[2,10;4,0.75;leave;" .. esc(S("Leave Bed")) .. "]"
|
|
|
|
local modpath = minetest.get_modpath("beds")
|
|
|
|
-- Load files
|
|
|
|
dofile(modpath .. "/functions.lua")
|
|
dofile(modpath .. "/api.lua")
|
|
dofile(modpath .. "/beds.lua")
|
|
dofile(modpath .. "/spawns.lua")
|