mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 19:10:26 +01:00
Make technic dusts for silver, tin, mithril to work.
This commit is contained in:
parent
1071331ebe
commit
33254934b7
@ -5,3 +5,4 @@ bonemeal?
|
|||||||
vessels?
|
vessels?
|
||||||
farming?
|
farming?
|
||||||
cotton?
|
cotton?
|
||||||
|
technic?
|
||||||
|
@ -202,3 +202,38 @@ if minetest.get_modpath("cotton") then
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user