MasuGUI
Data-driven server-side GUI library for Forge 1.18.2, drawn in the painted Vault Ledger look on clients that have it, with a vanilla chest fallback for clients that do not.
Personal-use release This mod is published primarily for my own projects. No support is provided. No issue tracker, no feature requests, no help with integration. Use entirely at your own risk.
What it does
MasuGUI lets other mods build rich GUIs that render as custom screens on clients with the mod installed, and transparently fall back to vanilla container menus for players without it. Single JAR. One API. Two experiences from the same definition.
- Client has MasuGUI: a custom screen in the Vault Ledger look (wood frame, parchment body, painted buttons, switches, sliders and icons).
- Client does not have MasuGUI: a vanilla container (chest, hopper, anvil, merchant and more) with the same interactive elements.
The look
- Two themes: Ledger (light parchment) and Ledger Night (dark walnut). Players switch with the sun/moon button in any MasuGUI window header or in the
/masuguisettings menu; the choice is saved per client. - Player settings menu (1.4.0+):
/masuguiopens Theme, Boss bars and Menus (plus Player list with MasuTab). Boss bars, Menus and Player list switch between MasuGUI and Vanilla; Menus: Vanilla opens every MasuGUI menu as a plain chest menu, on every server and after restarts. - Painted art: hand-painted HD widget kit (frames, buttons, chips, wells, switches, checkboxes, scrollbars, banners) and icons (gear, star, hourglass, coin, crown, live dot, lock, grip, signal bars, carets, shop).
- Themed boss bars: servers can style boss bars to match the theme; players can keep vanilla bars instead.
Highlights
- 14 element types: Panel, Label, Button, TextField, ItemGrid, ItemDisplay, Divider, ProgressBar, Image, ScrollPanel, Checkbox, Slider, TabBar, Dropdown, PlayerHead
- JSON-driven layouts: define GUIs in
config/<modId>/gui/<name>/Enhanced.jsonandFallback.json - Hot reload:
/masugui reload [modId]reloads templates without a restart - In-game editor:
/masugui editor <modId> <guiName>edits a GUI visually - Animations: 6 easing functions, 8 animated properties, 3 play modes, all definable in JSON
- Remote textures: any texture field accepts a URL; downloaded async and cached to disk
- 18 vanilla fallback container types: chest sizes, hopper, dispenser, anvil, smithing, furnace, brewing, merchant, beacon and more
- Container slot redirects: real interactive inventory slots in fallback mode with drag and drop
- Cursor item system: pick-up/place item interaction in enhanced mode
- GUI Effects API: server-triggered cell animations (pulse, flash, bounce, fade out, scale up), client-side sounds, fullscreen reward reveals
- Quark protection: a mixin blocks unwanted inventory transfers
- Auto-close: configurable distance, dimension change and death detection
- Client theme API (1.3.0+): other mods draw their own screens and HUD elements in the MasuGUI theme (
com.masuary.masugui.client.api): the player's current theme, windows, surfaces, buttons, icons and themed text, with a change listener. MasuTab 3.0 is drawn with it.
Element reference
| Element | Purpose | Interactive |
|---|---|---|
| Panel | Background rect with gradient, nine-slice, border | No |
| Label | Text with wrapping, centering, scaling, shadow | No |
| Button | Clickable with gradient, hover lerp, click sound | Yes |
| TextField | Real text input via EditBox | Yes |
| ItemGrid | Item grid with client-side scrolling, scrollbar | Yes |
| ItemDisplay | Single item with tooltip override | Yes |
| Divider | Horizontal/vertical separator | No |
| ProgressBar | Fill bar with gradient, label, smooth lerp | No |
| Image | Texture rendering with UV support (local or URL) | No |
| ScrollPanel | Scrollable container with scissor clipping | Yes |
| Checkbox | Toggle with label | Yes |
| Slider | Draggable value selector with range | Yes |
| TabBar | Tab switcher with active state | Yes |
| Dropdown | Expandable option list | Yes |
| PlayerHead | Player skull from skin texture (supports skinUrl) | No |
For mod developers
MasuGUI is a library mod. It has no in-game content on its own. It provides an API for other mods to define GUIs once and have them render either as a custom screen or as a vanilla chest menu depending on the client.
Two ways to define a GUI:
- Java builder API:
MasuGui.builder("my_gui").size(300, 200).add(...).open(player); - JSON templates: layout files in the config folder with variables, data providers and named action handlers
Run /masugui test in game with the mod installed to explore the demo GUIs covering shops, settings, profiles, scrolling, merchants and confirmations.
Commands
/masugui: your settings menu (every player, client 1.4.0+)
Every other command needs OP level 2:
/masugui test: open the demo hub/masugui theme ledger|ledger_night|auto,/masugui bossbar enhanced|vanilla: change a client setting by command/masugui fallback: preview chest rendering until you log out/masugui reload [modId]: hot-reload JSON GUI templates/masugui editor <modId> <guiName>: in-game visual GUI editor/masugui validate [modId]: check every installed GUI/masugui status: show client mod detection, the fallback flag and the menus choice
Requirements
- Minecraft 1.18.2
- Forge 40.2.28 or newer
- Java 17
Optional: Quark (compile-time only, for the inventory transfer protection mixin)
Installation
- Install Forge 1.18.2
- Drop the JAR into your
mods/folder - Install on both server and clients. Clients without it still work, but see chest-based fallback GUIs instead of the enhanced screens.
License
All Rights Reserved. You may use this mod in modpacks and on servers. You may not redistribute, decompile, or rehost this JAR without permission.
Reminder: this is a personal-use release. No support, no issue tracker, no PRs accepted. If it works for you, great. If it does not, you are on your own.

