weaving.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ----------------------------------------------------------
  2. -- Weaving
  3. -------------------------------------------------
  4. --Woven mat
  5. minetest.register_node("earthbuild:woven_mat", {
  6. description = "Woven Mat",
  7. drawtype = "nodebox",
  8. tiles = {"earthbuild_woven_mat.png"},
  9. paramtype = "light",
  10. node_box = {
  11. type = "fixed",
  12. fixed = {
  13. {-0.5, -0.5, -0.5, 0.5, -0.48, 0.5},
  14. },
  15. },
  16. selection_box = {
  17. type = "fixed",
  18. fixed = {
  19. {-0.5, -0.5, -0.5, 0.5, -0.48, 0.5},
  20. },
  21. },
  22. groups = {snappy=3, flammable = 3,},
  23. sounds = default.node_sound_leaves_defaults(),
  24. })
  25. -- adds mat recipes
  26. minetest.register_craft({
  27. output = 'earthbuild:woven_mat',
  28. recipe = {
  29. {'', '', ''},
  30. {'', '', ''},
  31. {'group:leaves', 'group:leaves', 'group:leaves'},
  32. }
  33. })
  34. minetest.register_craft({
  35. output = 'earthbuild:woven_mat',
  36. recipe = {
  37. {'', '', ''},
  38. {'', '', ''},
  39. {'default:junglegrass', 'default:junglegrass', 'default:junglegrass'},
  40. }
  41. })
  42. minetest.register_craft({
  43. output = 'earthbuild:woven_mat',
  44. recipe = {
  45. {'', '', ''},
  46. {'', '', ''},
  47. {'group:grass', 'group:grass', 'group:grass'},
  48. }
  49. })
  50. minetest.register_craft({
  51. output = 'earthbuild:woven_mat',
  52. recipe = {
  53. {'', '', ''},
  54. {'', '', ''},
  55. {'group:dry_grass', 'group:dry_grass', 'group:dry_grass'},
  56. }
  57. })
  58. --[[
  59. --conflicts with default paper :-(
  60. minetest.register_craft({
  61. output = 'earthbuild:woven_mat',
  62. recipe = {
  63. {'', '', ''},
  64. {'', '', ''},
  65. {'default:papyrus', 'default:papyrus', 'default:papyrus'},
  66. }
  67. })
  68. ]]
  69. --Burn it
  70. minetest.register_craft({
  71. type = "fuel",
  72. recipe = "earthbuild:woven_mat",
  73. burntime = 1,
  74. })