1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-07 10:20:43 +02:00

Add cotton mod

Update submodule unifieddyes
This commit is contained in:
sys4-fr
2017-04-03 19:02:51 +02:00
parent d9fe75b0e6
commit aa32feff2c
96 changed files with 331 additions and 2 deletions

View File

@ -170,3 +170,35 @@ if minetest.get_modpath("witchcraft") then
end
end
end
-- Make compatible cotton mod
if minetest.get_modpath("cotton") then
-- clear existing craft recipes for white wool and cotton
minetest.clear_craft(
{
recipe = {
{"farming:cotton", "farming:cotton"},
{"farming:cotton", "farming:cotton"},
}
})
-- register wool:white craft recipe
minetest.register_craft(
{
output = "wool:white",
recipe = {
{"farming:cotton", "farming:cotton"},
{"farming:cotton", "farming:cotton"},
}
})
-- register cotton:white craft recipe
minetest.register_craft(
{
output = "cotton:white 4",
recipe = {
{"wool:white", "wool:white"},
{"wool:white", "wool:white"},
}
})
end