trapdoors.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. })
  10. doors.register_trapdoor("trapdoor_locked", {
  11. description = "Locked Wooden Trapdoor",
  12. inventory_image = "doors_trapdoor.png",
  13. wield_image = "doors_trapdoor.png",
  14. tile_front = "doors_trapdoor.png",
  15. tile_side = "doors_trapdoor_side.png",
  16. protected = true,
  17. groups = utility.dig_groups("door_wood", {flammable = 2, door = 1}),
  18. recipeitem = "default:wood",
  19. })
  20. doors.register_trapdoor("trapdoor_steel", {
  21. description = "Locked Iron Trapdoor",
  22. inventory_image = "doors_trapdoor_steel.png",
  23. wield_image = "doors_trapdoor_steel.png",
  24. tile_front = "doors_trapdoor_steel.png",
  25. tile_side = "doors_trapdoor_steel_side.png",
  26. protected = true,
  27. sounds = default.node_sound_metal_defaults(),
  28. sound_open = "doors_steel_door_open",
  29. sound_close = "doors_steel_door_close",
  30. groups = utility.dig_groups("door_metal", {door = 1}),
  31. recipeitem = "default:steel_ingot",
  32. })
  33. doors.register_trapdoor("trapdoor_steel_unlocked", {
  34. description = "Iron Trapdoor",
  35. inventory_image = "doors_trapdoor_steel.png",
  36. wield_image = "doors_trapdoor_steel.png",
  37. tile_front = "doors_trapdoor_steel.png",
  38. tile_side = "doors_trapdoor_steel_side.png",
  39. sounds = default.node_sound_metal_defaults(),
  40. sound_open = "doors_steel_door_open",
  41. sound_close = "doors_steel_door_close",
  42. groups = utility.dig_groups("door_metal", {door = 1}),
  43. recipeitem = "default:steel_ingot",
  44. })
  45. -- No locked version. Use for camo.
  46. doors.register_trapdoor("trapdoor_stone", {
  47. description = "Stone Trapdoor",
  48. inventory_image = "doors_trapdoor_stone.png",
  49. wield_image = "doors_trapdoor_stone.png",
  50. tile_front = "doors_trapdoor_stone.png",
  51. tile_side = "doors_trapdoor_stone_side.png",
  52. sounds = default.node_sound_stone_defaults(),
  53. groups = utility.dig_groups("door_stone", {door = 1}),
  54. recipeitem = "default:stone",
  55. })
  56. -- No locked version. Use for camo.
  57. doors.register_trapdoor("trapdoor_desertstone", {
  58. description = "Desert Stone Trapdoor",
  59. inventory_image = "doors_trapdoor_redstone.png",
  60. wield_image = "doors_trapdoor_redstone.png",
  61. tile_front = "doors_trapdoor_redstone.png",
  62. tile_side = "doors_trapdoor_redstone_side.png",
  63. sounds = default.node_sound_stone_defaults(),
  64. groups = utility.dig_groups("door_stone", {door = 1}),
  65. recipeitem = "default:desert_stone",
  66. })
  67. -- No locked version. Use for camo.
  68. doors.register_trapdoor("trapdoor_rackstone", {
  69. description = "Rackstone Trapdoor",
  70. inventory_image = "doors_trapdoor_rackstone.png",
  71. wield_image = "doors_trapdoor_rackstone.png",
  72. tile_front = "doors_trapdoor_rackstone.png",
  73. tile_side = "doors_trapdoor_rackstone_side.png",
  74. sounds = default.node_sound_stone_defaults(),
  75. groups = utility.dig_groups("door_stone", {door = 1}),
  76. recipeitem = "rackstone:rackstone",
  77. })
  78. doors.register_trapdoor("trapdoor_iron_locked", {
  79. description = "Locked Wrought Iron Trapdoor",
  80. inventory_image = "doors_trapdoor_iron.png",
  81. wield_image = "doors_trapdoor_iron.png",
  82. tile_front = "doors_trapdoor_iron.png",
  83. tile_side = "doors_trapdoor_iron_side.png",
  84. protected = true,
  85. sounds = default.node_sound_metal_defaults(),
  86. sound_open = "doors_steel_door_open",
  87. sound_close = "doors_steel_door_close",
  88. groups = utility.dig_groups("door_metal", {door = 1}),
  89. recipeitem = "default:iron_lump",
  90. })
  91. doors.register_trapdoor("trapdoor_iron", {
  92. description = "Wrought Iron Trapdoor",
  93. inventory_image = "doors_trapdoor_iron.png",
  94. wield_image = "doors_trapdoor_iron.png",
  95. tile_front = "doors_trapdoor_iron.png",
  96. tile_side = "doors_trapdoor_iron_side.png",
  97. sounds = default.node_sound_metal_defaults(),
  98. sound_open = "doors_steel_door_open",
  99. sound_close = "doors_steel_door_close",
  100. groups = utility.dig_groups("door_metal", {door = 1}),
  101. recipeitem = "default:iron_lump",
  102. })
  103. doors.register_trapdoor("trapdoor_sandstone", {
  104. description = "Sandstone Trapdoor",
  105. inventory_image = "doors_trapdoor_sandstone.png",
  106. wield_image = "doors_trapdoor_sandstone.png",
  107. tile_front = "doors_trapdoor_sandstone.png",
  108. tile_side = "doors_trapdoor_sandstone_side.png",
  109. sounds = default.node_sound_stone_defaults(),
  110. groups = utility.dig_groups("door_stone", {door = 1}),
  111. recipeitem = "default:sandstone",
  112. })
  113. doors.register_trapdoor("trapdoor_sandstone_locked", {
  114. description = "Locked Sandstone Trapdoor",
  115. inventory_image = "doors_trapdoor_sandstone.png",
  116. wield_image = "doors_trapdoor_sandstone.png",
  117. tile_front = "doors_trapdoor_sandstone.png",
  118. tile_side = "doors_trapdoor_sandstone_side.png",
  119. protected = true,
  120. sounds = default.node_sound_stone_defaults(),
  121. groups = utility.dig_groups("door_stone", {door = 1}),
  122. recipeitem = "default:sandstone",
  123. })