init.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. minetest.register_tool('mcl_multitool:multi_tool', {
  2. description = 'multi tool',
  3. inventory_image = 'default_tool_multitool.png',
  4. wield_scale = {x=1.3,y=1.4,z=2.0},
  5. tool_capabilities = {
  6. full_punch_interval = 0.8,
  7. groups = { tool=1, pickaxe=1, dig_speed_class=20},
  8. { tool=1, shovel=1, dig_speed_class=20},
  9. { tool=1, axe=1, dig_speed_class=20 },
  10. { weapon=1, sword=1, dig_speed_class=32 },
  11. -- DAMAGE
  12. damage_groups = {fleshy=12},
  13. },
  14. -- SOUND TOOLS
  15. sound = {breaks = "default_tool_breaks"},
  16. -- MCL DIG GROUPS AND WIELD
  17. _repair_material = "mcl_core:diamond",
  18. _mcl_toollike_wield = true,
  19. _mcl_diggroups = {
  20. pickaxey = { speed =20, level = 7, uses = 6248 },
  21. shovely = { speed = 20, level = 7, uses = 6248 },
  22. axey = { speed = 20, level = 7, uses = 6248 },
  23. swordy = { speed = 32, level = 7, uses = 6248 },
  24. swordy_cobweb = { speed = 32, level = 7, uses = 6248 }
  25. -- pickaxey = { speed = 8, level = 5, uses = 1562 }
  26. },
  27. })
  28. -- CRAFT
  29. minetest.register_craft({
  30. output = "mcl_multitool:multi_tool",
  31. recipe = {
  32. {"mcl_tools:axe_diamond", "mcl_tools:sword_diamond", "mcl_tools:pick_diamond"},
  33. {"", "mcl_tools:shovel_diamond", ""},
  34. {"", "mcl_core:gold_ingot", ""},
  35. }
  36. })