init.lua 403 B

1234567891011121314151617181920
  1. beds = {}
  2. beds.player = {}
  3. beds.bed_position = {}
  4. beds.pos = {}
  5. beds.spawn = {}
  6. beds.formspec = "size[8,11;true]" ..
  7. "no_prepend[]" ..
  8. "bgcolor[#080808BB;true]" ..
  9. "button_exit[2,10;4,0.75;leave;Leave Bed]"
  10. local modpath = minetest.get_modpath("beds")
  11. -- Load files
  12. dofile(modpath .. "/functions.lua")
  13. dofile(modpath .. "/api.lua")
  14. dofile(modpath .. "/beds.lua")
  15. dofile(modpath .. "/spawns.lua")