mirror of
https://github.com/minetest-mods/moreores.git
synced 2025-07-27 04:00:20 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
5
init.lua
5
init.lua
@ -197,18 +197,22 @@ local function add_ore(modname, description, mineral_name, oredef)
|
||||
|
||||
if tool_name == "sword" then
|
||||
tdef.description = S("@1 Sword", S(description))
|
||||
tdef.groups = {sword = 1}
|
||||
end
|
||||
|
||||
if tool_name == "pick" then
|
||||
tdef.description = S("@1 Pickaxe", S(description))
|
||||
tdef.groups = {pickaxe = 1}
|
||||
end
|
||||
|
||||
if tool_name == "axe" then
|
||||
tdef.description = S("@1 Axe", S(description))
|
||||
tdef.groups = {axe = 1}
|
||||
end
|
||||
|
||||
if tool_name == "shovel" then
|
||||
tdef.description = S("@1 Shovel", S(description))
|
||||
tdef.groups = {shovel = 1}
|
||||
tdef.wield_image = toolimg_base .. tool_name .. ".png^[transformR90"
|
||||
end
|
||||
|
||||
@ -216,6 +220,7 @@ local function add_ore(modname, description, mineral_name, oredef)
|
||||
|
||||
if tool_name == "hoe" and minetest.get_modpath("farming") then
|
||||
tdef.max_uses = tooldef.max_uses
|
||||
tdef.material = ingot
|
||||
tdef.description = S("@1 Hoe", S(description))
|
||||
farming.register_hoe(fulltool_name, tdef)
|
||||
end
|
||||
|
Reference in New Issue
Block a user