mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2026-01-01 03:25:22 +01:00
Clear existing/conflicting dye recipes (#27)
This commit is contained in:
@@ -208,6 +208,16 @@ for _,i in ipairs(unifieddyes.base_color_crafts) do
|
|||||||
local color = i[1]
|
local color = i[1]
|
||||||
local yield = i[7]
|
local yield = i[7]
|
||||||
|
|
||||||
|
minetest.clear_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {
|
||||||
|
i[2],
|
||||||
|
i[3],
|
||||||
|
i[4],
|
||||||
|
i[5],
|
||||||
|
i[6],
|
||||||
|
},
|
||||||
|
})
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "dye:"..color.." "..yield,
|
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
|
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( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "dye:"..j[1]..color..j[2].." "..j[6],
|
output = "dye:"..j[1]..color..j[2].." "..j[6],
|
||||||
|
|||||||
Reference in New Issue
Block a user