init.lua 586 B

123456789101112131415161718192021222324252627
  1. -- beds/init.lua
  2. -- Load support for MT game translation.
  3. local S = minetest.get_translator("beds")
  4. local esc = minetest.formspec_escape
  5. beds = {}
  6. beds.player = {}
  7. beds.bed_position = {}
  8. beds.pos = {}
  9. beds.spawn = {}
  10. beds.get_translator = S
  11. beds.formspec = "size[8,11;true]" ..
  12. "no_prepend[]" ..
  13. "bgcolor[#080808BB;true]" ..
  14. "button_exit[2,10;4,0.75;leave;" .. esc(S("Leave Bed")) .. "]"
  15. local modpath = minetest.get_modpath("beds")
  16. -- Load files
  17. dofile(modpath .. "/functions.lua")
  18. dofile(modpath .. "/api.lua")
  19. dofile(modpath .. "/beds.lua")
  20. dofile(modpath .. "/spawns.lua")