battleaxe.lua 886 B

12345678910111213141516171819202122232425262728293031
  1. -- internationalization boilerplate
  2. local MP = minetest.get_modpath(minetest.get_current_modname())
  3. local S, NS = dofile(MP.."/intllib.lua")
  4. minetest.register_alias("castle:battleaxe", "castle_weapons:battleaxe")
  5. minetest.register_tool("castle_weapons:battleaxe", {
  6. description = S("Battleaxe"),
  7. inventory_image = "castle_battleaxe.png",
  8. tool_capabilities = {
  9. full_punch_interval = 1.2,
  10. max_drop_level=1,
  11. groupcaps={
  12. choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=40, maxlevel=3},
  13. snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
  14. },
  15. damage_groups = {fleshy=10, knockback = 2},
  16. },
  17. })
  18. --[[
  19. minetest.register_craft({
  20. output = "castle_weapons:battleaxe",
  21. recipe = {
  22. {"default:steel_ingot", "default:steel_ingot","default:steel_ingot"},
  23. {"default:steel_ingot", "default:stick","default:steel_ingot"},
  24. {"", "default:stick",""}
  25. }
  26. })
  27. --]]