1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-11 12:50:41 +01:00

Add craft recipe for bones:bones with 9 bonemeal:bone

Override craft recipe of witchcraft:shelf
This commit is contained in:
sys4-fr 2017-03-16 15:15:38 +01:00
parent c62560b8ff
commit 6b4cc9c12a
2 changed files with 41 additions and 3 deletions

View File

@ -1,3 +1,5 @@
default default
witchcraft? witchcraft?
bones?
bonemeal?
vessels?

View File

@ -1,4 +1,4 @@
-- Change craft recipe of Witchcraft:tooth -- Change some craft recipe of Witchcraft
if minetest.get_modpath("witchcraft") then if minetest.get_modpath("witchcraft") then
-- clear crafts with this particular recipe -- clear crafts with this particular recipe
@ -25,4 +25,40 @@ if minetest.get_modpath("witchcraft") then
{"", "default:sand", ""}, {"", "default:sand", ""},
} }
}) })
-- Register craft recipe of bones:bones with bonemeal:bone
if minetest.get_modpath("bones")
and minetest.get_modpath("bonemeal") and bonemeal
then
minetest.register_craft(
{
output = "bones:bones",
recipe = {
{"bonemeal:bone", "bonemeal:bone", "bonemeal:bone"},
{"bonemeal:bone", "bonemeal:bone", "bonemeal:bone"},
{"bonemeal:bone", "bonemeal:bone", "bonemeal:bone"},
}
})
end
-- Override craft recipe of witchcraft:shelf
if minetest.get_modpath("vessels") then
minetest.clear_craft(
{
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"group:potion", "group:potion", "group:potion"},
{"group:wood", "group:wood", "group:wood"},
}
})
minetest.register_craft(
{
output = "witchcraft:shelf",
recipe = {
{"", "group:potion", ""},
{"group:potion", "vessels:shelf", "group:potion"},
}
})
end
end end