1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2025-12-28 01:45:22 +01:00

Clear existing/conflicting dye recipes (#27)

This commit is contained in:
Thomas--S
2025-12-25 17:29:01 +01:00
committed by GitHub
parent 73c80155f8
commit 52f18389b8

View File

@@ -208,6 +208,16 @@ for _,i in ipairs(unifieddyes.base_color_crafts) do
local color = i[1]
local yield = i[7]
minetest.clear_craft( {
type = "shapeless",
recipe = {
i[2],
i[3],
i[4],
i[5],
i[6],
},
})
minetest.register_craft( {
type = "shapeless",
output = "dye:"..color.." "..yield,
@@ -228,6 +238,15 @@ for _,i in ipairs(unifieddyes.base_color_crafts) do
if color ~= "black" and color ~= "white" and not string.find(color, "grey") then
minetest.clear_craft( {
type = "shapeless",
recipe = {
"dye:"..color,
firstdye,
j[4],
j[5]
},
})
minetest.register_craft( {
type = "shapeless",
output = "dye:"..j[1]..color..j[2].." "..j[6],