Roughly Enough Items Fabric/Forge/NeoForge (REI)

Roughly Enough Items Fabric/Forge/NeoForge (REI)

40M Downloads

[Feature] Sort recipes with explicit/specific uses first

Xetaxheb opened this issue ยท 2 comments

commented

What is your feature request?

In some iterations of _EI mods, crafting uses would sort with explicit uses first instead of being mixed among tag-based crafting.

For example: Dark oak planks showing dark oak slabs before sticks because they are not interchangeable with other wood like sticks are. They require dark oak planks to craft the dark oak slabs, but any #minecraft:planks can make sticks.

Maybe it could be a config option if there's performance concerns but honestly this should be baseline functionality if it's feasible. I don't know how recipe accessibility/caching has changed since say 1.12.

What do you think this change is of?

  • Visual
  • Recipe Lookup
  • Cheat Mode
  • Plugin Integration / JEI Plugin Compatibility
  • Others
commented

I don't really think that's the preferred way of sorting it though?

commented

It's super nice to have and makes intuitive sense almost immediately.
Say you looked at spruce planks uses, you would currently get potentially many pages of accepts:#minecraft:planks results while the spruce fences/boat/etc are in there somewhere essentially randomly. With this change they could be the first result. Or sand listing sandstone before TNT (#minecraft:sand), Or sandstone listing smooth/stairs/slabs before #minecraft:sandstone (red sandstone, variants). Or chiseled sandstone specifically for some kind of altar block where normal sandstone doesn't work.
There are many good examples of where this is much better information and more convenient, and they exist especially in large or complicated packs. It's a lot easier to see immediately whether an item has a unique use or value instead of needing to scroll through every page.

There's also the biggest offender: a crafting table's uses. By it's nature, it opens the category "crafting" so you get hundreds or thousands of pages and it can be virtually impossible to know what recipes actually need a crafting table specifically in their recipe.
Sure, some may (not always) show up on the left as options, say a crafting table on a stick, or tcon crafting station, (assuming they're registered properly), but not every recipe involving the table is itself a crafting table and so you have to dig through pages and pages and pages to find them.

If nothing else let me put it this way: Is there really more value in having generic/tag recipes (say, for sticks) show up before unique ones (say, mahogany fences)? At the very baseline this should be essentially identical to the end user if they don't value it, no? Or they notice it and get use or value out of it. Or it could be a config value.

It's basically summarized as "if the use in this recipe isn't a tag, sort it to the front of the list". I really feel like it's one of those features that just makes sense and is noticeably missing when it's gone. Like mods that make right click in crafting fill cursor stack. Or clearing text fields with right click ;p