mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-02-27 07:00:21 +01:00
Added moreores silver and mithril hoe's with toolrank support
This commit is contained in:
parent
15087a7352
commit
b860998589
26
hoes.lua
26
hoes.lua
@ -469,4 +469,30 @@ if minetest.get_modpath("moreores") then
|
|||||||
{"", "", "group:stick"}
|
{"", "", "group:stick"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
farming.register_hoe(":moreores:hoe_silver", {
|
||||||
|
description = S("%s Hoe"):format(S("Silver")),
|
||||||
|
inventory_image = "moreores_tool_silverhoe.png",
|
||||||
|
max_uses = 300,
|
||||||
|
material = "moreores:silver_ingot",
|
||||||
|
})
|
||||||
|
|
||||||
|
farming.register_hoe(":moreores:hoe_mithril", {
|
||||||
|
description = S("%s Hoe"):format(S("Mithril")),
|
||||||
|
inventory_image = "moreores_tool_mithrilhoe.png",
|
||||||
|
max_uses = 1000,
|
||||||
|
material = "moreores:mithril_ingot",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Toolranks support
|
||||||
|
if tr then
|
||||||
|
|
||||||
|
minetest.override_item("moreores:hoe_silver", {
|
||||||
|
original_description = S("%s Hoe"):format(S("Silver")),
|
||||||
|
description = toolranks.create_description("Silver Hoe")})
|
||||||
|
|
||||||
|
minetest.override_item("moreores:hoe_mithril", {
|
||||||
|
original_description = S("%s Hoe"):format(S("Mithril")),
|
||||||
|
description = toolranks.create_description("Mithril Hoe")})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user