1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-13 14:00:32 +01:00

Make technic dusts for silver, tin, mithril to work.

This commit is contained in:
sys4-fr 2017-04-12 03:25:52 +02:00
parent 1071331ebe
commit 33254934b7
2 changed files with 36 additions and 0 deletions

View File

@ -5,3 +5,4 @@ bonemeal?
vessels?
farming?
cotton?
technic?

View File

@ -202,3 +202,38 @@ if minetest.get_modpath("cotton") then
}
})
end
-- Technic
if minetest.get_modpath("technic") then
-- make silver, tin, mithril to be grinded
local recipes = {
-- Dusts
{"default:tin_lump", "technic:tin_dust 2"},
{"default:silver_lump", "technic:silver_dust 2"},
{"default:mithril_lump", "technic:mithril_dust 2"},
}
for _, data in pairs(recipes) do
technic.register_grinder_recipe({input = {data[1]}, output = data[2]})
end
-- dusts
local function register_dust(name, ingot)
local lname = string.lower(name)
lname = string.gsub(lname, ' ', '_')
if ingot then
minetest.register_craft(
{
type = "cooking",
recipe = "technic:"..lname.."_dust",
output = ingot,
})
technic.register_grinder_recipe({ input = {ingot}, output = "technic:"..lname.."_dust 1" })
end
end
register_dust("Mithril", "default:mithril_ingot")
register_dust("Silver", "default:silver_ingot")
register_dust("Tin", "default:tin_ingot")
end