init.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. minetest.register_node("stm_nodes:tin_roof", {
  2. description = "Corrugated Tin Roof",
  3. tiles = {
  4. "stm_nodes_corrugated_tin.png",
  5. "stm_nodes_corrugated_tin.png",
  6. "stm_nodes_tin.png",
  7. },
  8. drawtype = "nodebox",
  9. paramtype = "light",
  10. paramtype2 = "facedir",
  11. node_box = {
  12. type = "fixed",
  13. fixed = {
  14. {-0.5, -0.5, -0.5, -0.375, -0.4375, 0.5}, -- NodeBox6
  15. {-0.375, -0.4375, -0.5, -0.25, -0.375, 0.5}, -- NodeBox7
  16. {-0.375, -0.4375, -0.5, -0.25, -0.375, 0.5}, -- NodeBox8
  17. {-0.25, -0.5, -0.5, -0.125, -0.4375, 0.5}, -- NodeBox9
  18. {-0.125, -0.4375, -0.5, 0, -0.375, 0.5}, -- NodeBox10
  19. {0, -0.5, -0.5, 0.125, -0.4375, 0.5}, -- NodeBox11
  20. {0.125, -0.4375, -0.5, 0.25, -0.375, 0.5}, -- NodeBox12
  21. {0.25, -0.5, -0.5, 0.375, -0.4375, 0.5}, -- NodeBox13
  22. {0.375, -0.4375, -0.5, 0.5, -0.375, 0.5}, -- NodeBox14
  23. }
  24. },
  25. sounds = default.node_sound_metal_defaults(),
  26. groups = {cracky=1},
  27. on_place = minetest.rotate_node
  28. })
  29. minetest.register_craft({
  30. output = 'stm_nodes:tin_roof 4',
  31. recipe = {
  32. {'', '', ''},
  33. {'', '', ''},
  34. {'default:tin_ingot', 'default:tin_ingot', 'default:tin_ingot'},
  35. }
  36. })
  37. minetest.register_node("stm_nodes:rusty_tin_roof", {
  38. description = "Rusty Corrugated Tin Roof",
  39. tiles = {
  40. "stm_nodes_rusty_corrugated_tin.png",
  41. "stm_nodes_rusty_corrugated_tin.png",
  42. "stm_nodes_rusty_corrugated_tin.png",
  43. },
  44. drawtype = "nodebox",
  45. paramtype = "light",
  46. paramtype2 = "facedir",
  47. node_box = {
  48. type = "fixed",
  49. fixed = {
  50. {-0.5, -0.5, -0.5, -0.375, -0.4375, 0.5}, -- NodeBox6
  51. {-0.375, -0.4375, -0.5, -0.25, -0.375, 0.5}, -- NodeBox7
  52. {-0.375, -0.4375, -0.5, -0.25, -0.375, 0.5}, -- NodeBox8
  53. {-0.25, -0.5, -0.5, -0.125, -0.4375, 0.5}, -- NodeBox9
  54. {-0.125, -0.4375, -0.5, 0, -0.375, 0.5}, -- NodeBox10
  55. {0, -0.5, -0.5, 0.125, -0.4375, 0.5}, -- NodeBox11
  56. {0.125, -0.4375, -0.5, 0.25, -0.375, 0.5}, -- NodeBox12
  57. {0.25, -0.5, -0.5, 0.375, -0.4375, 0.5}, -- NodeBox13
  58. {0.375, -0.4375, -0.5, 0.5, -0.375, 0.5}, -- NodeBox14
  59. }
  60. },
  61. sounds = default.node_sound_metal_defaults(),
  62. groups = {cracky=1},
  63. on_place = minetest.rotate_node
  64. })
  65. minetest.register_craft({
  66. output = 'stm_nodes:rusty_tin_roof 4',
  67. recipe = {
  68. {'', '', ''},
  69. {'', '', ''},
  70. {'default:tin_ingot', 'default:tin_ingot', ''},
  71. }
  72. })