Tags
Creators
Details
Licensed MIT
Published 6 months ago
Updated 5 hours ago
All versions
2.0.2+mc1.21.11-neoforge
Release
WebGUI 2.0.2 (1.21.11 NeoForge)17 hours ago 4
Compatibility
Minecraft: Java Edition
1.21.11
Platform
NeoForge
Supported environments
Client and server
Changes
2.0.2 - 2026-12-01
Fixed
window.webgui.on()called every handler twice. The mod both dispatched the event and called the handlerson()had registered for it, andon()registers them as listeners for that same event. A page usingon()— the way the docs show for plain JavaScript — saw every server event twice, so a "buy" handler bought twice. Pages using@webgui/clientwere not affected: it listens for the event only.- A page's own scripts could run before
window.webguiexisted. The bridge was injected as the page started loading, but that is a message to the renderer, and a small page served from the same machine had already run its inline scripts by the time it arrived: they found no bridge, and the listeners they meant to register never were. The bridge is now installed through Chromium's developer-tools protocol to run at the start of every document, before anything the page runs itself.
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:2wD95qBx"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:tDw1xQja:2wD95qBx"
}

