mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 11:30:03 -04:00
24 lines
483 B
Lua
24 lines
483 B
Lua
beds = {}
|
|
beds.player = {}
|
|
beds.pos = {}
|
|
beds.spawn = {}
|
|
|
|
local S
|
|
if minetest.get_modpath("intllib") then
|
|
S = intllib.Getter()
|
|
else
|
|
S = function(s) return s end
|
|
end
|
|
beds.intllib = S
|
|
|
|
beds.formspec = "size[8,15;true]"..
|
|
"bgcolor[#080808BB; true]"..
|
|
S("button_exit[2,12;4,0.75;leave;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")
|