emitreetabs-2.0.1.jar
Curse Maven Snippet
What's new
## Initial release
Track more than one EMI recipe tree at a time, and get a crafting list that spans all of them.
EMI keeps exactly one crafting tree in memory, so opening a second one silently throws away the first. This mod keeps a list of them and swaps the right one into place when you change tab — EMI's own tree screen still does all the drawing and editing, so every tree behaves exactly as you already expect.
### Tabs
- Every tree you open becomes a tab instead of replacing the last one. Hold **Shift** while opening to invert that for one click.
- **Live progress per tab** — grey (nothing gathered), amber (partly stocked), green (you have everything), checked against your inventory.
- **Per-tab view/craft mode**, mirroring EMI's own mode button but per tree. Only trees in crafting mode feed the crafting list, so you can keep a dozen open for reference and still see only what you're actually building.
- **Fork a tree** (`Ctrl+D`) — same goal, independent resolutions, so you can compare two routes to the same item side by side.
- **Rename** tabs, **drag** to reorder, **middle click** to close, `Ctrl+Shift+T` to reopen a closed one.
- **Per-tab viewport** — each tab keeps its own pan, zoom and batch count.
- Tabs **survive restarts and resource reloads**, stored as their goal recipe plus the resolutions you picked, then rebuilt.
### Crafting list across every tree
With more than one tree in crafting mode, EMI's crafting list draws from all of them, with duplicate recipes and materials merged into single entries.
Trees are costed against a **shrinking inventory pool** rather than each getting your whole inventory. Two trees each needing 10 iron with 10 in the chest correctly report 10 still needed, instead of both declaring themselves satisfied. Reorder tabs to change which tree gets first claim.
### A real second sidebar panel
Adds a **Crafting** page type to EMI's own sidebar picker, alongside Index, Craftables and Favourites. Add it as a page or a subpanel on any sidebar and the crafting list lives there, leaving your favourites alone.
The list is split into **To craft**, **Shared materials** (wanted by two or more trees), and one section per tree, with a rule between sections and titles you can click to fold.
### Requirements
- Minecraft **1.20.1**, **Forge 47+**
- **EMI 1.1+** (required)
- **Client-side only** — nothing is required on the server
- [Cloth Config](https://modrinth.com/mod/cloth-config) is **optional**. With it you get an in-game settings screen under Mods → EMI Tree Tabs → Config. Without it the mod works identically and you edit `config/emitreetabs.json` by hand; edits are picked up within a couple of seconds without restarting.
### Known limitations
- **Section titles take a full row.** EMI's sidebar is a fixed 18px grid and hover detection maps mouse position back through that same arithmetic, so giving a title only its text height would risk clicks landing on the wrong item. The separator lines are free — they draw in the gap between rows — but text is not.
- **Sections align to rows, not pages.** EMI paginates sidebars, so a section can straddle a page break.
- **There is no single combined tree view.** A merged tree could only hold one recipe per ingredient, so two tabs smelting iron differently could not both be honoured.
### Compatibility
This hooks EMI's internals rather than a public API, because EMI exposes none for crafting trees. Pinned working combination: **EMI 1.1.24 · Forge 47 · MC 1.20.1**. An EMI update that renames the internals involved will break this, most likely as a visible startup error rather than a silent failure. Developed and tested in a ~295 mod GregTech pack alongside EMI++ (`emixx`), which touches some of the same classes.
### AI disclosure
The code in this mod was written by an AI assistant working from my direction. I set the goals, tested every build in a real pack and rejected the designs I did not want; I did not write the Java by hand. No AI-generated art, textures or sounds are included. Full statement: https://github.com/ROOCKY-dev/emi-tree-tabs/blob/main/AI-DISCLOSURE.md
### Note on versioning
Numbering starts at 2.0.1 because earlier versions were unreleased iterations during development.
**Source:** https://github.com/ROOCKY-dev/emi-tree-tabs
This mod has no additional files