Code: Select all
[DEBUG] checking recipes
[RECIPE ERROR] group:flower,color_grey in recipe for dye:grey
[RECIPE ERROR] group:flower,color_dark_grey in recipe for dye:dark_grey
[RECIPE ERROR] group:flower,color_black in recipe for dye:black
[RECIPE ERROR] group:flower,color_cyan in recipe for dye:cyan
[RECIPE ERROR] group:flower,color_dark_green in recipe for dye:dark_green
[RECIPE ERROR] group:flower,color_green in recipe for dye:green
[RECIPE ERROR] group:flower,color_brown in recipe for dye:brown
[RECIPE ERROR] group:flower,color_magenta in recipe for dye:magenta
[RECIPE ERROR] group:flower,color_pink in recipe for dye:pink
Code: Select all
-- Define items
for _, row in ipairs(dyelocal.dyes) do
local name = row[1]
local description = row[2]
local groups = row[3]
local item_name = "dye:"..name
local item_image = "dye_"..name..".png"
minetest.register_craftitem(item_name, {
inventory_image = item_image,
description = description,
groups = groups
})
minetest.register_craft({
type = "shapeless",
output = item_name.." 4",
recipe = {"group:flower,color_"..name},
})
end
Now here’s my question: Is this notation like “group:flower,color_grey” inside a crafting recipe an error in minetest_game? Is it valid notation? I am not sure if the comma is a valid character in itemstrings.
If it is a valid notation, please enlighten me and explain for what the comma is for. Thanks. :-)
If the notation is valid, then the crafting recipe checker has made false-positive results and needs to be fixed.
If the notation is invalid, then the bug lies in minetest_game and needs to be fixed.
Either way, there is a bug, I just don’t know who is “guilty”. ;-)
Oh, while I’m at it: Which characters are allowed in an itemstring, anyways?