[GH-ISSUE #6315] Feature request: hook for adding buttons to vanilla screens for pack installation mods #2052

Closed
opened 2026-11-02 15:51:38 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @PolMartiDetera on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6315

Summary

Native mods currently have no way to add UI to vanilla screens. The screen, screen_draw, screen_click and screen_tooltip hook points are tied to mod block entity menus, and there is no hook that fires when a player is on a vanilla screen such as "Create New World", nor a way to open a custom screen from a mod.

Use case

Resourcify (GPL-3.0/LGPL-3.0) is an in-game browser that installs and updates resource packs, data packs, shader packs and worlds from Modrinth/CurseForge, with a button on the world creation screen. A Horizon native mod that replicates this would need:

  1. A hook on the vanilla world creation screen (or a generic "vanilla screen shown" hook) so a mod can add a button such as "Browse data packs".
  2. A way to open a mod-drawn screen from outside a block entity context (search, install, enable a pack).
  3. Access to the instance's resourcepacks/, data/ and shaderpacks/ folders (or a helper that enables a pack on the next world open).

Without these, the only workaround is a chat command (/install <id>) that downloads a pack to the instance folder, which is functional but not discoverable.

Suggested shape

  • native_vanilla_screen(name) / native_vanilla_screen_draw: fired for a named vanilla screen (create world, resource packs, options), letting a mod add buttons and draw extras.
  • native_open_screen: opens a mod-provided screen (reusing the existing native_screen_draw helpers) from any client hook, not just block entity use.
  • A helper for the instance resource/data pack directories, or a way to enable a pack in options.txt for the next open.

Impact

This would unport a whole class of Java UI mods (Resourcify, ModMenu-style browsers, pack managers) and make data/resource pack discovery first-class in Horizon without launcher changes.

Originally created by @PolMartiDetera on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6315 ## Summary Native mods currently have no way to add UI to vanilla screens. The `screen`, `screen_draw`, `screen_click` and `screen_tooltip` hook points are tied to mod block entity menus, and there is no hook that fires when a player is on a vanilla screen such as "Create New World", nor a way to open a custom screen from a mod. ## Use case [Resourcify](https://github.com/DeDiamondPro/Resourcify) (GPL-3.0/LGPL-3.0) is an in-game browser that installs and updates resource packs, data packs, shader packs and worlds from Modrinth/CurseForge, with a button on the world creation screen. A Horizon native mod that replicates this would need: 1. A hook on the vanilla world creation screen (or a generic "vanilla screen shown" hook) so a mod can add a button such as "Browse data packs". 2. A way to open a mod-drawn screen from outside a block entity context (search, install, enable a pack). 3. Access to the instance's `resourcepacks/`, `data/` and `shaderpacks/` folders (or a helper that enables a pack on the next world open). Without these, the only workaround is a chat command (`/install <id>`) that downloads a pack to the instance folder, which is functional but not discoverable. ## Suggested shape - `native_vanilla_screen(name)` / `native_vanilla_screen_draw`: fired for a named vanilla screen (create world, resource packs, options), letting a mod add buttons and draw extras. - `native_open_screen`: opens a mod-provided screen (reusing the existing `native_screen_draw` helpers) from any client hook, not just block entity use. - A helper for the instance resource/data pack directories, or a way to enable a pack in `options.txt` for the next open. ## Impact This would unport a whole class of Java UI mods (Resourcify, ModMenu-style browsers, pack managers) and make data/resource pack discovery first-class in Horizon without launcher changes.
Author
Owner

@kira-horizon[bot] commented on GitHub (Nov 2, 2026):

Claimed by JustKrabby on Discord (GitHub: JustKarkat), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #6315).

<!-- gh-comment-id:6576664119 --> @kira-horizon[bot] commented on GitHub (Nov 2, 2026): Claimed by `JustKrabby` on Discord (GitHub: `JustKarkat`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #6315). <!-- kira:work -->
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#2052
No description provided.