Andrew6rant / InventoryTabs

Adds tabs to access nearby blocks
https://www.curseforge.com/minecraft/mc-mods/inventory-tabs-updated
MIT License
40 stars 18 forks source link

Mod compatibility #6

Closed SylisMC closed 2 years ago

SylisMC commented 2 years ago

Would you consider adding mod support for other popular mods, or give us the ability to manually add blocks to a list for being detected by the inventory tabs via a config file?

Andrew6rant commented 2 years ago

Sorry I missed this message, I forgot that forks don't have notifications enabled by default. A config system is something I'd like to do in the future. There are ways mod authors can currently add support for InventoryTabs (see the README), but it is a bit of a convoluted process.

KavisKryptic commented 2 years ago

Is there a way for a modpack creator to do so? I read the config but unfortunately I'm still really amateur in Java and reading/understanding the JSON formatting. Although if you could point me in the right direction, (basically explain some things in layman's terms, or point me to some resources that would make it so I understand the README) I'd really appreciate it.

Since I have tons of mods in my modpack that have their own chests, furnaces, and so on, and would love to make tabs for them.

Andrew6rant commented 2 years ago

Unfortunately, not really. Tab support has to be added manually. It's something that I am going to attempt to change in the future You can send me a list of mods with inventories and I'll see what I can do to support them

Andrew6rant commented 2 years ago

Nevermind, I figured out a way to dynamically generate tabs for mod support!

Unless the mod does something funky with screens (like ExpandedStorage), InventoryTabs should support most mods out of the box. I'll attempt to manually add support for ones that don't work.

@KavisKryptic, try your modpack again with version 0.6.0 of InventoryTabs and see if more mods are supported

KavisKryptic commented 2 years ago

@Andrew6rant Just tried it right now with multiple chest-like/storage blocks, works like a charm! Thank you so much!

The only one that isn't working as it's supposed to is Iron Chests: Restocked. And that's because it's one of those that does " something funky with screens" as you put it lol.

Andrew6rant commented 2 years ago

Version 0.7.0 should add support for all inventories, even ones that do custom rendering (Expanded Storage, Iron Chests: Restocked, TechReborn, etc.)