
WebGUI
Embed any web page — React, Vue, plain HTML — as a full-screen GUI or transparent HUD overlay inside Minecraft. Powered by Chromium (MCEF).
Оцените первым
615
9
Список изменений
[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>
Файлы
webgui-1.3.0+mc1.20.1.jar(485.59 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.3.0+mc1.20.1
Загрузчики
Fabric
Версии игры
1.20.1
Загрузок
6
Дата публикации
07.06.2026
