Tags
Creators
Details
1.3.0+mc1.20.1
Compatibility
Changes
[1.3.0] — 2026-06-07
Added
Entity binding
Attach a WebGUI interface to any entity. Players open it by right-clicking — no custom mod code required.
/webgui bind entity @e[type=villager,limit=1,sort=nearest] https://example.com/shop
/webgui bind entity @e[type=villager,limit=1,sort=nearest] https://example.com/shop true
/webgui unbind entity @e[type=villager,limit=1,sort=nearest]
- Bindings persist in
config/webgui/entity_bindings.jsonand survive server restarts /webgui reloadnow also reloads entity bindings- Optional
cancel_interactionflag suppresses vanilla behaviour (trade screen, horse inventory, etc.)
URL placeholders
Substituted at interaction time:
| Placeholder | Value |
|---|---|
{entity_id} / {entity_uuid} |
Entity UUID |
{entity_type} |
Namespaced type, e.g. minecraft:villager |
{player_name} / {player_uuid} |
The interacting player |
Entity context in the browser
When a GUI is opened via entity interaction, window.webgui.entity is populated automatically — null when opened via command. A webgui:entity CustomEvent fires on every change.
interface WebGUIEntity {
uuid: string
type: string // e.g. "minecraft:villager"
name: string // custom name if set, otherwise type display name
pos: { x: number; y: number; z: number }
}
Mod API
New methods in WebviewApi for use from other mods:
WebviewApi.bindEntity(uuid, "https://example.com/shop?npc={entity_id}", true);
WebviewApi.unbindEntity(uuid);
WebviewApi.getEntityBinding(uuid); // Optional<EntityBinding>
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:SdvyKgVS"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:tDw1xQja:SdvyKgVS"
}

