mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-07-07 18:30:28 +02:00
Add cotton mod
Update submodule unifieddyes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user