init.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. local top_tiles = {
  2. "papyrus_bed_top_above.png",
  3. "papyrus_bed_top_below.png",
  4. "papyrus_bed_top_side_right.png",
  5. "papyrus_bed_top_side_left.png",
  6. "papyrus_bed_top_top.png",
  7. "papyrus_bed_brackets.png",
  8. }
  9. local bottom_tiles = {
  10. "papyrus_bed_bottom_above.png",
  11. "papyrus_bed_bottom_below.png",
  12. "papyrus_bed_bottom_side_right.png",
  13. "papyrus_bed_bottom_side_left.png",
  14. "papyrus_bed_brackets.png",
  15. "papyrus_bed_bottom_bottom.png",
  16. }
  17. local nodebox = {
  18. bottom = {
  19. -- bedspread
  20. {-0.5, 0.3125, -0.5, 0.5, 0.4375, 0.5},
  21. -- frame and mattress
  22. {-0.5, -0.3125, -0.5, 0.5, 0.3125, 0.5},
  23. -- brackets
  24. {-0.5, -0.5, -0.5, -0.3125, -0.3125, -0.3125},
  25. {0.3125, -0.5, -0.5, 0.5, -0.3125, -0.3125},
  26. },
  27. top = {
  28. -- headboard
  29. {-0.5, 0.3125, 0.4375, 0.5, 0.5, 0.5},
  30. -- pillow
  31. {-0.34375, 0.3125, 0.0, 0.34375, 0.375, 0.375},
  32. -- bedspread
  33. {-0.5, 0.3125, -0.5, 0.5, 0.4375, 0.0},
  34. -- frame and mattress
  35. {-0.5, -0.3125, -0.5, 0.5, 0.3125, 0.5},
  36. -- brackets
  37. {-0.5, -0.5, 0.3125, -0.3125, -0.3125, 0.5},
  38. {0.3125, -0.5, 0.3125, 0.5, -0.3125, 0.5},
  39. }
  40. }
  41. local selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 1.5}
  42. beds.register_bed("papyrus_bed:bed", {
  43. description = "Bed (Papyrus)\n\nSleep once to set or refresh your home position.\nHold 'E' when placing to make public.",
  44. inventory_image = "papyrus_bed_wieldimage.png",
  45. wield_image = "papyrus_bed_wieldimage.png",
  46. tiles = {
  47. bottom = bottom_tiles,
  48. top = top_tiles,
  49. },
  50. nodebox = nodebox,
  51. selectionbox = selectionbox,
  52. recipe = {
  53. {"default:paper", "default:papyrus", "default:papyrus"},
  54. {"default:wood", "default:wood", "default:wood"},
  55. {"group:stick", "", "group:stick"},
  56. },
  57. })