EMI JEI Grid Fix

Quick rating

EMI JEI Grid Fix

No reviews yet

Fixes recipes from JEI plugins rendering wrong in EMI: slots handed to a scrolling grid widget (like the Strainers drop table) were all drawn stacked in the corner over the inputs.

Mod Loaders
NeoForge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Unsupported

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Some mods ship a JEI plugin but no EMI plugin, and EMI shows those recipes anyway by reading the JEI plugin through its built-in compatibility layer. That mostly works — except for recipes whose slots are placed by a scrolling grid widget instead of by fixed coordinates.

Those slots all end up drawn in the top-left corner of the recipe, stacked on each other and on top of the recipe's inputs. If you have ever opened a strainer recipe in EMI and seen the entire drop table piled onto the input item, this is that bug.

This mod fixes it. Nothing else changes: no new UI, no config, no recipes added or hidden.

Before / after

BenBenLaw's Strainers puts its drop table in a 5×3 scrolling grid. Without this mod every one of those outputs renders at the same spot over the input slots; with it, they lay out in the grid the recipe asked for.

Why it happens

EMI's JEI-compat layer implements JEI's "add a slot and let a widget position it later" method as:

public IRecipeSlotBuilder addSlotToWidget(RecipeIngredientRole role, ISlottedWidgetFactory<?> widgetFactory) {
    return addSlot(role, 0, 0);
}

The widget is ignored, so every slot lands at (0, 0). This mod intercepts that call, asks the grid where it was placed and how wide it is, and puts each slot in the next grid cell — the same position JEI's own grid widget would have used.

Any JEI plugin using a scroll grid benefits, not just Strainers.

Requirements

  • Minecraft 1.21.1, NeoForge
  • EMI and JEI both installed (the code path this patches only exists when EMI is reading JEI plugins)
  • Client side only — it does nothing on a server, and is not needed on one

Known limitation

EMI recipe panels do not scroll, so a recipe with more outputs than its grid was sized for keeps flowing downward past the bottom of the panel instead of scrolling. Strainer recipes fit comfortably.

Screenshots

Gallery

  • With Mod enabled
    With Mod enabled

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works