mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 03:20:03 -04:00
M mods/beds/beds.lua M mods/beds/init.lua M mods/carts/cart_entity.lua M mods/carts/init.lua M mods/carts/rails.lua M mods/creative/init.lua M mods/creative/inventory.lua M mods/default/chests.lua M mods/default/craftitems.lua M mods/default/furnace.lua M mods/default/init.lua M mods/default/nodes.lua M mods/default/tools.lua M mods/default/torch.lua M mods/default/trees.lua M mods/farming/api.lua M mods/farming/hoes.lua M mods/farming/init.lua M mods/farming/nodes.lua
26 lines
539 B
Lua
26 lines
539 B
Lua
-- beds/init.lua
|
|
|
|
-- Load support for MT game translation.
|
|
local S = minetest.get_translator()
|
|
|
|
|
|
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")
|