[GH-ISSUE #4331] Content mods: creative inventory tabs, paged as NeoForge pages them #1281

Closed
opened 2026-11-02 15:45:40 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Sylviromi on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4331

Originally assigned to: @Sylviromi on GitHub.

🤖 Filed by Sylviromi's AI agent (Claude Code, Claude Opus 5.5), not by Sylviromi personally.

Part of #3911 (Mods).

Today

Content mods' items are in no creative tab and not in the creative search: a mod that adds blocks and items (a content mod, or a ported pack's carry-over) can only be reached with /give. Vanilla's 14 tab slots are all taken, so there is no room for a mod's tabs either.

Proposal

  • A content mod declares its tabs in data/<id>/horizon/creative_tab/*.json: a title, the item on the tab's button, and its items in order (items the game doesn't have are left out).
  • The mod loader appends them to creative-inventory.json after vanilla's tabs, ten to a page as NeoForge pages them (the top row's first five columns, then the bottom row's); search, saved hotbars, operator blocks and the inventory stay on every page.
  • < and > buttons 50 pixels above the screen and "page / pages" between them, as NeoForge draws them; selecting a tab on another page (a controller cycling) shows its page.
  • A mod's new items join the search tab under their English names.

A working version exists on a fork branch (Sylviromi/horizon content-creative-tabs, tested with a content-root test and in game); not claiming this yet (claim limit). It touches the creative screen as #4052 (Operator Utilities tab) does.

Originally created by @Sylviromi on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4331 Originally assigned to: @Sylviromi on GitHub. > 🤖 Filed by Sylviromi's AI agent (Claude Code, Claude Opus 5.5), not by Sylviromi personally. Part of #3911 (Mods). ## Today Content mods' items are in no creative tab and not in the creative search: a mod that adds blocks and items (a content mod, or a ported pack's carry-over) can only be reached with `/give`. Vanilla's 14 tab slots are all taken, so there is no room for a mod's tabs either. ## Proposal - A content mod declares its tabs in `data/<id>/horizon/creative_tab/*.json`: a title, the item on the tab's button, and its items in order (items the game doesn't have are left out). - The mod loader appends them to `creative-inventory.json` after vanilla's tabs, ten to a page as NeoForge pages them (the top row's first five columns, then the bottom row's); search, saved hotbars, operator blocks and the inventory stay on every page. - `<` and `>` buttons 50 pixels above the screen and "page / pages" between them, as NeoForge draws them; selecting a tab on another page (a controller cycling) shows its page. - A mod's new items join the search tab under their English names. A working version exists on a fork branch (Sylviromi/horizon `content-creative-tabs`, tested with a content-root test and in game); not claiming this yet (claim limit). It touches the creative screen as #4052 (Operator Utilities tab) does.
Author
Owner

@reservedbytes commented on GitHub (Oct 30, 2026):

Tried content-creative-tabs at d21a8a9 with two test content mods (12 tabs over 3 pages, a missing item, a missing icon, a fr_fr lang file), on the server thread, --in-frame and a --dedicated server

What works

Items keep the JSON order, a missing item is left out, a missing icon gives an empty button and no crash

The page and tab come back after closing and reopening the inventory

Search finds mod items by English name and by id with a colon, and by their French names with fr_fr

Same on --in-frame, and a client on a --dedicated server gets all 3 pages

Nothing in the logs

1. Block items show twice in search (medium)

"ruby" shows gems:ruby_block twice, and it's twice in the generated creative-inventory.json too

I think creative_tabs() adds self.items and then the blocks with "item": true again

2. Page buttons look squashed (low)

The < > buttons lose their black outline on the left and right sides

3. Small things (low)

  • Turning the page while on search or saved hotbars drops that tab and selects the page's first mod tab, I guess it could stay since those are on every page
  • The tab title is a plain string, so it stays English in French, maybe it could come from the mod's lang (itemGroup.<id>.<name>)
  • At GUI scale 3 (1280x720) the buttons sit at the very top and the tutorial toast covers >

I couldn't check how the pages work with the operator tab (#4052), it didn't show in my test setup

<!-- gh-comment-id:6526749019 --> @reservedbytes commented on GitHub (Oct 30, 2026): Tried `content-creative-tabs` at `d21a8a9` with two test content mods (12 tabs over 3 pages, a missing item, a missing icon, a `fr_fr` lang file), on the server thread, `--in-frame` and a `--dedicated` server ## What works Items keep the JSON order, a missing item is left out, a missing icon gives an empty button and no crash The page and tab come back after closing and reopening the inventory Search finds mod items by English name and by id with a colon, and by their French names with `fr_fr` Same on `--in-frame`, and a client on a `--dedicated` server gets all 3 pages Nothing in the logs ## 1. Block items show twice in search (medium) "ruby" shows `gems:ruby_block` twice, and it's twice in the generated `creative-inventory.json` too I think `creative_tabs()` adds `self.items` and then the blocks with `"item": true` again ## 2. Page buttons look squashed (low) The `<` `>` buttons lose their black outline on the left and right sides ## 3. Small things (low) - Turning the page while on search or saved hotbars drops that tab and selects the page's first mod tab, I guess it could stay since those are on every page - The tab title is a plain string, so it stays English in French, maybe it could come from the mod's lang (`itemGroup.<id>.<name>`) - At GUI scale 3 (1280x720) the buttons sit at the very top and the tutorial toast covers `>` I couldn't check how the pages work with the operator tab (#4052), it didn't show in my test setup
Author
Owner

@Sylviromi commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6541965999 --> @Sylviromi commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1281
No description provided.