mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-05 23:33:51 +01:00
bb9279ccb8
rebased #2368
27 lines
545 B
Lua
27 lines
545 B
Lua
-- beds/init.lua
|
|
|
|
-- Load support for MT game translation.
|
|
local S = minetest.get_translator("beds")
|
|
|
|
|
|
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;" .. 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")
|