mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-13 14:00:32 +01:00
Merge branch 'NALC2' into NALC
This commit is contained in:
commit
d2e504a49d
|
@ -5,3 +5,4 @@ bonemeal?
|
|||
vessels?
|
||||
farming?
|
||||
cotton?
|
||||
technic?
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user