2024-06-27 21:01:35 -06:00

19 lines
551 B
Lua

PyuTestCore.make_sword = function (nsname, desc, texture, damage, durability)
PyuTestCore.make_tool(nsname, desc, {}, texture, {
stack_max = 1,
tool_capabilities = {
groupcaps = {
block = {
uses = durability / 2
}
},
punch_attack_uses = durability,
damage_groups = {fleshy = damage}
}
})
end
PyuTestCore.make_sword("pyutest_core:iron_sword", "Iron Sword", "iron-sword.png", 7, 750)
PyuTestCore.make_sword("pyutest_core:diamond_sword", "Diamond Sword", "diamond-sword.png", 12, 1200)