init.lua 586 B

1234567891011121314151617181920212223242526
  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")