branchpanic / stockpile

A Minecraft mod all about storage.
MIT License
10 stars 5 forks source link

Suggestion: Item Unification #94

Open cryxli opened 4 years ago

cryxli commented 4 years ago

JABBA has one very handy feature: It can be set to accept all types of the same item. That results in a handy mechanism to unify your, e.g., copper ingots from 20 different mods.

I never looked into it, but I assume JABBA checks whether the item-to-be-inserted matches the ones already present. If not, check the OreDict whether it belongs to the same group, then just increase the number of the present items. Only problem with this approach; OreDictionary is a feature of Forge, not Fabric, as far as I'm aware.

branchpanic commented 4 years ago

That's definitely something worth considering. As far as I can tell, the Fabric convention is just to use the new vanilla tag system. The only problem with this is that tags are used not only for equivalent items but closely-related ones (i.e. types of wood planks).

I think there might be a convention for separating the former from the latter, though, so I'll ask around. And at the least, I can make it configurable if doing it automatically is unsafe.