init.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. -- Author: W3RQ01
  2. -- License: GPL 3.0
  3. minetest.register_tool("pro_weaponry:handle", {
  4. description = "Handle",
  5. inventory_image = "handle.png",
  6. wield_image = "handle.png",
  7. stack_max = 99,
  8. })
  9. minetest.register_craft({
  10. output = "pro_weaponry:handle",
  11. recipe = {
  12. {'','',''},
  13. {'default:stick','group:wool',''},
  14. {'','',''},
  15. }
  16. })
  17. minetest.register_tool("pro_weaponry:pole", {
  18. description = "Pole",
  19. inventory_image = "pole.png",
  20. wield_image = "pole.png",
  21. stack_max = 99,
  22. })
  23. minetest.register_craft({
  24. output = "pro_weaponry:handle",
  25. recipe = {
  26. {'','','default:stick'},
  27. {'','pro_weaponry:handle',''},
  28. {'default:stick','',''},
  29. }
  30. })
  31. minetest.register_tool("pro_weaponry:longsword_diamond", {
  32. description = "Diamond Longsword",
  33. inventory_image = "longsword_diamond.png",
  34. wield_scale = {x=2, y=3, z=1},
  35. tool_capabilities = {
  36. full_punch_interval = 1,
  37. max_drop_level=3,
  38. groupcaps={
  39. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=150, maxlevel=3},
  40. },
  41. damage_groups = {fleshy=17},
  42. },
  43. sound = {breaks = "default_tool_breaks"},
  44. })
  45. minetest.register_craft({
  46. output = "pro_weaponry:longsword_diamond",
  47. recipe = {
  48. {'','','default:diamond'},
  49. {'','default:diamond',''},
  50. {'default:diamond','pro_weaponry:handle','default:diamond'},
  51. }
  52. })
  53. minetest.register_tool("pro_weaponry:longsword_mese", {
  54. description = "Mese Longsword",
  55. inventory_image = "longsword_mese.png",
  56. wield_scale = {x=2, y=3, z=1},
  57. tool_capabilities = {
  58. full_punch_interval = 1,
  59. max_drop_level=3,
  60. groupcaps={
  61. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=120, maxlevel=3},
  62. },
  63. damage_groups = {fleshy=15},
  64. },
  65. sound = {breaks = "default_tool_breaks"},
  66. })
  67. minetest.register_craft({
  68. output = "pro_weaponry:longsword_mese",
  69. recipe = {
  70. {'','','default:mese_crystal'},
  71. {'','default:mese_crystal',''},
  72. {'default:mese_crystal','pro_weaponry:handle','default:mese_crystal'},
  73. }
  74. })
  75. minetest.register_tool("pro_weaponry:longsword_iron", {
  76. description = "Iron Longsword",
  77. inventory_image = "longsword_iron.png",
  78. wield_scale = {x=2, y=3, z=1},
  79. tool_capabilities = {
  80. full_punch_interval = 1,
  81. max_drop_level=3,
  82. groupcaps={
  83. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=105, maxlevel=3},
  84. },
  85. damage_groups = {fleshy=13},
  86. },
  87. sound = {breaks = "default_tool_breaks"},
  88. })
  89. minetest.register_craft({
  90. output = "pro_weaponry:longsword_iron",
  91. recipe = {
  92. {'','','default:iron_ingot'},
  93. {'','default:iron_ingot',''},
  94. {'default:iron_ingot','pro_weaponry:handle','default:iron_ingot'},
  95. }
  96. })
  97. minetest.register_tool("pro_weaponry:longsword_stone", {
  98. description = "Stone Longsword",
  99. inventory_image = "longsword_stone.png",
  100. wield_scale = {x=2, y=3, z=1},
  101. tool_capabilities = {
  102. full_punch_interval = 1,
  103. max_drop_level=3,
  104. groupcaps={
  105. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=90, maxlevel=3},
  106. },
  107. damage_groups = {fleshy=10},
  108. },
  109. sound = {breaks = "default_tool_breaks"},
  110. })
  111. minetest.register_craft({
  112. output = "pro_weaponry:longsword_stone",
  113. recipe = {
  114. {'','','default:cobble'},
  115. {'','default:cobble',''},
  116. {'default:cobble','pro_weaponry:handle','default:cobble'},
  117. }
  118. })
  119. minetest.register_tool("pro_weaponry:saber_diamond", {
  120. description = "Diamond Saber",
  121. inventory_image = "saber_diamond.png",
  122. wield_scale = {x=2, y=3, z=1},
  123. tool_capabilities = {
  124. full_punch_interval = 0.75,
  125. max_drop_level=3,
  126. groupcaps={
  127. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=150, maxlevel=3},
  128. },
  129. damage_groups = {fleshy=16},
  130. },
  131. sound = {breaks = "default_tool_breaks"},
  132. })
  133. minetest.register_craft({
  134. output = "pro_weaponry:saber_diamond",
  135. recipe = {
  136. {'','default:diamond','default:diamond'},
  137. {'','default:diamond',''},
  138. {'','pro_weaponry:handle',''},
  139. }
  140. })
  141. minetest.register_tool("pro_weaponry:saber_mese", {
  142. description = "Mese Saber",
  143. inventory_image = "saber_mese.png",
  144. wield_scale = {x=2, y=3, z=1},
  145. tool_capabilities = {
  146. full_punch_interval = 0.75,
  147. max_drop_level=3,
  148. groupcaps={
  149. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=120, maxlevel=3},
  150. },
  151. damage_groups = {fleshy=14},
  152. },
  153. sound = {breaks = "default_tool_breaks"},
  154. })
  155. minetest.register_craft({
  156. output = "pro_weaponry:saber_mese",
  157. recipe = {
  158. {'','default:mese_crystal','default:mese_crystal'},
  159. {'','default:mese_crystal',''},
  160. {'','pro_weaponry:handle',''},
  161. }
  162. })
  163. minetest.register_tool("pro_weaponry:saber_iron", {
  164. description = "Iron Saber",
  165. inventory_image = "saber_iron.png",
  166. wield_scale = {x=2, y=3, z=1},
  167. tool_capabilities = {
  168. full_punch_interval = 0.75,
  169. max_drop_level=3,
  170. groupcaps={
  171. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=105, maxlevel=3},
  172. },
  173. damage_groups = {fleshy=12},
  174. },
  175. sound = {breaks = "default_tool_breaks"},
  176. })
  177. minetest.register_craft({
  178. output = "pro_weaponry:saber_iron",
  179. recipe = {
  180. {'','default:iron_ingot','default:iron_ingot'},
  181. {'','default:iron_ingot',''},
  182. {'','pro_weaponry:handle',''},
  183. }
  184. })
  185. minetest.register_tool("pro_weaponry:saber_stone", {
  186. description = "Stone Saber",
  187. inventory_image = "saber_stone.png",
  188. wield_scale = {x=2, y=3, z=1},
  189. tool_capabilities = {
  190. full_punch_interval = 0.75,
  191. max_drop_level=3,
  192. groupcaps={
  193. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=90, maxlevel=3},
  194. },
  195. damage_groups = {fleshy=9},
  196. },
  197. sound = {breaks = "default_tool_breaks"},
  198. })
  199. minetest.register_craft({
  200. output = "pro_weaponry:saber_stone",
  201. recipe = {
  202. {'','default:cobble','default:cobble'},
  203. {'','default:cobble',''},
  204. {'','pro_weaponry:handle',''},
  205. }
  206. })
  207. minetest.register_tool("pro_weaponry:hammer_diamond", {
  208. description = "Diamond Battlehammer",
  209. inventory_image = "hammer_diamond.png",
  210. wield_scale = {x=2, y=3, z=1},
  211. tool_capabilities = {
  212. full_punch_interval = 2,
  213. max_drop_level=3,
  214. groupcaps={
  215. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=150, maxlevel=3},
  216. },
  217. damage_groups = {fleshy=22},
  218. },
  219. sound = {breaks = "default_tool_breaks"},
  220. })
  221. minetest.register_craft({
  222. output = "pro_weaponry:hammer_diamond",
  223. recipe = {
  224. {'default:diamond','default:diamond','default:diamond'},
  225. {'default:diamond','default:diamond','default:diamond'},
  226. {'','pro_weaponry:handle',''},
  227. }
  228. })
  229. minetest.register_tool("pro_weaponry:hammer_mese", {
  230. description = "Mese Battlehammer",
  231. inventory_image = "hammer_mese.png",
  232. wield_scale = {x=2, y=3, z=1},
  233. tool_capabilities = {
  234. full_punch_interval = 2,
  235. max_drop_level=3,
  236. groupcaps={
  237. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=120, maxlevel=3},
  238. },
  239. damage_groups = {fleshy=18.5},
  240. },
  241. sound = {breaks = "default_tool_breaks"},
  242. })
  243. minetest.register_craft({
  244. output = "pro_weaponry:hammer_mese",
  245. recipe = {
  246. {'default:mese_crystal','default:mese_crystal','default:mese_crystal'},
  247. {'default:mese_crystal','default:mese_crystal','default:mese_crystal'},
  248. {'','pro_weaponry:handle',''},
  249. }
  250. })
  251. minetest.register_tool("pro_weaponry:hammer_iron", {
  252. description = "Iron Battlehammer",
  253. inventory_image = "hammer_iron.png",
  254. wield_scale = {x=2, y=3, z=1},
  255. tool_capabilities = {
  256. full_punch_interval = 2,
  257. max_drop_level=3,
  258. groupcaps={
  259. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=105, maxlevel=3},
  260. },
  261. damage_groups = {fleshy=15},
  262. },
  263. sound = {breaks = "default_tool_breaks"},
  264. })
  265. minetest.register_craft({
  266. output = "pro_weaponry:hammer_diamond",
  267. recipe = {
  268. {'default:iron_ingot','default:iron_ingot','default:iron_ingot'},
  269. {'default:iron_ingot','default:iron_ingot','default:iron_ingot'},
  270. {'','pro_weaponry:handle',''},
  271. }
  272. })
  273. minetest.register_tool("pro_weaponry:hammer_stone", {
  274. description = "Stone Battlehammer",
  275. inventory_image = "hammer_stone.png",
  276. wield_scale = {x=2, y=3, z=1},
  277. tool_capabilities = {
  278. full_punch_interval = 2,
  279. max_drop_level=3,
  280. groupcaps={
  281. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=90, maxlevel=3},
  282. },
  283. damage_groups = {fleshy=11.5},
  284. },
  285. sound = {breaks = "default_tool_breaks"},
  286. })
  287. minetest.register_craft({
  288. output = "pro_weaponry:hammer_stone",
  289. recipe = {
  290. {'default:cobble','default:cobble','default:cobble'},
  291. {'default:cobble','default:cobble','default:cobble'},
  292. {'','pro_weaponry:handle',''},
  293. }
  294. })
  295. minetest.register_tool("pro_weaponry:katana_diamond", {
  296. description = "Diamond Katana",
  297. inventory_image = "katana_diamond.png",
  298. wield_scale = {x=1, y=2, z=1},
  299. tool_capabilities = {
  300. full_punch_interval = 0.5,
  301. max_drop_level=3,
  302. groupcaps={
  303. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=150, maxlevel=3},
  304. },
  305. damage_groups = {fleshy=16},
  306. },
  307. sound = {breaks = "default_tool_breaks"},
  308. })
  309. minetest.register_craft({
  310. output = "pro_weaponry:katana_diamond",
  311. recipe = {
  312. {'','','default:diamond'},
  313. {'','default:diamond',''},
  314. {'pro_weaponry:handle','',''},
  315. }
  316. })
  317. minetest.register_tool("pro_weaponry:katana_mese", {
  318. description = "Mese Katana",
  319. inventory_image = "katana_mese.png",
  320. wield_scale = {x=1, y=2, z=1},
  321. tool_capabilities = {
  322. full_punch_interval = 0.5,
  323. max_drop_level=3,
  324. groupcaps={
  325. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=120, maxlevel=3},
  326. },
  327. damage_groups = {fleshy=14},
  328. },
  329. sound = {breaks = "default_tool_breaks"},
  330. })
  331. minetest.register_craft({
  332. output = "pro_weaponry:katana_mese",
  333. recipe = {
  334. {'','','default:mese_crystal'},
  335. {'','default:mese_crystal',''},
  336. {'pro_weaponry:handle','',''},
  337. }
  338. })
  339. minetest.register_tool("pro_weaponry:katana_iron", {
  340. description = "Iron Katana",
  341. inventory_image = "katana_iron.png",
  342. wield_scale = {x=1, y=2, z=1},
  343. tool_capabilities = {
  344. full_punch_interval = 0.5,
  345. max_drop_level=3,
  346. groupcaps={
  347. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=105, maxlevel=3},
  348. },
  349. damage_groups = {fleshy=12},
  350. },
  351. sound = {breaks = "default_tool_breaks"},
  352. })
  353. minetest.register_craft({
  354. output = "pro_weaponry:katana_iron",
  355. recipe = {
  356. {'','','default:iron_ingot'},
  357. {'','default:iron_ingot',''},
  358. {'pro_weaponry:handle','',''},
  359. }
  360. })
  361. minetest.register_tool("pro_weaponry:katana_wood", {
  362. description = "Wood Katana",
  363. inventory_image = "katana_wood.png",
  364. wield_scale = {x=1, y=2, z=1},
  365. tool_capabilities = {
  366. full_punch_interval = 0.5,
  367. max_drop_level=3,
  368. groupcaps={
  369. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=40, maxlevel=3},
  370. },
  371. damage_groups = {fleshy=6.5},
  372. },
  373. sound = {breaks = "default_tool_breaks"},
  374. })
  375. minetest.register_craft({
  376. output = "pro_weaponry:katana_wood",
  377. recipe = {
  378. {'','','default:wood'},
  379. {'','default:wood',''},
  380. {'pro_weaponry:handle','',''},
  381. }
  382. })
  383. minetest.register_tool("pro_weaponry:halberd_diamond", {
  384. description = "Diamond Halberd",
  385. inventory_image = "halberd_diamond.png",
  386. wield_scale = {x=2, y=3, z=1},
  387. tool_capabilities = {
  388. full_punch_interval = 1.7,
  389. max_drop_level=3,
  390. groupcaps={
  391. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=150, maxlevel=3},
  392. },
  393. damage_groups = {fleshy=20.5},
  394. },
  395. sound = {breaks = "default_tool_breaks"},
  396. })
  397. minetest.register_craft({
  398. output = "pro_weaponry:halberd_diamond",
  399. recipe = {
  400. {'','','default:diamond'},
  401. {'default:diamond','default:diamond',''},
  402. {'default:diamond','pro_weaponry:pole',''},
  403. }
  404. })
  405. minetest.register_tool("pro_weaponry:halberd_mese", {
  406. description = "Mese Halberd",
  407. inventory_image = "halberd_mese.png",
  408. wield_scale = {x=2, y=3, z=1},
  409. tool_capabilities = {
  410. full_punch_interval = 1.7,
  411. max_drop_level=3,
  412. groupcaps={
  413. oddly_breakable_by_hand={times={[1]=2.00, [2]=1.20, [3]=0.20}, uses=150, maxlevel=3},
  414. },
  415. damage_groups = {fleshy=17},
  416. },
  417. sound = {breaks = "default_tool_breaks"},
  418. })
  419. minetest.register_craft({
  420. output = "pro_weaponry:halberd_mese",
  421. recipe = {
  422. {'','','default:mese_crystal'},
  423. {'default:mese_crystal','default:mese_crystal',''},
  424. {'default:mese_crystal','pro_weaponry:pole',''},
  425. }
  426. })