29 lines
657 B
Lua
29 lines
657 B
Lua
|
minetest.register_tool("brewing:magic_sword", {
|
||
|
description = ("Магический Меч"),
|
||
|
inventory_image = "brewing_magic_sword.png",
|
||
|
wield_image = "brewing_magic_sword.png",
|
||
|
tool_capabilities = {
|
||
|
full_punch_interval = 0.6,
|
||
|
max_drop_level = 1,
|
||
|
groupcaps = {
|
||
|
snappy = {
|
||
|
times = {[1] = 1.70, [2] = 0.70, [3] = 0.25},
|
||
|
uses = 50,
|
||
|
maxlevel = 3
|
||
|
}
|
||
|
},
|
||
|
damage_groups = {fleshy = 10}
|
||
|
},
|
||
|
groups = {sword = 1},
|
||
|
sound = {breaks = "default_tool_breaks"}
|
||
|
})
|
||
|
|
||
|
|
||
|
minetest.register_craft({
|
||
|
output = "brewing:magic_sword",
|
||
|
recipe = {
|
||
|
{"", "brewing:magic_gem", ""},
|
||
|
{"", "brewing:magic_gem", ""},
|
||
|
{"", "default:stick", ""}
|
||
|
}
|
||
|
})
|