mezz / JustEnoughItems

Item and Recipe viewing mod for Minecraft
https://www.curseforge.com/minecraft/mc-mods/jei
MIT License
790 stars 305 forks source link

[Suggestion]: A config that allows custom ordering of items #3791

Open Luningor opened 2 months ago

Luningor commented 2 months ago

Suggestion

For context, Minecraft 1.20.1, in case I've missed this feature in 1.21. We can as of now and to my knowledge sort via config the items via mod order (ingredient-list-mod-sort-order.ini). What I'd personally like to see is a config allowing to switch the same but with items/fluids/effects as to order them nicely together. For example, if mod A and mod B add both buckets with a mob, manually move them toghether, or with wood types and such. I don't know if it's possible or doable but it would make for a good way to integrate more mods contextually together.

mezz commented 2 months ago

Hello,

Please see this section in jei-client.ini:

[sorting]
    # Description: Sorting order for the ingredient list
    # Valid Values: A comma-separated list containing values of:
    # [MOD_NAME, INGREDIENT_TYPE, ALPHABETICAL, CREATIVE_MENU, TAG, ARMOR, MAX_DURABILITY]
    # Default Value: MOD_NAME, INGREDIENT_TYPE, CREATIVE_MENU
    IngredientSortStages = MOD_NAME, INGREDIENT_TYPE, CREATIVE_MENU

If you move INGREDIENT_TYPE first, I think it'll look a bit more like what you want.

I am also experimenting with some kind of grouping feature, so that similar items can be shown together, but I haven't worked it out completely.