Skip to content
Voltar ao Blog
Modern user interface elements and text rendering demonstration in Minecraft with enhanced tooltips and smooth UI components

ModernUI-MC: Building Better GUIs for Minecraft Mods

ice
ice
@ice
Updated
45 visualizações
TL;DR:ModernUI-MC is a Minecraft mod framework that brings modern UI design to Minecraft. It provides a text rendering engine, GUI widgets, and modding APIs for both players and developers. Supports Forge and Fabric across multiple versions.
🐙 Open-source Minecraft project

BloCamLimb/ModernUI-MC

Minecraft mod that embeds Modern UI into Minecraft, providing modding API, text layout engine and some widgets.

⭐ 189 stars💻 Java📜 LGPL-3.0
View on GitHub ↗

Tired of clunky, outdated user interfaces in Minecraft mods? ModernUI-MC is a Java framework that lets mod developers and resource pack creators build sleek, modern GUIs directly in Minecraft without reinventing the wheel.

What ModernUI-MC Does

At its heart, ModernUI-MC is a Minecraft mod based on the ModernUI Framework, a cross-platform desktop application builder. It bootstraps that framework into Minecraft, giving modders a professional-grade UI toolkit. You get widgets, a text layout engine, text rendering optimizations, and a modding API that hooks into Forge, NeoForge, or Fabric.

The mod includes a powerful text rendering system that's genuinely impressive. We're talking real-time font preview, TrueType/OpenType support, anti-aliasing, Unicode 16.0 emoji, bidirectional text, and SDF rendering in both 2D and 3D. It even supports Google Noto Color Emoji, which is rare for Minecraft.

But ModernUI-MC isn't just for mod devs building custom interfaces. Look, it also includes quality-of-life tweaks that any player can use: Gaussian blur for screen backdrops, smoother scrolling in selection lists, pressing "C" to zoom (OptiFine-style), undo/redo for text fields, and even local music playback with spectrum visualization.


Why You'd Install It

Three main reasons: better text rendering across the whole game, mod developer improvements if you use mods that use the framework, and some genuinely handy features baked in.

The text rendering improvements are substantial. Minecraft's default font system wasn't designed for modern Unicode support or high pixel densities. ModernUI-MC replaces that with a layout engine optimized for readability at any scale. Sign text, chat text, custom GUI text in mods - all get sharper, faster rendering with lower memory overhead. The framework computes exact font metrics for native glyph rendering and uses a faster rectangle packing algorithm for glyph atlases.

If you're running multiple mods with custom GUIs, they'll feel more cohesive and responsive. Smooth scrolling works across vanilla and modded screens. The Discord/Slack/GitHub emoji shortcode support is a small feature, but it's the kind of thing that shows the developer thought about quality.

Performance Boost

ModernUI-MC significantly multiplies GUI text rendering performance compared to vanilla. Memory allocations drop, GC pressure eases, and frame rate during menu navigation stays stable. If you're playing on older hardware or a heavily modded instance, this matters.


How to Install It

Installation depends on your Minecraft setup. ModernUI-MC supports both Forge and Fabric loaders across multiple versions.

For Fabric users on Minecraft 1.21.8 (the latest), download the Fabric 1.21.8 build from the releases page and drop it in your mods folder:

bash
ModernUI-Fabric-1.21.8-3.12.0.4-universal.jar

If you're on 1.21.4, 1.21.1, or 1.20.1, version-specific builds exist for each. Same process - no extra setup needed.

Forge users have similar options. Download the Forge-compatible JAR for your version:

bash
ModernUI-Forge-1.21.1-3.12.0.2-universal.jar

Drop it in mods, restart the launcher, and it loads automatically. The mod doesn't require configuration files or dependency hunting - it's a standalone JAR.

Compatibility Notes

ModernUI-MC works with OptiFine, Sodium (Rubidium), Iris (Oculus), and most other rendering mods. It's compatible with Minecraft's built-in JSON font definitions for bitmap and TTF fonts. If you're using multiple texture packs or heavy shader setups, the mod integrates cleanly without conflicts.


Key Features That Stand Out

Beyond the basics, ModernUI-MC includes features that feel more like a complete suite than just a text renderer.

Advanced Text Rendering

Unicode text layout computation is fast and asynchronous. The mod handles complex scripts, line breaking rules (CSS-style), emoji skin tone variants, and right-to-left languages. Font fallback works intelligently - if your chosen font doesn't have a glyph, it chains to the next font without breaking layout.

Screen Customization

Change background colors for your pause screen, blur the backdrop with adjustable Gaussian blur intensity, add fade-in animations. These seem cosmetic, but they're the polish that separates a mod from a tool.

Window Modes and Framerate Control

Borderless fullscreen and maximized window modes (beyond vanilla's limited options), framerate limiting, volume fading when the window loses focus, and pausing singleplayer when you open inventory. Not revolutionary, but quality improvements that accumulate.

Enhanced Tooltip Styling

Tooltips can have rounded or normal borders with anti-aliasing, custom title formatting, centered RTL text, and subpixel-perfect positioning. If you're making a modpack, this adds visual polish to every hover state.


Common Gotchas and Troubleshooting

ModernUI-MC is stable across major Minecraft versions, but a few things catch users off guard.

Font loading can take a few seconds on first launch if you're adding custom TTF fonts. This is normal - the mod caches them afterward. Don't panic if your first startup is slow.

If you're mixing ModernUI-MC with other full GUI mods (like AppleSkin or custom quest mods), occasionally conflicts arise with screen rendering order. Usually this resolves with mod load order tweaks, but test combinations before deploying to a server or modpack.

The mod requires Java 8+, which any modern Minecraft setup has. If you're on extremely old hardware or running ancient modpacks, version compatibility is worth checking on CurseForge first - the project has been around and has solid documentation on which versions support which Minecraft releases.


Alternatives Worth Considering

If ModernUI-MC feels like overkill for your needs, there are lighter options.

For pure text rendering improvements without the extra features, some players rely on OptiFine's font rendering alone. It's less advanced but requires no additional mods. For modpack creators who want UI consistency, ImGui-style frameworks exist in the Minecraft space, though none match ModernUI-MC's text engine sophistication.

If you're building a mod and need a GUI toolkit, the Java Swing libraries are an older standard, but ModernUI-MC is purpose-built for Minecraft and handles the game's rendering context without friction.


Getting Started With Server Config

Once installed, ModernUI-MC works without config. But if you're running a server with mods that use the framework, you might want to tweak font settings or disable certain features. Configuration is minimal - the mod respects vanilla font definitions, so if you have custom fonts in your resource pack, they integrate smoothly.

For server admins deploying modpacks, be aware that clients need the mod installed to experience the improvements - it's not server-side. But there's no performance hit for players without it (they just see vanilla rendering).

If you're interested in optimizing your server configuration more broadly, the Server Properties Generator can help you fine-tune vanilla settings to work alongside mods like this. And if you're looking for a modded server to test, the Minecraft Server List has communities running various modpacks.

ModernUI-MC is consistently updated. The latest release supports recent Minecraft versions (1.20.1 through 1.21.8), and the maintainer (BloCamLimb) keeps pace with new releases. Active development means bug fixes and optimizations roll out regularly.

BloCamLimb/ModernUI-MC - LGPL-3.0, ★189

Frequently Asked Questions

Is ModernUI-MC free and open source?
Yes. ModernUI-MC is licensed under LGPL-3.0 and available on GitHub. It's free to download, modify, and use. The project has 189 stars and is actively maintained. You can also use it as a dependency in your own mods.
Does ModernUI-MC work with OptiFine and Sodium?
Yes, ModernUI-MC is compatible with OptiFine, Sodium (Rubidium), Iris (Oculus), and most other rendering and performance mods. The framework integrates cleanly without conflicts, though you may need to load it before shader mods for best results.
What Minecraft versions does ModernUI-MC support?
The latest release supports Fabric and Forge for Minecraft 1.20.1, 1.21.1, 1.21.4, and 1.21.8. Older versions are available for earlier Minecraft releases. Check the GitHub releases page for your specific version.
Do I need ModernUI-MC on the server or just the client?
You only need it on the client side. ModernUI-MC improves your local text rendering and GUI experience. Servers don't require it, and players without it can still join. There's no performance penalty for servers or clients missing the mod.
Can I use ModernUI-MC as a modder to build custom GUIs?
Yes, that's a primary use case. ModernUI-MC provides a modding API and widget framework on top of Forge/NeoForge/Fabric. The mod includes comprehensive documentation and examples for developers building GUIs. It's designed for both mod developers and resource pack creators.