tools.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. local mod_storage = minetest.get_mod_storage()
  2. anvils = {}
  3. minetest.override_item("farming:hoe_diamond", {
  4. groups = {hoe=1, tool=1},
  5. _repair_material = "default:diamond"}
  6. )
  7. minetest.override_item("default:pick_diamond", {
  8. groups = {pickaxe=1, tool=1},
  9. _repair_material = "default:diamond"}
  10. )
  11. minetest.override_item("default:axe_diamond", {
  12. groups = {axe=1, tool=1},
  13. _repair_material = "default:diamond"}
  14. )
  15. minetest.override_item("default:shovel_diamond", {
  16. groups = {shovel=1, tool=1},
  17. _repair_material = "default:diamond"}
  18. )
  19. minetest.override_item("farming:hoe_wood", {
  20. groups = {hoe=1, tool=1, flammable=1},
  21. _repair_material = "default:wood"}
  22. )
  23. minetest.override_item("default:pick_wood", {
  24. groups = {pick=1, tool=1, flammable=2},
  25. _repair_material = "default:wood"}
  26. )
  27. minetest.override_item("default:axe_wood", {
  28. groups = {axe=1, tool=1},
  29. _repair_material = "default:wood"}
  30. )
  31. minetest.override_item("default:shovel_wood", {
  32. groups = {shovel=1, tool=1, flammable=2},
  33. _repair_material = "default:wood"}
  34. )
  35. minetest.override_item("farming:hoe_steel", {
  36. groups = {hoe=1, tool=1},
  37. _repair_material = "default:steel_ingot"}
  38. )
  39. minetest.override_item("default:pick_steel", {
  40. groups = {pickaxe=1, tool=1},
  41. _repair_material = "default:steel_ingot"}
  42. )
  43. minetest.override_item("default:axe_steel", {
  44. groups = {axe=1, tool=1},
  45. _repair_material = "default:steel_ingot"}
  46. )
  47. minetest.override_item("default:shovel_steel", {
  48. groups = {shovel=1, tool=1},
  49. _repair_material = "default:steel_ingot"}
  50. )
  51. minetest.override_item("farming:hoe_stone", {
  52. groups = {hoe=1, tool=1},
  53. _repair_material = "default:cobble"}
  54. )
  55. minetest.override_item("default:pick_stone", {
  56. groups = {pickaxe=1, tool=1},
  57. _repair_material = "default:cobble"}
  58. )
  59. minetest.override_item("default:axe_stone", {
  60. groups = {axe=1, tool=1},
  61. _repair_material = "default:cobble"}
  62. )
  63. minetest.override_item("default:shovel_stone", {
  64. groups = {shovel=1, tool=1},
  65. _repair_material = "default:cobble"}
  66. )
  67. minetest.override_item("farming:hoe_bronze", {
  68. groups = {hoe=1, tool=1},
  69. _repair_material = "default:bronze_ingot"}
  70. )
  71. minetest.override_item("default:pick_bronze", {
  72. groups = {pickaxe=1, tool=1},
  73. _repair_material = "default:bronze_ingot"}
  74. )
  75. minetest.override_item("default:axe_bronze", {
  76. groups = {axe=1, tool=1},
  77. _repair_material = "default:bronze_ingot"}
  78. )
  79. minetest.override_item("default:shovel_bronze", {
  80. groups = {shovel=1, tool=1},
  81. _repair_material = "default:bronze_ingot"}
  82. )
  83. minetest.override_item("farming:hoe_mese", {
  84. groups = {hoe=1, tool=1},
  85. _repair_material = "default:mese_crystal"}
  86. )
  87. minetest.override_item("default:pick_mese", {
  88. groups = {pick=1, tool=1},
  89. _repair_material = "default:mese_crystal"}
  90. )
  91. minetest.override_item("default:axe_mese", {
  92. groups = {axe=1, tool=1},
  93. _repair_material = "default:mese_crystal"}
  94. )
  95. minetest.override_item("default:shovel_mese", {
  96. groups = {shovel=1, tool=1},
  97. _repair_material = "default:mese_crystal"}
  98. )
  99. -- add swords for snappy nodes
  100. minetest.override_item("default:sword_wood", {
  101. groups = {weapon=1, sword=1, flammable=1},
  102. _repair_material = "default:wood"}
  103. )
  104. minetest.override_item("default:sword_stone", {
  105. groups = {weapon=1, sword=1},
  106. _repair_material = "default:cobble"}
  107. )
  108. minetest.override_item("default:sword_steel", {
  109. groups = {weapon=1, sword=1},
  110. _repair_material = "default:steel_ingot"}
  111. )
  112. minetest.override_item("default:sword_bronze", {
  113. groups = {weapon=1, sword=1},
  114. _repair_material = "default:bronze_ingot"}
  115. )
  116. minetest.override_item("default:sword_mese", {
  117. groups = {weapon=1, sword=1},
  118. _repair_material = "default:mese_crystal"}
  119. )
  120. minetest.override_item("default:sword_diamond", {
  121. groups = {weapon=1, sword=1},
  122. _repair_material = "default:diamond"}
  123. )