Add copper sword
This commit is contained in:
parent
2949dc83a2
commit
d73541845c
|
@ -147,6 +147,28 @@ minetest.register_tool("mcl_copper_stuff:shovel", {
|
|||
},
|
||||
})
|
||||
|
||||
-- Copper Sword
|
||||
minetest.register_tool("mcl_copper_stuff:sword", {
|
||||
description = S("Copper Sword"),
|
||||
_doc_items_longdesc = sword_longdesc,
|
||||
inventory_image = "default_tool_coppersword.png",
|
||||
wield_scale = wield_scale,
|
||||
groups = { weapon=1, sword=1, dig_speed_class=3, enchantability=9 },
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.625,
|
||||
max_drop_level=3,
|
||||
damage_groups = {fleshy=5},
|
||||
punch_attack_uses = 192,
|
||||
},
|
||||
sound = { breaks = "default_tool_breaks" },
|
||||
_repair_material = "mcl_copper:copper_ingot",
|
||||
_mcl_toollike_wield = true,
|
||||
_mcl_diggroups = {
|
||||
swordy = { speed = 5, level = 3, uses = 192 },
|
||||
swordy_cobweb = { speed = 5, level = 3, uses = 192 }
|
||||
},
|
||||
})
|
||||
|
||||
-- Registering crafts
|
||||
minetest.register_craft({
|
||||
output = "mcl_copper_stuff:pick",
|
||||
|
@ -173,4 +195,13 @@ minetest.register_craft({
|
|||
{"mcl_core:stick"},
|
||||
{"mcl_core:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_copper_stuff:sword",
|
||||
recipe = {
|
||||
{"mcl_copper:copper_ingot"},
|
||||
{"mcl_copper:copper_ingot"},
|
||||
{"mcl_core:stick"},
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue