tools.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. minetest.register_tool("moreores:pick_silver", {
  2. description = "Silver Pickaxe\n\nUse this pick to gently excavate things.",
  3. inventory_image = "moreores_tool_silverpick.png",
  4. tool_capabilities = tooldata["pick_silver"],
  5. sound = {breaks = "basictools_tool_breaks"},
  6. })
  7. minetest.register_tool("moreores:pick_mithril", {
  8. description = "Mithril Pickaxe",
  9. inventory_image = "moreores_tool_mithrilpick.png",
  10. tool_capabilities = tooldata["pick_mithril"],
  11. sound = {breaks = "basictools_tool_breaks"},
  12. })
  13. minetest.register_tool("moreores:shovel_silver", {
  14. description = "Silver Shovel",
  15. inventory_image = "moreores_tool_silvershovel.png",
  16. tool_capabilities = tooldata["shovel_silver"],
  17. sound = {breaks = "basictools_tool_breaks"},
  18. })
  19. minetest.register_tool("moreores:shovel_mithril", {
  20. description = "Mithril Shovel",
  21. inventory_image = "moreores_tool_mithrilshovel.png",
  22. tool_capabilities = tooldata["shovel_mithril"],
  23. sound = {breaks = "basictools_tool_breaks"},
  24. })
  25. minetest.register_tool("moreores:axe_silver", {
  26. description = "Silver Axe",
  27. inventory_image = "moreores_tool_silveraxe.png",
  28. tool_capabilities = tooldata["axe_silver"],
  29. sound = {breaks = "basictools_tool_breaks"},
  30. })
  31. minetest.register_tool("moreores:axe_mithril", {
  32. description = "Mithril Axe",
  33. inventory_image = "moreores_tool_mithrilaxe.png",
  34. tool_capabilities = tooldata["axe_mithril"],
  35. sound = {breaks = "basictools_tool_breaks"},
  36. })
  37. minetest.register_tool("moreores:sword_silver", {
  38. description = "Silver Sword",
  39. inventory_image = "moreores_tool_silversword.png",
  40. tool_capabilities = tooldata["sword_silver"],
  41. sound = {breaks = "basictools_tool_breaks"},
  42. })
  43. minetest.register_tool("moreores:sword_mithril", {
  44. description = "Mithril Sword",
  45. inventory_image = "moreores_tool_mithrilsword.png",
  46. tool_capabilities = tooldata["sword_mithril"],
  47. sound = {breaks = "basictools_tool_breaks"},
  48. })
  49. farming.register_hoe("moreores:hoe_silver", {
  50. description = "Silver Hoe",
  51. inventory_image = "moreores_tool_silverhoe.png",
  52. max_uses = 300,
  53. material = "moreores:silver_ingot"
  54. })
  55. farming.register_hoe("moreores:hoe_mithril", {
  56. description = "Mithril Hoe",
  57. inventory_image = "moreores_tool_mithrilhoe.png",
  58. max_uses = 600,
  59. material = "moreores:mithril_ingot"
  60. })
  61. minetest.register_craft({
  62. output = "moreores:pick_silver",
  63. recipe = {
  64. {"moreores:silver_ingot", "moreores:silver_ingot", "moreores:silver_ingot"},
  65. {"", "group:stick", ""},
  66. {"", "group:stick", ""},
  67. },
  68. })
  69. minetest.register_craft({
  70. output = "moreores:pick_mithril",
  71. recipe = {
  72. {"moreores:mithril_ingot", "moreores:mithril_ingot", "moreores:mithril_ingot"},
  73. {"", "group:stick", ""},
  74. {"", "group:stick", ""},
  75. },
  76. })
  77. minetest.register_craft({
  78. output = "moreores:axe_silver",
  79. recipe = {
  80. {"moreores:silver_ingot", "moreores:silver_ingot", ""},
  81. {"moreores:silver_ingot", "group:stick", ""},
  82. {"", "group:stick", ""},
  83. },
  84. })
  85. minetest.register_craft({
  86. output = "moreores:axe_silver",
  87. recipe = {
  88. {"moreores:silver_ingot", "moreores:silver_ingot", ""},
  89. {"group:stick", "moreores:silver_ingot", ""},
  90. {"group:stick", "", ""},
  91. },
  92. })
  93. minetest.register_craft({
  94. output = "moreores:axe_mithril",
  95. recipe = {
  96. {"moreores:mithril_ingot", "moreores:mithril_ingot", ""},
  97. {"moreores:mithril_ingot", "group:stick", ""},
  98. {"", "group:stick", ""},
  99. },
  100. })
  101. minetest.register_craft({
  102. output = "moreores:axe_mithril",
  103. recipe = {
  104. {"moreores:mithril_ingot", "moreores:mithril_ingot", ""},
  105. {"group:stick", "moreores:mithril_ingot", ""},
  106. {"group:stick", "", ""},
  107. },
  108. })
  109. minetest.register_craft({
  110. output = "moreores:shovel_silver",
  111. recipe = {
  112. {"", "moreores:silver_ingot", ""},
  113. {"", "group:stick", ""},
  114. {"", "group:stick", ""},
  115. },
  116. })
  117. minetest.register_craft({
  118. output = "moreores:shovel_mithril",
  119. recipe = {
  120. {"", "moreores:mithril_ingot", ""},
  121. {"", "group:stick", ""},
  122. {"", "group:stick", ""},
  123. },
  124. })
  125. minetest.register_craft({
  126. output = "moreores:sword_silver",
  127. recipe = {
  128. {"", "moreores:silver_ingot", ""},
  129. {"", "moreores:silver_ingot", ""},
  130. {"", "group:stick", ""},
  131. },
  132. })
  133. minetest.register_craft({
  134. output = "moreores:sword_mithril",
  135. recipe = {
  136. {"", "moreores:mithril_ingot", ""},
  137. {"", "moreores:mithril_ingot", ""},
  138. {"", "group:stick", ""},
  139. },
  140. })