2019-09-10 19:09:51 +02:00
|
|
|
-- beds/init.lua
|
|
|
|
|
|
|
|
-- Load support for MT game translation.
|
|
|
|
local S = minetest.get_translator("beds")
|
2019-11-22 22:47:47 +01:00
|
|
|
local esc = minetest.formspec_escape
|
2019-09-10 19:09:51 +02:00
|
|
|
|
2015-02-24 11:59:15 +01:00
|
|
|
beds = {}
|
|
|
|
beds.player = {}
|
2018-06-19 23:07:01 +02:00
|
|
|
beds.bed_position = {}
|
2015-02-24 11:59:15 +01:00
|
|
|
beds.pos = {}
|
|
|
|
beds.spawn = {}
|
2019-09-10 19:09:51 +02:00
|
|
|
beds.get_translator = S
|
2015-02-24 11:59:15 +01:00
|
|
|
|
2019-01-26 13:55:39 +01:00
|
|
|
beds.formspec = "size[8,11;true]" ..
|
|
|
|
"no_prepend[]" ..
|
|
|
|
"bgcolor[#080808BB;true]" ..
|
2019-11-22 22:47:47 +01:00
|
|
|
"button_exit[2,10;4,0.75;leave;" .. esc(S("Leave Bed")) .. "]"
|
2015-02-24 11:59:15 +01:00
|
|
|
|
|
|
|
local modpath = minetest.get_modpath("beds")
|
|
|
|
|
2016-03-08 04:14:29 +01:00
|
|
|
-- Load files
|
|
|
|
|
|
|
|
dofile(modpath .. "/functions.lua")
|
|
|
|
dofile(modpath .. "/api.lua")
|
|
|
|
dofile(modpath .. "/beds.lua")
|
|
|
|
dofile(modpath .. "/spawns.lua")
|