tools.lua 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. -- Pickaxe
  2. minetest.register_tool("lottores:copperpick", {
  3. description = "Copper Pickaxe",
  4. inventory_image = "lottores_copperpick.png",
  5. tool_capabilities = {
  6. full_punch_interval = 1.0,
  7. max_drop_level=1,
  8. groupcaps={
  9. cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=20, maxlevel=2},
  10. },
  11. damage_groups = {fleshy=4},
  12. },
  13. })
  14. minetest.register_tool("lottores:tinpick", {
  15. description = "Tin Pickaxe",
  16. inventory_image = "lottores_tinpick.png",
  17. tool_capabilities = {
  18. full_punch_interval = 1.0,
  19. max_drop_level=1,
  20. groupcaps={
  21. cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=25, maxlevel=2},
  22. },
  23. damage_groups = {fleshy=4},
  24. },
  25. })
  26. minetest.register_tool("lottores:silverpick", {
  27. description = "Silver Pickaxe",
  28. inventory_image = "lottores_silverpick.png",
  29. tool_capabilities = {
  30. full_punch_interval = 1.0,
  31. max_drop_level=2,
  32. groupcaps={
  33. cracky = {times={[1]=3.00, [2]=1.40, [3]=0.70}, uses=20, maxlevel=2},
  34. },
  35. damage_groups = {fleshy=4},
  36. },
  37. })
  38. minetest.register_tool("lottores:goldpick", {
  39. description = "Gold Pickaxe",
  40. inventory_image = "lottores_goldpick.png",
  41. tool_capabilities = {
  42. full_punch_interval = 1.0,
  43. max_drop_level=2,
  44. groupcaps={
  45. cracky = {times={[1]=3.00, [2]=1.40, [3]=0.70}, uses=30, maxlevel=2},
  46. },
  47. damage_groups = {fleshy=4},
  48. },
  49. })
  50. minetest.register_tool("lottores:galvornpick", {
  51. description = "Galvorn Pickaxe",
  52. inventory_image = "lottores_galvornpick.png",
  53. groups = {forbidden=1},
  54. tool_capabilities = {
  55. full_punch_interval = 0.9,
  56. max_drop_level=3,
  57. groupcaps={
  58. cracky = {times={[1]=2.4, [2]=1.2, [3]=0.60}, uses=30, maxlevel=3},
  59. },
  60. damage_groups = {fleshy=5},
  61. },
  62. })
  63. minetest.register_tool("lottores:mithrilpick", {
  64. description = "Mithril Pickaxe",
  65. inventory_image = "lottores_mithrilpick.png",
  66. tool_capabilities = {
  67. full_punch_interval = 0.8,
  68. max_drop_level=3,
  69. groupcaps={
  70. cracky = {times={[1]=1.5, [2]=0.8, [3]=0.40}, uses=60, maxlevel=3},
  71. very_hard = {times={[1]=3.5, [2]=1.5, [3]=0.90}, uses=50, maxlevel=3},
  72. },
  73. damage_groups = {fleshy=5},
  74. },
  75. })
  76. -- Axe
  77. minetest.register_tool("lottores:copperaxe", {
  78. description = "Copper Axe",
  79. inventory_image = "lottores_copperaxe.png",
  80. tool_capabilities = {
  81. full_punch_interval = 1.0,
  82. max_drop_level=1,
  83. groupcaps={
  84. choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=20, maxlevel=2},
  85. },
  86. damage_groups = {fleshy=4},
  87. },
  88. })
  89. minetest.register_tool("lottores:tinaxe", {
  90. description = "Tin Axe",
  91. inventory_image = "lottores_tinaxe.png",
  92. tool_capabilities = {
  93. full_punch_interval = 1.0,
  94. max_drop_level=1,
  95. groupcaps={
  96. choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=25, maxlevel=2},
  97. },
  98. damage_groups = {fleshy=4},
  99. },
  100. })
  101. minetest.register_tool("lottores:silveraxe", {
  102. description = "Silver Axe",
  103. inventory_image = "lottores_silveraxe.png",
  104. tool_capabilities = {
  105. full_punch_interval = 1.0,
  106. max_drop_level=1,
  107. groupcaps={
  108. choppy={times={[1]=2.30, [2]=1.20, [3]=0.80}, uses=20, maxlevel=2},
  109. },
  110. damage_groups = {fleshy=4},
  111. },
  112. })
  113. minetest.register_tool("lottores:goldaxe", {
  114. description = "Gold Axe",
  115. inventory_image = "lottores_goldaxe.png",
  116. tool_capabilities = {
  117. full_punch_interval = 1.0,
  118. max_drop_level=1,
  119. groupcaps={
  120. choppy={times={[1]=2.30, [2]=1.20, [3]=0.80}, uses=30, maxlevel=2},
  121. },
  122. damage_groups = {fleshy=4},
  123. },
  124. })
  125. minetest.register_tool("lottores:galvornaxe", {
  126. description = "Galvorn Axe",
  127. inventory_image = "lottores_galvornaxe.png",
  128. groups = {forbidden=1},
  129. tool_capabilities = {
  130. full_punch_interval = 0.9,
  131. max_drop_level=1,
  132. groupcaps={
  133. choppy={times={[1]=2.20, [2]=1.00, [3]=0.60}, uses=30, maxlevel=3},
  134. },
  135. damage_groups = {fleshy=6},
  136. },
  137. })
  138. minetest.register_tool("lottores:mithrilaxe", {
  139. description = "Mithril Axe",
  140. inventory_image = "lottores_mithrilaxe.png",
  141. tool_capabilities = {
  142. full_punch_interval = 0.8,
  143. max_drop_level=1,
  144. groupcaps={
  145. choppy={times={[1]=1.80, [2]=0.60, [3]=0.30}, uses=60, maxlevel=3},
  146. },
  147. damage_groups = {fleshy=7},
  148. },
  149. })
  150. -- Sword
  151. minetest.register_tool("lottores:coppersword", {
  152. description = "Copper Sword",
  153. inventory_image = "lottores_coppersword.png",
  154. tool_capabilities = {
  155. full_punch_interval = 1.25,
  156. max_drop_level=1,
  157. groupcaps={
  158. snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2},
  159. },
  160. damage_groups = {fleshy=6},
  161. }
  162. })
  163. minetest.register_tool("lottores:tinsword", {
  164. description = "Tin Sword",
  165. inventory_image = "lottores_tinsword.png",
  166. tool_capabilities = {
  167. full_punch_interval = 1.25,
  168. max_drop_level=1,
  169. groupcaps={
  170. snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=35, maxlevel=2},
  171. },
  172. damage_groups = {fleshy=6},
  173. }
  174. })
  175. minetest.register_tool("lottores:silversword", {
  176. description = "Silver Sword",
  177. inventory_image = "lottores_silversword.png",
  178. tool_capabilities = {
  179. full_punch_interval = 1,
  180. max_drop_level=1,
  181. groupcaps={
  182. snappy={times={[1]=2.3, [2]=1.10, [3]=0.35}, uses=30, maxlevel=2},
  183. },
  184. damage_groups = {fleshy=6},
  185. }
  186. })
  187. minetest.register_tool("lottores:goldsword", {
  188. description = "Gold Sword",
  189. inventory_image = "lottores_goldsword.png",
  190. tool_capabilities = {
  191. full_punch_interval = 0.75,
  192. max_drop_level=1,
  193. groupcaps={
  194. snappy={times={[1]=2.3, [2]=1.10, [3]=0.35}, uses=40, maxlevel=2},
  195. },
  196. damage_groups = {fleshy=6},
  197. }
  198. })
  199. minetest.register_tool("lottores:galvornsword", {
  200. description = "Galvorn Sword",
  201. inventory_image = "lottores_galvornsword.png",
  202. groups = {forbidden=1},
  203. tool_capabilities = {
  204. full_punch_interval = 0.5,
  205. max_drop_level=1,
  206. groupcaps={
  207. snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=40, maxlevel=3},
  208. },
  209. damage_groups = {fleshy=7},
  210. }
  211. })
  212. minetest.register_tool("lottores:mithrilsword", {
  213. description = "Mithril Sword",
  214. inventory_image = "lottores_mithrilsword.png",
  215. tool_capabilities = {
  216. full_punch_interval = 0.25,
  217. max_drop_level=1,
  218. groupcaps={
  219. snappy={times={[1]=0.70, [2]=0.80, [3]=0.25}, uses=80, maxlevel=3},
  220. },
  221. damage_groups = {fleshy=8},
  222. }
  223. })
  224. -- Shovel
  225. minetest.register_tool("lottores:coppershovel", {
  226. description = "Copper Shovel",
  227. inventory_image = "lottores_coppershovel.png",
  228. wield_image = "lottores_coppershovel.png^[transformR90",
  229. tool_capabilities = {
  230. full_punch_interval = 1.1,
  231. max_drop_level=1,
  232. groupcaps={
  233. crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=30, maxlevel=2},
  234. },
  235. damage_groups = {fleshy=3},
  236. },
  237. })
  238. minetest.register_tool("lottores:tinshovel", {
  239. description = "Tin Shovel",
  240. inventory_image = "lottores_tinshovel.png",
  241. wield_image = "lottores_tinshovel.png^[transformR90",
  242. tool_capabilities = {
  243. full_punch_interval = 1.1,
  244. max_drop_level=1,
  245. groupcaps={
  246. crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=35, maxlevel=2},
  247. },
  248. damage_groups = {fleshy=3},
  249. },
  250. })
  251. minetest.register_tool("lottores:silvershovel", {
  252. description = "Silver Shovel",
  253. inventory_image = "lottores_silvershovel.png",
  254. wield_image = "lottores_silvershovel.png^[transformR90",
  255. tool_capabilities = {
  256. full_punch_interval = 1.1,
  257. max_drop_level=1,
  258. groupcaps={
  259. crumbly = {times={[1]=1.30, [2]=0.70, [3]=0.35}, uses=30, maxlevel=2},
  260. },
  261. damage_groups = {fleshy=3},
  262. },
  263. })
  264. minetest.register_tool("lottores:goldshovel", {
  265. description = "Gold Shovel",
  266. inventory_image = "lottores_goldshovel.png",
  267. wield_image = "lottores_goldshovel.png^[transformR90",
  268. tool_capabilities = {
  269. full_punch_interval = 1.1,
  270. max_drop_level=1,
  271. groupcaps={
  272. crumbly = {times={[1]=1.30, [2]=0.70, [3]=0.35}, uses=40, maxlevel=2},
  273. },
  274. damage_groups = {fleshy=3},
  275. },
  276. })
  277. minetest.register_tool("lottores:galvornshovel", {
  278. description = "Galvorn Shovel",
  279. inventory_image = "lottores_galvornshovel.png",
  280. wield_image = "lottores_galvornshovel.png^[transformR90",
  281. groups = {forbidden=1},
  282. tool_capabilities = {
  283. full_punch_interval = 1.0,
  284. max_drop_level=3,
  285. groupcaps={
  286. crumbly = {times={[1]=1.20, [2]=0.60, [3]=0.30}, uses=30, maxlevel=3},
  287. },
  288. damage_groups = {fleshy=4},
  289. },
  290. })
  291. minetest.register_tool("lottores:mithrilshovel", {
  292. description = "Mithril Shovel",
  293. inventory_image = "lottores_mithrilshovel.png",
  294. wield_image = "lottores_mithrilshovel.png^[transformR90",
  295. tool_capabilities = {
  296. full_punch_interval = 0.9,
  297. max_drop_level=3,
  298. groupcaps={
  299. crumbly = {times={[1]=0.90, [2]=0.40, [3]=0.20}, uses=60, maxlevel=3},
  300. },
  301. damage_groups = {fleshy=4},
  302. },
  303. })