furniture.lua 4.2 KB

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