init.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. -- Author: W3RQ01
  2. -- License: GPL 3.0
  3. minetest.register_tool("pro_weaponry_tools: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_tools:handle",
  11. recipe = {
  12. {'','',''},
  13. {'default:stick','group:wool',''},
  14. {'','',''},
  15. }
  16. })
  17. minetest.register_tool("pro_weaponry_tools: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_tools:pole",
  25. recipe = {
  26. {'','','default:stick'},
  27. {'','pro_weaponry_tools:handle',''},
  28. {'default:stick','',''},
  29. }
  30. })
  31. minetest.register_tool("pro_weaponry_tools:metal_handle", {
  32. description = "Metal Handle",
  33. inventory_image = "metal_handle.png",
  34. wield_image = "metal_handle.png",
  35. stack_max = 99,
  36. })
  37. minetest.register_craft({
  38. output = "pro_weaponry_tools:metal_handle",
  39. recipe = {
  40. {'','',''},
  41. {'','default:iron_ingot','pro_weaponry_tools:rubber_grip'},
  42. {'','',''},
  43. }
  44. })
  45. minetest.register_tool("pro_weaponry_tools:metal_pole", {
  46. description = "Metal Pole",
  47. inventory_image = "metal_pole.png",
  48. wield_image = "metal_pole.png",
  49. stack_max = 99,
  50. })
  51. minetest.register_craft({
  52. output = "pro_weaponry_tools:metal_pole",
  53. recipe = {
  54. {'','','default:iron_ingot'},
  55. {'','pro_weaponry_tools:metal_pole',''},
  56. {'default:iron_ingot','',''},
  57. }
  58. })
  59. minetest.register_tool("pro_weaponry_tools:rubber_grip", {
  60. description = "Rubber Grip",
  61. inventory_image = "rubber_grip.png",
  62. wield_image = "rubber_grip.png",
  63. stack_max = 99,
  64. })
  65. minetest.register_craft({
  66. output = "pro_weaponry_tools:rubber_grip",
  67. recipe = {
  68. {'','',''},
  69. {'','default:clay_lump','default:coal_lump'},
  70. {'','',''},
  71. }
  72. })