nodes.lua 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. chest_api.register_chest("morechests:woodchest_public", {
  2. description = "Unlocked Darkwood Chest",
  3. tiles = { "morechests_woodchest_public.png" },
  4. sounds = default.node_sound_wood_defaults(),
  5. sound_open = "default_chest_open",
  6. sound_close = "default_chest_close",
  7. groups = utility.dig_groups("chest", {chest = 1}),
  8. })
  9. chest_api.register_chest("morechests:woodchest_locked", {
  10. description = "Locked Darkwood Chest",
  11. tiles = { "morechests_woodchest_locked.png" },
  12. sounds = default.node_sound_wood_defaults(),
  13. sound_open = "default_chest_open",
  14. sound_close = "default_chest_close",
  15. groups = utility.dig_groups("chest", {chest = 1}),
  16. protected = true,
  17. })
  18. minetest.register_alias("morechests:woodchest", "morechests:woodchest_public_closed")
  19. minetest.register_alias("morechests:woodchest_locked", "morechests:woodchest_locked_closed")
  20. minetest.register_alias("morechests:woodchest_public", "morechests:woodchest_public_closed")
  21. chest_api.register_chest("morechests:diamondchest_public", {
  22. description = "Unlocked Diamond Chest",
  23. tiles = { "chest_diamond.png" },
  24. sounds = default.node_sound_stone_defaults(),
  25. sound_open = "default_chest_open",
  26. sound_close = "default_chest_close",
  27. groups = utility.dig_groups("chest", {chest = 1}),
  28. })
  29. chest_api.register_chest("morechests:diamondchest_locked", {
  30. description = "Locked Diamond Chest",
  31. tiles = { "chest_diamond_locked.png" },
  32. sounds = default.node_sound_stone_defaults(),
  33. sound_open = "default_chest_open",
  34. sound_close = "default_chest_close",
  35. groups = utility.dig_groups("chest", {chest = 1}),
  36. protected = true,
  37. })
  38. minetest.register_alias("morechests:diamondchest_public", "morechests:diamondchest_public_closed")
  39. minetest.register_alias("morechests:diamondchest_locked", "morechests:diamondchest_locked_closed")
  40. chest_api.register_chest("morechests:copperchest_public", {
  41. description = "Unlocked Copper-Plated Chest",
  42. tiles = { "morechests_copper_public.png" },
  43. sounds = default.node_sound_metal_defaults(),
  44. sound_open = "default_chest_open",
  45. sound_close = "default_chest_close",
  46. groups = utility.dig_groups("metalchest", {chest = 1}),
  47. })
  48. chest_api.register_chest("morechests:copperchest_locked", {
  49. description = "Locked Copper-Plated Chest",
  50. tiles = { "morechests_copper_locked.png" },
  51. sounds = default.node_sound_metal_defaults(),
  52. sound_open = "default_chest_open",
  53. sound_close = "default_chest_close",
  54. groups = utility.dig_groups("metalchest", {chest = 1}),
  55. protected = true,
  56. })
  57. minetest.register_alias("morechests:copperchest_public", "morechests:copperchest_public_closed")
  58. minetest.register_alias("morechests:copperchest_locked", "morechests:copperchest_locked_closed")
  59. chest_api.register_chest("morechests:ironchest_public", {
  60. description = "Unlocked Ironside Chest",
  61. tiles = { "morechests_iron_public.png" },
  62. sounds = default.node_sound_metal_defaults(),
  63. sound_open = "default_chest_open",
  64. sound_close = "default_chest_close",
  65. groups = utility.dig_groups("metalchest", {chest = 1}),
  66. })
  67. chest_api.register_chest("morechests:ironchest_locked", {
  68. description = "Locked Ironside Chest",
  69. tiles = { "morechests_iron_locked.png" },
  70. sounds = default.node_sound_metal_defaults(),
  71. sound_open = "default_chest_open",
  72. sound_close = "default_chest_close",
  73. groups = utility.dig_groups("metalchest", {chest = 1}),
  74. protected = true,
  75. })
  76. minetest.register_alias("morechests:ironchest_public", "morechests:ironchest_public_closed")
  77. minetest.register_alias("morechests:ironchest_locked", "morechests:ironchest_locked_closed")
  78. chest_api.register_chest("morechests:goldchest_public", {
  79. description = "Unlocked Gold-Plated Chest",
  80. tiles = { "morechests_gold_public.png" },
  81. sounds = default.node_sound_metal_defaults(),
  82. sound_open = "default_chest_open",
  83. sound_close = "default_chest_close",
  84. groups = utility.dig_groups("metalchest", {chest = 1}),
  85. })
  86. chest_api.register_chest("morechests:goldchest_locked", {
  87. description = "Locked Gold-Plated Chest",
  88. tiles = { "morechests_gold_locked.png" },
  89. sounds = default.node_sound_metal_defaults(),
  90. sound_open = "default_chest_open",
  91. sound_close = "default_chest_close",
  92. groups = utility.dig_groups("metalchest", {chest = 1}),
  93. protected = true,
  94. })
  95. minetest.register_alias("morechests:goldchest_public", "morechests:goldchest_public_closed")
  96. minetest.register_alias("morechests:goldchest_locked", "morechests:goldchest_locked_closed")
  97. chest_api.register_chest("morechests:silverchest_public", {
  98. description = "Unlocked Silver Chest",
  99. tiles = { "morechests_silver_public.png" },
  100. sounds = default.node_sound_metal_defaults(),
  101. sound_open = "default_chest_open",
  102. sound_close = "default_chest_close",
  103. groups = utility.dig_groups("metalchest", {chest = 1}),
  104. })
  105. chest_api.register_chest("morechests:silverchest_locked", {
  106. description = "Locked Silver Chest\n\nCan be shared directly, without requiring use of a key.",
  107. tiles = { "morechests_silver_locked.png" },
  108. sounds = default.node_sound_metal_defaults(),
  109. sound_open = "default_chest_open",
  110. sound_close = "default_chest_close",
  111. groups = utility.dig_groups("metalchest", {chest = 1}),
  112. protected = true,
  113. })
  114. minetest.register_alias("morechests:silverchest_public", "morechests:silverchest_public_closed")
  115. minetest.register_alias("morechests:silverchest_locked", "morechests:silverchest_locked_closed")
  116. chest_api.register_chest("morechests:mithrilchest_public", {
  117. description = "Unlocked Mithril Chest",
  118. tiles = { "morechests_mithril_public.png" },
  119. sounds = default.node_sound_metal_defaults(),
  120. sound_open = "default_chest_open",
  121. sound_close = "default_chest_close",
  122. groups = utility.dig_groups("metalchest", {chest = 1}),
  123. })
  124. chest_api.register_chest("morechests:mithrilchest_locked", {
  125. description = "Locked Mithril Chest",
  126. tiles = { "morechests_mithril_locked.png" },
  127. sounds = default.node_sound_metal_defaults(),
  128. sound_open = "default_chest_open",
  129. sound_close = "default_chest_close",
  130. groups = utility.dig_groups("metalchest", {chest = 1}),
  131. protected = true,
  132. })
  133. minetest.register_alias("morechests:mithrilchest_public", "morechests:mithrilchest_public_closed")
  134. minetest.register_alias("morechests:mithrilchest_locked", "morechests:mithrilchest_locked_closed")