CubeUI
by Denmoth
CubeUI is a Forge library for building modular user interfaces, with a theming engine, 9-slice rendering and a set of standard widgets.
What it does
A developer who builds a screen for a mod can use CubeUI to lay out panels, buttons and fields that scale to any size. Panels are drawn with 9-slice rendering, so their borders keep their shape when the interface is stretched, and buttons and text fields use 3-slice rendering. A centralized ThemeManager controls the look of every registered widget, and textures or styles can be swapped at runtime without rebuilding the screens that use them.
The library is aimed at mod authors who want consistent interfaces without writing their own drawing code. A built-in debug overlay shows layout and render information while a game is running, and it opens in-game with Ctrl + Shift + U. The code is open source under the MIT License, and the mod may be used in own projects, modpacks and addons. Servers that run it need every player to install it too. Files are published for Forge on 1.20.1 only, and the latest file is 0.1.0, a beta build dated 2025-12-30.
Key features
Theming engine
A ThemeManager holds the textures and styles for every widget and can swap them while the game is running.
9-slice and 3-slice rendering
Panels use 9-slice drawing and buttons or fields use 3-slice drawing, so stretched textures keep their borders.
Standard widgets
A collection of themable widgets is included, ready to use in a new interface without custom drawing code.
Debug overlay
An in-game overlay for developers shows interface information and opens with Ctrl + Shift + U.
Rendering helpers
Helper methods for rendering are provided to keep drawing code short and consistent across screens.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Building a mod interface
A mod author can compose panels, buttons and fields from the standard widgets and let the theme decide their appearance.
Restyling a set of screens
Textures and styles registered with the ThemeManager can be replaced to change the look of every screen that uses them.
Who it’s for: Mod authors and modpack developers who build Forge interfaces for Minecraft 1.20.1 and want shared widgets and a single theme system.
Questions
Does CubeUI need to be installed on both sides?
Which loader and version does CubeUI support?
Can CubeUI be used in a modpack?
In the catalog
CubeUI is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 34,764 mods support Minecraft 1.20.1.
More from Denmoth
Similar mods
What the author says
CubeUI is a lightweight, modular UI Library for Minecraft Forge. It provides a robust framework for creating complex, scalable user interfaces with built-in theming support and high-performance rendering helpers. Designed to make modding UIs easier and more consistent. Full documentation and implementation examples…
Official listing
- Modrinth page
- modrinth.com/mod/cubeui
- Owner
- Denmoth
- Published
- 2025-12-30
- Updated on Modrinth
- 2025-12-30
- Facts verified
- 2026-10-15
