hello! im making an addon for Electrodynamics's wire_mill recipe (example) and struggling to make the byproducts an optional list, that can also be a single item.
currently, my key is as follows:
{
"name": "itembi",
"role": "output",
"type": {
"type": "list",
"component": "kubejsvoltaic:probable_item",
"can_write_self": true,
"bounds": {
"min": 0
}
},
"function_names": ["itemBi", "itemByproducts"],
"optional": {},
"excluded": true
}
(kubejsvoltaic:probable_item is my custom component, and seeing how the basemod recipes don't error, it's probably good - changing it to item_stack does prompt errors from them)
yet, my current code throws Invalid component itembi: kubejsvoltaic:probable_item[?] - Component 'kubejsvoltaic:probable_item[?]' is not allowed to be empty!, despite the bounds seemingly allowing a minimum of 0 elements?
removing the key fixes any errors and allows custom recipes to be registered, so this is definitely the issue - any clues?