sisby-folk / inventory-tabs

A minecraft mod that allows swapping to other in-world screens (blocks, entities, etc) via tabs. A fourth-generation rewrite of CakeWhip's InventoryTabs.
https://modrinth.com/mod/inventory-tabs
GNU Lesser General Public License v3.0
6 stars 3 forks source link

Create compatibility #38

Closed joex92 closed 5 months ago

joex92 commented 5 months ago

Hi, when using with the Create mod some create blocks that have no inventory are considered as inventory: image image image image

not only Create, also the Extended Drawers mod; image In this case those are inventory blocks, but they are blocks that have no inventory GUI...

sisby-folk commented 5 months ago

Hi there!

This is completely fixable in the mod as-is! Feel free to read the modpack configuration part of the readme to see how to adjust this yourself.

You're also welcome to post the config file you end up with in this thread to help out the next person.

joex92 commented 5 months ago

oh no... that's a lot... I see that the configuration doesn't have something like [modProviderOverrides] or something like that to disable an entire mod from receiving a tab... otherwise I'll have to add every single block!

sisby-folk commented 5 months ago

There are actually valid tab blocks in create unfortunately! that wouldn't be sufficient.

Turning on the debug logger gives you the exact list.

sisby-folk commented 5 months ago

Some time ago on a previous create version we did create this list, which are valid tabs: https://github.com/sisby-folk/inventory-tabs/blob/0.6-redo/src/main/java/com/kqp/inventorytabs/api/TabProviderRegistry.java#L102

Not precisely what you need, but a decent reference.

Note that these days tags work as well, so you can use do #create:toolboxes etc

joex92 commented 5 months ago

what i meant is this: use an override to deny all the create blocks, and the override that override for specific blocks... 😅 but ok... I'll have to add the blocks... the issue is that is not just create, it's drawers mod, some create addons, and some other blocks from other mods...

sisby-folk commented 5 months ago

So it turns out i agree with you - here's your config for 1.2.0 once it releases

    "create:*" = ""
    "#create:toolboxes" = "inventory_tabs:block_simple_storage"
    "#create:valve_handles" = ""
    "create:stockpile_switch" = "inventory_tabs:block_simple"
    "create:display_link" = "inventory_tabs:block_simple"
    "create:schematicannon" = "inventory_tabs:block_simple"
    "create:schematic_table" = "inventory_tabs:block_simple"
sisby-folk commented 5 months ago

Done and released - here's a full pack example: https://github.com/sisby-folk/tinkerers-quilt/blob/1.20_modded/config/inventory_tabs.toml#L82