Skip to content

[Suggestion]: Improved layout handling for recipes with excessive Inputs/Outputs (Top Alignment & Pagination) #4256

@Mr-SuQian

Description

@Mr-SuQian

Suggestion

Image

I am playing a modpack involving GregTech and KubeJS where I created a "Super Recipe" (a large multi-block machine). This recipe has a small number of inputs (e.g., 17 items) but a massive number of outputs (e.g., 200+ items and fluids).

The current problem is Layout Logic: JEI seems to center the Input slots vertically relative to the total height of the Output slots. Because the Output list is extremely long (extending far beyond the screen height), the Input slots are "centered" into a position that is effectively off-screen (or buried deep down), leaving the top of the GUI blank.

I suggest two potential improvements to handle "Massive Recipes":

  1. Vertical Alignment Option (Top Alignment) Please add a configuration option or render logic to allow Top Alignment for recipe slots.

Current behavior: Inputs are vertically centered relative to Outputs.

Desired behavior: Inputs start rendering from the top-left available slot, regardless of how long the Output list is. This ensures inputs are always visible even if the output list is huge.

  1. Pagination/Scrolling for a Single Recipe Currently, the mouse wheel changes between "Recipe A" and "Recipe B". I propose adding a mechanism to handle a Single Recipe that exceeds the GUI height:

Internal Scrollbar: Add a scrollbar specifically for the ingredient grid if it overflows the RecipeGuiHeight.

Or "Sub-pages": If a recipe has too many items to fit in one view, split that single recipe into multiple pages (e.g., "Page 1/3 of Recipe A") that the user can click through, rather than just clipping the items off-screen.

  • Describe alternatives you've considered : I tried using the mouse wheel, but it switches to the next recipe category or the next recipe ID, rather than scrolling up/down the current large recipe. I've tried changing the game interface size, but it still doesn't display fully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions