init.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. basictools = basictools or {}
  2. basictools.modpath = minetest.get_modpath("basictools")
  3. minetest.register_tool(":default:pick_wood", {
  4. description = "Wooden Pickaxe",
  5. inventory_image = "default_tool_woodpick.png",
  6. tool_capabilities = tooldata["pick_wood"],
  7. sound = {breaks = "basictools_tool_breaks"},
  8. groups = {flammable = 2, not_repaired_by_anvil = 1},
  9. })
  10. minetest.register_tool(":default:pick_stone", {
  11. description = "Stone Pickaxe",
  12. inventory_image = "default_tool_stonepick.png",
  13. tool_capabilities = tooldata["pick_stone"],
  14. sound = {breaks = "basictools_tool_breaks"},
  15. groups = {not_repaired_by_anvil = 1},
  16. })
  17. minetest.register_tool(":default:pick_steel", {
  18. description = "Iron Pickaxe",
  19. inventory_image = "default_tool_steelpick.png",
  20. tool_capabilities = tooldata["pick_steel"],
  21. sound = {breaks = "basictools_tool_breaks"},
  22. })
  23. minetest.register_tool(":default:pick_bronze", {
  24. description = "Copper Pickaxe",
  25. inventory_image = "default_tool_bronzepick.png",
  26. tool_capabilities = tooldata["pick_bronze"],
  27. sound = {breaks = "basictools_tool_breaks"},
  28. })
  29. minetest.register_tool(":default:pick_bronze2", {
  30. description = "Bronze Pickaxe",
  31. inventory_image = "default_tool_bronzepick2.png",
  32. tool_capabilities = tooldata["pick_bronze2"],
  33. sound = {breaks = "basictools_tool_breaks"},
  34. })
  35. minetest.register_tool(":default:pick_mese", {
  36. description = "Mese Pickaxe",
  37. inventory_image = "default_tool_mesepick.png",
  38. tool_capabilities = tooldata["pick_mese"],
  39. sound = {breaks = "basictools_tool_breaks"},
  40. })
  41. minetest.register_tool(":default:pick_diamond", {
  42. description = "Diamond Pickaxe",
  43. inventory_image = "default_tool_diamondpick.png",
  44. tool_capabilities = tooldata["pick_diamond"],
  45. sound = {breaks = "basictools_tool_breaks"},
  46. })
  47. minetest.register_tool(":default:shovel_stone", {
  48. description = "Stone Shovel",
  49. inventory_image = "default_tool_stoneshovel.png",
  50. wield_image = "default_tool_stoneshovel.png^[transformR90",
  51. tool_capabilities = tooldata["shovel_stone"],
  52. sound = {breaks = "basictools_tool_breaks"},
  53. groups = {not_repaired_by_anvil = 1},
  54. })
  55. minetest.register_tool(":default:shovel_steel", {
  56. description = "Iron Shovel",
  57. inventory_image = "default_tool_steelshovel.png",
  58. wield_image = "default_tool_steelshovel.png^[transformR90",
  59. tool_capabilities = tooldata["shovel_steel"],
  60. sound = {breaks = "basictools_tool_breaks"},
  61. })
  62. minetest.register_tool(":default:shovel_bronze", {
  63. description = "Copper Shovel",
  64. inventory_image = "default_tool_bronzeshovel.png",
  65. wield_image = "default_tool_bronzeshovel.png^[transformR90",
  66. tool_capabilities = tooldata["shovel_bronze"],
  67. sound = {breaks = "basictools_tool_breaks"},
  68. })
  69. minetest.register_tool(":default:shovel_bronze2", {
  70. description = "Bronze Shovel",
  71. inventory_image = "default_tool_bronzeshovel2.png",
  72. wield_image = "default_tool_bronzeshovel2.png^[transformR90",
  73. tool_capabilities = tooldata["shovel_bronze2"],
  74. sound = {breaks = "basictools_tool_breaks"},
  75. })
  76. minetest.register_tool(":default:shovel_mese", {
  77. description = "Mese Shovel",
  78. inventory_image = "default_tool_meseshovel.png",
  79. wield_image = "default_tool_meseshovel.png^[transformR90",
  80. tool_capabilities = tooldata["shovel_mese"],
  81. sound = {breaks = "basictools_tool_breaks"},
  82. })
  83. minetest.register_tool(":default:shovel_diamond", {
  84. description = "Diamond Shovel",
  85. inventory_image = "default_tool_diamondshovel.png",
  86. wield_image = "default_tool_diamondshovel.png^[transformR90",
  87. tool_capabilities = tooldata["shovel_diamond"],
  88. sound = {breaks = "basictools_tool_breaks"},
  89. })
  90. minetest.register_tool(":default:axe_stone", {
  91. description = "Stone Axe",
  92. inventory_image = "default_tool_stoneaxe.png",
  93. tool_capabilities = tooldata["axe_stone"],
  94. sound = {breaks = "basictools_tool_breaks"},
  95. groups = {not_repaired_by_anvil = 1},
  96. })
  97. minetest.register_tool(":default:axe_steel", {
  98. description = "Iron Axe",
  99. inventory_image = "default_tool_steelaxe.png",
  100. tool_capabilities = tooldata["axe_steel"],
  101. sound = {breaks = "basictools_tool_breaks"},
  102. })
  103. minetest.register_tool(":default:axe_bronze", {
  104. description = "Copper Axe",
  105. inventory_image = "default_tool_bronzeaxe.png",
  106. tool_capabilities = tooldata["axe_bronze"],
  107. sound = {breaks = "basictools_tool_breaks"},
  108. })
  109. minetest.register_tool(":default:axe_bronze2", {
  110. description = "Bronze Axe",
  111. inventory_image = "default_tool_bronzeaxe2.png",
  112. tool_capabilities = tooldata["axe_bronze2"],
  113. sound = {breaks = "basictools_tool_breaks"},
  114. })
  115. minetest.register_tool(":default:axe_mese", {
  116. description = "Mese Axe",
  117. inventory_image = "default_tool_meseaxe.png",
  118. tool_capabilities = tooldata["axe_mese"],
  119. sound = {breaks = "basictools_tool_breaks"},
  120. })
  121. minetest.register_tool(":default:axe_diamond", {
  122. description = "Diamond Axe",
  123. inventory_image = "default_tool_diamondaxe.png",
  124. tool_capabilities = tooldata["axe_diamond"],
  125. sound = {breaks = "basictools_tool_breaks"},
  126. })
  127. minetest.register_tool(":default:sword_stone", {
  128. description = "Stone Sword",
  129. inventory_image = "default_tool_stonesword.png",
  130. tool_capabilities = tooldata["sword_stone"],
  131. sound = {breaks = "basictools_tool_breaks"},
  132. groups = {not_repaired_by_anvil = 1},
  133. })
  134. minetest.register_tool(":default:sword_steel", {
  135. description = "Iron Sword",
  136. inventory_image = "default_tool_steelsword.png",
  137. tool_capabilities = tooldata["sword_steel"],
  138. sound = {breaks = "basictools_tool_breaks"},
  139. })
  140. minetest.register_tool(":default:sword_bronze", {
  141. description = "Copper Sword",
  142. inventory_image = "default_tool_bronzesword.png",
  143. tool_capabilities = tooldata["sword_bronze"],
  144. sound = {breaks = "basictools_tool_breaks"},
  145. })
  146. minetest.register_tool(":default:sword_bronze2", {
  147. description = "Bronze Sword",
  148. inventory_image = "default_tool_bronzesword2.png",
  149. tool_capabilities = tooldata["sword_bronze2"],
  150. sound = {breaks = "basictools_tool_breaks"},
  151. })
  152. minetest.register_tool(":default:sword_mese", {
  153. description = "Mese Sword",
  154. inventory_image = "default_tool_mesesword.png",
  155. tool_capabilities = tooldata["sword_mese"],
  156. sound = {breaks = "basictools_tool_breaks"},
  157. })
  158. minetest.register_tool(":default:sword_diamond", {
  159. description = "Diamond Sword",
  160. inventory_image = "default_tool_diamondsword.png",
  161. tool_capabilities = tooldata["sword_diamond"],
  162. sound = {breaks = "basictools_tool_breaks"},
  163. })
  164. minetest.register_craft({
  165. output = 'default:pick_wood',
  166. recipe = {
  167. {'group:wood', 'group:wood', 'group:wood'},
  168. {'', 'group:stick', ''},
  169. {'', 'group:stick', ''},
  170. },
  171. })
  172. minetest.register_craft({
  173. output = 'default:pick_stone',
  174. recipe = {
  175. {'group:native_stone', 'group:native_stone', 'group:native_stone'},
  176. {'', 'group:stick', ''},
  177. {'', 'group:stick', ''},
  178. }
  179. })
  180. minetest.register_craft({
  181. output = 'default:pick_steel',
  182. recipe = {
  183. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  184. {'', 'group:stick', ''},
  185. {'', 'group:stick', ''},
  186. }
  187. })
  188. minetest.register_craft({
  189. output = 'default:pick_bronze',
  190. recipe = {
  191. {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
  192. {'', 'group:stick', ''},
  193. {'', 'group:stick', ''},
  194. }
  195. })
  196. minetest.register_craft({
  197. output = 'default:pick_bronze2',
  198. recipe = {
  199. {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
  200. {'', 'group:stick', ''},
  201. {'', 'group:stick', ''},
  202. }
  203. })
  204. minetest.register_craft({
  205. output = 'default:pick_mese',
  206. recipe = {
  207. {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
  208. {'', 'darkage:iron_stick', ''},
  209. {'', 'darkage:iron_stick', ''},
  210. }
  211. })
  212. minetest.register_craft({
  213. output = 'default:pick_diamond',
  214. recipe = {
  215. {'default:diamond', 'default:diamond', 'default:diamond'},
  216. {'', 'farming:string', ''},
  217. {'', 'default:pick_steel', ''},
  218. }
  219. })
  220. minetest.register_craft({
  221. output = 'default:shovel_stone',
  222. recipe = {
  223. {'group:native_stone'},
  224. {'group:stick'},
  225. {'group:stick'},
  226. }
  227. })
  228. minetest.register_craft({
  229. output = 'default:shovel_steel',
  230. recipe = {
  231. {'default:steel_ingot'},
  232. {'group:stick'},
  233. {'group:stick'},
  234. }
  235. })
  236. minetest.register_craft({
  237. output = 'default:shovel_bronze',
  238. recipe = {
  239. {'default:copper_ingot'},
  240. {'group:stick'},
  241. {'group:stick'},
  242. }
  243. })
  244. minetest.register_craft({
  245. output = 'default:shovel_bronze2',
  246. recipe = {
  247. {'default:bronze_ingot'},
  248. {'group:stick'},
  249. {'group:stick'},
  250. }
  251. })
  252. minetest.register_craft({
  253. output = 'default:shovel_mese',
  254. recipe = {
  255. {'default:mese_crystal'},
  256. {'darkage:iron_stick'},
  257. {'darkage:iron_stick'},
  258. }
  259. })
  260. minetest.register_craft({
  261. output = 'default:shovel_diamond',
  262. recipe = {
  263. {'default:diamond'},
  264. {'farming:string'},
  265. {'default:shovel_steel'},
  266. }
  267. })
  268. minetest.register_craft({
  269. output = 'default:axe_stone',
  270. recipe = {
  271. {'group:native_stone', 'group:native_stone'},
  272. {'group:native_stone', 'group:stick'},
  273. {'', 'group:stick'},
  274. }
  275. })
  276. minetest.register_craft({
  277. output = 'default:axe_steel',
  278. recipe = {
  279. {'default:steel_ingot', 'default:steel_ingot'},
  280. {'default:steel_ingot', 'group:stick'},
  281. {'', 'group:stick'},
  282. }
  283. })
  284. minetest.register_craft({
  285. output = 'default:axe_bronze',
  286. recipe = {
  287. {'default:copper_ingot', 'default:copper_ingot'},
  288. {'default:copper_ingot', 'group:stick'},
  289. {'', 'group:stick'},
  290. }
  291. })
  292. minetest.register_craft({
  293. output = 'default:axe_bronze2',
  294. recipe = {
  295. {'default:bronze_ingot', 'default:bronze_ingot'},
  296. {'default:bronze_ingot', 'group:stick'},
  297. {'', 'group:stick'},
  298. }
  299. })
  300. minetest.register_craft({
  301. output = 'default:axe_mese',
  302. recipe = {
  303. {'default:mese_crystal', 'default:mese_crystal'},
  304. {'default:mese_crystal', 'darkage:iron_stick'},
  305. {'', 'darkage:iron_stick'},
  306. }
  307. })
  308. minetest.register_craft({
  309. output = 'default:axe_diamond',
  310. recipe = {
  311. {'default:diamond', 'default:diamond'},
  312. {'default:diamond', 'farming:string'},
  313. {'', 'default:axe_steel'},
  314. }
  315. })
  316. minetest.register_craft({
  317. output = 'default:axe_stone',
  318. recipe = {
  319. {'group:native_stone', 'group:native_stone'},
  320. {'group:stick', 'group:native_stone'},
  321. {'group:stick', ''},
  322. }
  323. })
  324. minetest.register_craft({
  325. output = 'default:axe_steel',
  326. recipe = {
  327. {'default:steel_ingot', 'default:steel_ingot'},
  328. {'group:stick', 'default:steel_ingot'},
  329. {'group:stick', ''},
  330. }
  331. })
  332. minetest.register_craft({
  333. output = 'default:axe_bronze',
  334. recipe = {
  335. {'default:copper_ingot', 'default:copper_ingot'},
  336. {'group:stick', 'default:copper_ingot'},
  337. {'group:stick', ''},
  338. }
  339. })
  340. minetest.register_craft({
  341. output = 'default:axe_bronze2',
  342. recipe = {
  343. {'default:bronze_ingot', 'default:bronze_ingot'},
  344. {'group:stick', 'default:bronze_ingot'},
  345. {'group:stick', ''},
  346. }
  347. })
  348. minetest.register_craft({
  349. output = 'default:axe_mese',
  350. recipe = {
  351. {'default:mese_crystal', 'default:mese_crystal'},
  352. {'darkage:iron_stick', 'default:mese_crystal'},
  353. {'darkage:iron_stick', ''},
  354. }
  355. })
  356. minetest.register_craft({
  357. output = 'default:axe_diamond',
  358. recipe = {
  359. {'default:diamond', 'default:diamond'},
  360. {'farming:string', 'default:diamond'},
  361. {'default:axe_steel', ''},
  362. }
  363. })
  364. minetest.register_craft({
  365. output = 'default:sword_stone',
  366. recipe = {
  367. {'group:native_stone'},
  368. {'group:native_stone'},
  369. {'group:stick'},
  370. }
  371. })
  372. minetest.register_craft({
  373. output = 'default:sword_steel',
  374. recipe = {
  375. {'default:steel_ingot'},
  376. {'default:steel_ingot'},
  377. {'group:stick'},
  378. }
  379. })
  380. minetest.register_craft({
  381. output = 'default:sword_bronze',
  382. recipe = {
  383. {'default:copper_ingot'},
  384. {'default:copper_ingot'},
  385. {'group:stick'},
  386. }
  387. })
  388. minetest.register_craft({
  389. output = 'default:sword_bronze2',
  390. recipe = {
  391. {'default:bronze_ingot'},
  392. {'default:bronze_ingot'},
  393. {'group:stick'},
  394. }
  395. })
  396. minetest.register_craft({
  397. output = 'default:sword_mese',
  398. recipe = {
  399. {'default:mese_crystal'},
  400. {'default:mese_crystal'},
  401. {'darkage:iron_stick'},
  402. }
  403. })
  404. minetest.register_craft({
  405. output = 'default:sword_diamond',
  406. recipe = {
  407. {'', 'default:diamond', ''},
  408. {'farming:string', 'default:diamond', 'farming:string'},
  409. {'', 'default:sword_steel', ''},
  410. }
  411. })