trapdoors.lua 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. doors.register_trapdoor("trapdoor", {
  2. description = "Wooden Trapdoor",
  3. inventory_image = "doors_trapdoor.png",
  4. wield_image = "doors_trapdoor.png",
  5. tile_front = "doors_trapdoor.png",
  6. tile_side = "doors_trapdoor_side.png",
  7. groups = utility.dig_groups("door_wood", {flammable = 2, door = 1}),
  8. recipeitem = "default:wood",
  9. recipehinge = "techcrafts:hinge_wood",
  10. })
  11. doors.register_trapdoor("trapdoor_locked", {
  12. description = "Locked Wooden Trapdoor",
  13. inventory_image = "doors_trapdoor.png",
  14. wield_image = "doors_trapdoor.png",
  15. tile_front = "doors_trapdoor.png",
  16. tile_side = "doors_trapdoor_side.png",
  17. protected = true,
  18. groups = utility.dig_groups("door_wood", {flammable = 2, door = 1}),
  19. recipeitem = "default:wood",
  20. recipehinge = "techcrafts:hinge_wood",
  21. })
  22. doors.register_trapdoor("trapdoor_steel", {
  23. description = "Locked Iron Trapdoor",
  24. inventory_image = "doors_trapdoor_steel.png",
  25. wield_image = "doors_trapdoor_steel.png",
  26. tile_front = "doors_trapdoor_steel.png",
  27. tile_side = "doors_trapdoor_steel_side.png",
  28. protected = true,
  29. sounds = default.node_sound_metal_defaults(),
  30. sound_open = "doors_steel_door_open",
  31. sound_close = "doors_steel_door_close",
  32. groups = utility.dig_groups("door_metal", {door = 1}),
  33. recipeitem = "default:steel_ingot",
  34. })
  35. doors.register_trapdoor("trapdoor_steel_unlocked", {
  36. description = "Iron Trapdoor",
  37. inventory_image = "doors_trapdoor_steel.png",
  38. wield_image = "doors_trapdoor_steel.png",
  39. tile_front = "doors_trapdoor_steel.png",
  40. tile_side = "doors_trapdoor_steel_side.png",
  41. sounds = default.node_sound_metal_defaults(),
  42. sound_open = "doors_steel_door_open",
  43. sound_close = "doors_steel_door_close",
  44. groups = utility.dig_groups("door_metal", {door = 1}),
  45. recipeitem = "default:steel_ingot",
  46. })
  47. -- No locked version. Use for camo.
  48. doors.register_trapdoor("trapdoor_stone", {
  49. description = "Stone Trapdoor",
  50. inventory_image = "doors_trapdoor_stone.png",
  51. wield_image = "doors_trapdoor_stone.png",
  52. tile_front = "doors_trapdoor_stone.png",
  53. tile_side = "doors_trapdoor_stone_side.png",
  54. sounds = default.node_sound_stone_defaults(),
  55. groups = utility.dig_groups("door_stone", {door = 1}),
  56. recipeitem = "default:stone",
  57. })
  58. -- No locked version. Use for camo.
  59. doors.register_trapdoor("trapdoor_desertstone", {
  60. description = "Desert Stone Trapdoor",
  61. inventory_image = "doors_trapdoor_redstone.png",
  62. wield_image = "doors_trapdoor_redstone.png",
  63. tile_front = "doors_trapdoor_redstone.png",
  64. tile_side = "doors_trapdoor_redstone_side.png",
  65. sounds = default.node_sound_stone_defaults(),
  66. groups = utility.dig_groups("door_stone", {door = 1}),
  67. recipeitem = "default:desert_stone",
  68. })
  69. -- No locked version. Use for camo.
  70. doors.register_trapdoor("trapdoor_rackstone", {
  71. description = "Rackstone Trapdoor",
  72. inventory_image = "doors_trapdoor_rackstone.png",
  73. wield_image = "doors_trapdoor_rackstone.png",
  74. tile_front = "doors_trapdoor_rackstone.png",
  75. tile_side = "doors_trapdoor_rackstone_side.png",
  76. sounds = default.node_sound_stone_defaults(),
  77. groups = utility.dig_groups("door_stone", {door = 1}),
  78. recipeitem = "rackstone:rackstone",
  79. })
  80. doors.register_trapdoor("trapdoor_iron_locked", {
  81. description = "Locked Wrought Iron Trapdoor",
  82. inventory_image = "doors_trapdoor_iron.png",
  83. wield_image = "doors_trapdoor_iron.png",
  84. tile_front = "doors_trapdoor_iron.png",
  85. tile_side = "doors_trapdoor_iron_side.png",
  86. protected = true,
  87. sounds = default.node_sound_metal_defaults(),
  88. sound_open = "doors_steel_door_open",
  89. sound_close = "doors_steel_door_close",
  90. groups = utility.dig_groups("door_metal", {door = 1}),
  91. recipeitem = "default:iron_lump",
  92. })
  93. doors.register_trapdoor("trapdoor_iron", {
  94. description = "Wrought Iron Trapdoor",
  95. inventory_image = "doors_trapdoor_iron.png",
  96. wield_image = "doors_trapdoor_iron.png",
  97. tile_front = "doors_trapdoor_iron.png",
  98. tile_side = "doors_trapdoor_iron_side.png",
  99. sounds = default.node_sound_metal_defaults(),
  100. sound_open = "doors_steel_door_open",
  101. sound_close = "doors_steel_door_close",
  102. groups = utility.dig_groups("door_metal", {door = 1}),
  103. recipeitem = "default:iron_lump",
  104. })
  105. doors.register_trapdoor("trapdoor_sandstone", {
  106. description = "Sandstone Trapdoor",
  107. inventory_image = "doors_trapdoor_sandstone.png",
  108. wield_image = "doors_trapdoor_sandstone.png",
  109. tile_front = "doors_trapdoor_sandstone.png",
  110. tile_side = "doors_trapdoor_sandstone_side.png",
  111. sounds = default.node_sound_stone_defaults(),
  112. groups = utility.dig_groups("door_stone", {door = 1}),
  113. recipeitem = "default:sandstone",
  114. })
  115. doors.register_trapdoor("trapdoor_sandstone_locked", {
  116. description = "Locked Sandstone Trapdoor",
  117. inventory_image = "doors_trapdoor_sandstone.png",
  118. wield_image = "doors_trapdoor_sandstone.png",
  119. tile_front = "doors_trapdoor_sandstone.png",
  120. tile_side = "doors_trapdoor_sandstone_side.png",
  121. protected = true,
  122. sounds = default.node_sound_stone_defaults(),
  123. groups = utility.dig_groups("door_stone", {door = 1}),
  124. recipeitem = "default:sandstone",
  125. })
  126. doors.register_trapdoor("trapdoor_glass", {
  127. description = "Glass Trapdoor",
  128. inventory_image = "default_glass.png",
  129. wield_image = "default_glass.png",
  130. tile_front = "default_glass.png",
  131. tile_side = "default_glass.png",
  132. sounds = default.node_sound_glass_defaults(),
  133. groups = utility.dig_groups("door_stone", {door = 1}),
  134. recipeitem = "default:glass",
  135. })
  136. doors.register_trapdoor("trapdoor_glass_locked", {
  137. description = "Locked Glass Trapdoor",
  138. inventory_image = "default_glass.png",
  139. wield_image = "default_glass.png",
  140. tile_front = "default_glass.png",
  141. tile_side = "default_glass.png",
  142. protected = true,
  143. sounds = default.node_sound_glass_defaults(),
  144. groups = utility.dig_groups("door_stone", {door = 1}),
  145. recipeitem = "default:glass",
  146. })
  147. doors.register_trapdoor("trapdoor_obsidian_glass", {
  148. description = "Obsidian Glass Trapdoor",
  149. inventory_image = "default_obsidian_glass.png",
  150. wield_image = "default_obsidian_glass.png",
  151. tile_front = "default_obsidian_glass.png",
  152. tile_side = "default_obsidian_glass.png",
  153. sounds = default.node_sound_glass_defaults(),
  154. groups = utility.dig_groups("door_stone", {door = 1}),
  155. recipeitem = "default:obsidian_glass",
  156. })
  157. doors.register_trapdoor("trapdoor_obsidian_glass_locked", {
  158. description = "Locked Obsidian Glass Trapdoor",
  159. inventory_image = "default_obsidian_glass.png",
  160. wield_image = "default_obsidian_glass.png",
  161. tile_front = "default_obsidian_glass.png",
  162. tile_side = "default_obsidian_glass.png",
  163. protected = true,
  164. sounds = default.node_sound_glass_defaults(),
  165. groups = utility.dig_groups("door_stone", {door = 1}),
  166. recipeitem = "default:obsidian_glass",
  167. })