79 lines
2.1 KiB
Lua
79 lines
2.1 KiB
Lua
minetest.register_tool(":default:sword_wood", {
|
|
description = "Wooden Sword",
|
|
inventory_image = "default_tool_woodsword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1,
|
|
max_drop_level=0,
|
|
groupcaps={
|
|
snappy={times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1},
|
|
},
|
|
damage_groups = {fleshy=2},
|
|
},
|
|
wield_scale = {x=1.5, y=2, z=1},
|
|
})
|
|
minetest.register_tool(":default:sword_stone", {
|
|
description = "Stone Sword",
|
|
inventory_image = "enhancements_sword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.2,
|
|
max_drop_level=0,
|
|
groupcaps={
|
|
snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
|
|
},
|
|
damage_groups = {fleshy=4},
|
|
},
|
|
wield_scale = {x=1.5, y=2, z=1},
|
|
})
|
|
minetest.register_tool(":default:sword_steel", {
|
|
description = "Steel Sword",
|
|
inventory_image = "default_tool_steelsword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.8,
|
|
max_drop_level=1,
|
|
groupcaps={
|
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2},
|
|
},
|
|
damage_groups = {fleshy=6},
|
|
},
|
|
wield_scale = {x=1.5, y=2, z=1},
|
|
})
|
|
minetest.register_tool(":default:sword_bronze", {
|
|
description = "Bronze Sword",
|
|
inventory_image = "default_tool_bronzesword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.8,
|
|
max_drop_level=1,
|
|
groupcaps={
|
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=40, maxlevel=2},
|
|
},
|
|
damage_groups = {fleshy=6},
|
|
},
|
|
wield_scale = {x=1.5, y=2, z=1},
|
|
})
|
|
minetest.register_tool(":default:sword_mese", {
|
|
description = "Mese Sword",
|
|
inventory_image = "default_tool_mesesword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.7,
|
|
max_drop_level=1,
|
|
groupcaps={
|
|
snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=30, maxlevel=3},
|
|
},
|
|
damage_groups = {fleshy=7},
|
|
},
|
|
wield_scale = {x=1.5, y=2, z=1},
|
|
})
|
|
minetest.register_tool(":default:sword_diamond", {
|
|
description = "Diamond Sword",
|
|
inventory_image = "default_tool_diamondsword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.7,
|
|
max_drop_level=1,
|
|
groupcaps={
|
|
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
|
|
},
|
|
damage_groups = {fleshy=8},
|
|
},
|
|
wield_scale = {x=1.5, y=2, z=1},
|
|
})
|