Inventory Sorting

Inventory Sorting

12M Downloads

Question about blacklist.json5

alvedder opened this issue ยท 4 comments

commented

Hello! Could you please help with configuring blacklist.json5 file? I don't want enchanted books to be sorted, so I added in blacklist.json5 the id of this item "minecraft:enchanted_book":

{
    "blacklistedInventories": [
        "minecraft:enchanted_book"
    ]
}

but those are still sorted. How to properly configure this file?

commented

So if I wrote for example

{
    "blacklistedInventories": [
        "minecraft:chest"
    ]
}

then all chests won't be sorted, but shulkerboxes, barrels, etc are still sortable, am I right?

commented

Unfortunately it doesn't work per block, it uses the internal name for the screen. A lot of blocks re use the same screen for their inventories.

Chests and barrels use:
net.minecraft.client.gui.screen.ingame.GenericContainerScreen
Shulkers use:
net.minecraft.client.gui.screen.ingame.ShulkerBoxScreen

commented

This blacklist is for blacklisting inventories from being sorted, not for items. That would be a good feature to add though

commented

It seems my problem can be resolved by adding to the blacklist the Shulkerbox screen and place there items I don't want to be sorted. Thanks!