Tags
Creators
Details
Licensed MIT
Published 6 months ago
Updated 25 minutes ago
All versions
2.9.0+mc26.4-fabric
Beta
WebGUI 2.9.0 (26.4 Fabric, beta)25 minutes ago 0
Compatibility
Minecraft: Java Edition
26.4-rc-1
Platform
Fabric
Supported environments
Server-side
Client and server
Required content
Any compatible version
Changes
2.9.0 - 2026-12-06
The mod and the Paper plugin.
Added
- Pages bound to blocks.
/webgui bind block <pos> <url> [cancel_interaction]makes a right click on a block open a page: a lectern that is a rules board, a sign that is a shop terminal, a button that opens a quest log, without an NPC./webgui unbind block <pos>removes it. The binding belongs to the position in the dimension the command runs in, survives restarts (config/webgui/block_bindings.jsonon the mod, with the entity bindings on Paper) and/webgui reload, and, withcancel_interaction, stops the block's own interaction. The page finds the block inwindow.webgui.block({ id, pos: { x, y, z }, dimension }), with awebgui:blockevent when it arrives, and the URL can carry{block_pos}(12,64,-3),{block_id}and{block_dimension}. Other mods callWebviewApi.bindBlock,unbindBlockandgetBlockBinding. (#49) - Items that open pages. Any item whose custom data has
"webgui:url"opens that page on right click, in the air or on a block:/give @p compass[custom_data={"webgui:url":"webgui://quests.html"}], or the same from a datapack, a loot table or a plugin, with nothing to register (on 1.20.1, an NBT tag of the same name:/give @p compass{"webgui:url":"webgui://quests.html"}). The item's own use is cancelled. The page finds the item inwindow.webgui.item({ id, name, count }), with awebgui:itemevent, and the URL can carry{item_id}. A bound block wins over a bound item in the hand. (#49)- Every page gets the player's signed token, and anyone in creative can make such an item and hand it to someone else. So an item opens the server's own
webgui://pages, and other sites only when their origin is listed in the newitemUrlOriginssetting; it is empty by default. Anything else is refused with a line in the server log, and the item works as usual.
- Every page gets the player's signed token, and anyone in creative can make such an item and hand it to someone else. So an item opens the server's own
- Hotkeys for the HUD page.
webgui.registerHotkey({ id: 'journal', key: 'J' })gives the HUD page a key of its own: it hearswebgui:hotkeywith{ id }when the key goes down andwebgui:hotkeyupwhen it comes up, while the player plays and the page does not have the keyboard. Enough for "press J for the journal" or "hold G for the quest tracker" without interactive mode.unregisterHotkey(id)takes a key back. (#52)- Keys are letters, digits, F1–F25, Tab, Space, Enter, Backspace, Insert, Delete, Home, End, PageUp, PageDown and the arrows, also in
KeyboardEvent.codespelling (KeyJ,Digit7,Numpad7). The promise resolves tofalsefor a key the game or another mod already has bound, for a page that is not the HUD, and when the player has switched page hotkeys off. Tab is the player list in a vanilla game, so most pages will getfalsefor it. - Keys fire only while no screen is open, chat and inventory included, like the game's own. They go when the HUD page closes or goes to another address, and when the player leaves the server.
- Players switch them off under Mods → WebGUI → Config → Page hotkeys.
- Keys are letters, digits, F1–F25, Tab, Space, Enter, Backspace, Insert, Delete, Home, End, PageUp, PageDown and the arrows, also in
- Minecraft 26.4, on Fabric, as a beta. Built against
26.4-rc-1with Fabric API0.169.1+26.4, and listed on Modrinth under that release candidate until 26.4 is out; then it leaves beta. 26.4 replaced the game's texture classes, so the browser hands the game its picture through 26.4's own texture handles. NeoForge follows once it has a 26.4 build. (#63)
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:tDw1xQja:hSwqGycm"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:tDw1xQja:hSwqGycm"
}

