ImproperUI
Rendering a custom screen in Minecraft has always been one of those tasks that separates hobbyist modders from the veterans. Laying out a button, positioning a slider, handling a hover state — it all means writing a pile of Java and hoping your coordinates line up. ImproperUI takes a different approach. It is a library mod that lets you describe your interface in a CSS-inspired scripting language, so you can build draggable, scrollable, interactive panels without wrestling with raw rendering code every step of the way.
If you have ever looked at a mod's config screen and thought "I could design that in an afternoon if I didn't have to write it in Java," this tool was made for you. It is aimed squarely at developers who already understand basic CSS properties and HTML structure, and it rewards that knowledge with a surprisingly quick workflow.
What ImproperUI Actually Does
At its core, ImproperUI is a library that other mods depend on. You do not install it to get a new block or item; you install it so that your own project can parse .ui script files at runtime and turn them into live screens. The syntax borrows heavily from Cascading Style Sheets, though it is not a one-to-one copy. Elements are declared with tags, styled with property blocks, and given behavior through event hooks.
A simple example from the mod's own documentation shows a draggable block element with a hover effect:
- A div tag with an ID, a background image, a fixed size, and a draggable flag
- A nested hovered block that changes border thickness and color when the cursor passes over
- Event bindings such as on-click that call back into your Java code
That last part is where the library earns its keep. You write a class that implements CallbackListener, annotate a method with @CallbackHandler, and name it to match the event declared in your script. When a player clicks, your Java method fires. The scripting layer handles layout and rendering; your code handles logic.
Supported Versions and Loader
ImproperUI is built for the Fabric mod loader, which makes sense given its reliance on a lightweight mod initializer and a companion jar in the mods folder. The project has been distributed through Modrinth and targets modern Minecraft releases in the 1.20 and 1.21 era, so check the version list on the project page before you commit to a dependency. Because it functions as a library rather than a standalone content mod, it will not do anything visible on its own — you need a mod that actually uses it, or you need to be writing one.
For players who just want to test a friend's project, this is where a launcher with a built-in add-on catalog saves real time. The foxygame.net launcher handles ImproperUI as a dependency automatically, pulling the correct build for your selected Minecraft version so you never end up with a mismatched jar in your mods folder.
How to Install ImproperUI
For Players
If you are running a mod that lists ImproperUI as a dependency, the process is the same as any other library:
- Install Fabric Loader and Fabric API for your target Minecraft version
- Download ImproperUI as a jar from its official project page
- Drop the jar into your mods folder alongside the mod that requires it
- Launch the game through your Fabric profile and confirm no dependency errors appear
For Developers
Adding ImproperUI to your own project takes three steps. First, download the jar and place it in a libs folder inside your project, then reference it in your build file with a compileOnly files(...) dependency. Second, add that same jar to your development mods folder so the game can load it at runtime. Third, call ImproperUIAPI.init() from your mod initializer, passing your mod ID, your initializer class, and the resource paths to your script files — by convention stored under assets/yourmodid/improperui/.
Once initialized, you can parse scripts directly, open a panel with ImproperUIPanel, register callbacks, and use helper methods like collectById() or collectOrdered() to query your element tree. Config keys let sliders and checkboxes persist values without extra plumbing, and reload() makes iterating on a layout fast during development.
Who Should Use It
ImproperUI is not for everyone. If you have never touched CSS, the learning curve is real, and the documentation assumes you know what a class attribute is. But for modders who find Minecraft's rendering stack tedious and want a declarative way to prototype menus, it removes a huge amount of boilerplate. The interactive demo screen shown on the project page — a home page with draggable, scrollable elements — is proof that the approach scales beyond a single button.
Grab the jar, wire up your initializer, and start writing .ui files. Your next config screen might take an afternoon instead of a weekend.