I think Mojang should add a container components group
This is interpretation of it
I designed this with custom ui in mind as well as it being able to be used for custom recipes, though I wrote this a while ago so some stuff may not make sense as I didn't modify it
"minecraft:is_container": {
"storage": {
"id": "mixer",
"slots": 3,
"itemlock":{//provided slots can only use that item
"slot1":[
"nex:titanium",
"nex:gold"
],
"slot2":[
"nex:titanium",
"nex:gold"
]
},
"itemblock":{//provided slots cannot use the provided items
"slot3":[
"blockAll"
]//blockAll can be overided by /replaceitem
}
}
"collect_item" : true,//acts like hopper
"syphon_item": true //items can be collected and/from hoppers
},