furniture.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. minetest.register_node("darkage:iron_bars", {
  2. description = "Iron Bars",
  3. drawtype = "glasslike",
  4. tiles = {"darkage_iron_bars.png"},
  5. inventory_image = "darkage_iron_bars.png",
  6. wield_image = "darkage_iron_bars.png",
  7. is_ground_content = false,
  8. paramtype = "light",
  9. sunlight_propagates = true,
  10. groups = {cracky=3 , not_cuttable=1},
  11. sounds = default.node_sound_stone_defaults()
  12. })
  13. minetest.register_node("darkage:lamp", {
  14. description = "Lamp",
  15. tiles = { "darkage_lamp.png" },
  16. paramtype = "light",
  17. sunlight_propagates = true,
  18. light_source = default.LIGHT_MAX-1,
  19. groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3, flammable=1 , not_cuttable=1},
  20. sounds = default.node_sound_glass_defaults(),
  21. })
  22. minetest.register_node("darkage:iron_grille", {
  23. description = "Iron Grille",
  24. drawtype = "glasslike",
  25. tiles = {"darkage_iron_grille.png"},
  26. inventory_image = "darkage_iron_grille.png",
  27. wield_image = "darkage_iron_grille.png",
  28. is_ground_content = false,
  29. paramtype = "light",
  30. sunlight_propagates = true,
  31. groups = {cracky=3 , not_cuttable=1},
  32. sounds = default.node_sound_stone_defaults()
  33. })
  34. minetest.register_node("darkage:wood_bars", {
  35. description = "Wooden Bars",
  36. drawtype = "glasslike",
  37. tiles = {"darkage_wood_bars.png"},
  38. inventory_image = "darkage_wood_bars.png",
  39. wield_image = "darkage_wood_bars.png",
  40. is_ground_content = false,
  41. paramtype = "light",
  42. sunlight_propagates = true,
  43. groups = {snappy=1, choppy=2, not_cuttable=1},
  44. sounds = default.node_sound_stone_defaults()
  45. })
  46. minetest.register_node("darkage:wood_grille", {
  47. description = "Wooden Grille",
  48. drawtype = "glasslike",
  49. tiles = {"darkage_wood_grille.png"},
  50. inventory_image = "darkage_wood_grille.png",
  51. wield_image = "darkage_wood_grille.png",
  52. is_ground_content = false,
  53. paramtype = "light",
  54. sunlight_propagates = true,
  55. groups = {snappy=1, choppy=2, not_cuttable=1},
  56. sounds = default.node_sound_stone_defaults()
  57. })
  58. minetest.register_node("darkage:wood_frame", {
  59. description = "Wooden Frame",
  60. drawtype = "glasslike_framed",
  61. tiles = {"darkage_wood_frame.png"},
  62. inventory_image = "darkage_wood_frame.png",
  63. wield_image = "darkage_wood_frame.png",
  64. is_ground_content = false,
  65. paramtype = "light",
  66. sunlight_propagates = true,
  67. groups = {snappy=1, choppy=2, oddly_breakable_by_hand = 3, not_cuttable=1},
  68. sounds = default.node_sound_stone_defaults()
  69. })
  70. ---------------
  71. -- Crafts Item
  72. ---------------
  73. ----------
  74. -- Crafts
  75. ----------
  76. minetest.register_craft({
  77. output = "darkage:box",
  78. recipe = {
  79. {"default:wood", "", "default:wood"},
  80. {"", "", ""},
  81. {"default:wood", "", "default:wood"},
  82. }
  83. })
  84. minetest.register_craft({
  85. output = "darkage:chain 2",
  86. recipe = {
  87. {"darkage:iron_stick"},
  88. {"darkage:iron_stick"},
  89. {"darkage:iron_stick"},
  90. }
  91. })
  92. minetest.register_craft({
  93. output = "darkage:iron_bars 2",
  94. recipe = {
  95. {"darkage:iron_stick", "", "darkage:iron_stick"},
  96. {"darkage:iron_stick", "", "darkage:iron_stick"},
  97. {"darkage:iron_stick", "", "darkage:iron_stick"},
  98. }
  99. })
  100. minetest.register_craft({
  101. output = "darkage:iron_grille 3",
  102. recipe = {
  103. {"", "darkage:iron_bars", ""},
  104. {"darkage:iron_bars", "", "darkage:iron_bars"},
  105. {"", "darkage:iron_bars", ""},
  106. }
  107. })
  108. minetest.register_craft({
  109. output = "darkage:lamp",
  110. recipe = {
  111. {"group:stick", "", "group:stick"},
  112. {"", "default:torch", ""},
  113. {"group:stick", "", "group:stick"},
  114. }
  115. })
  116. minetest.register_craft({
  117. output = "darkage:wood_bars 2",
  118. recipe = {
  119. {"group:stick", "", "group:stick"},
  120. {"group:stick", "", "group:stick"},
  121. {"group:stick", "", "group:stick"},
  122. }
  123. })
  124. minetest.register_craft({
  125. output = "darkage:wood_grille 3",
  126. recipe = {
  127. {"", "darkage:wood_bars", ""},
  128. {"darkage:wood_bars", "", "darkage:wood_bars"},
  129. {"", "darkage:wood_bars", ""},
  130. }
  131. })
  132. minetest.register_craft({
  133. output = "darkage:wood_shelves",
  134. recipe = {
  135. {"darkage:box"},
  136. {"darkage:box"},
  137. }
  138. })
  139. minetest.register_craft({
  140. output = "darkage:wood_frame",
  141. recipe = {
  142. {"group:stick", "", "group:stick"},
  143. {"", "default:glass", ""},
  144. {"group:stick", "", "group:stick"},
  145. }
  146. })
  147. -- Cookings
  148. minetest.register_craft({
  149. type = "cooking",
  150. output = "default:glass",
  151. recipe = "darkage:wood_frame",
  152. })