
DearImGui
A library mod providing a means of using ImGui within Minecraft
About this Mod
DearImGui for Minecraft
A basic library mod giving developers the ability to use ImGui within Minecraft.
Usage
Setup
You need to add it as a dependency in your build.gradle(.kts) file.
repositories {
maven("https://maven.deftu.dev/snapshots")
}
dependencies {
modImplementation("dev.deftu:dearimguimc-<MINECRAFTVERSION>-fabric:<VERSION>")
}
Of course, replace <MINECRAFTVERSION> with the version of Minecraft you are developing for, and <VERSION> with the version of the library you want to use.
Rendering
To render for ImGui, you need to create your own DearImGuiEntrypoint and add it to your fabric.mod.json file,
{
"entrypoints": {
"imgui": ["your.package.here.DearImGuiEntrypoint"]
}
}
DearImGuiEntrypoint has two methods you can override - createRenderer and render.
public class ExampleDearImGuiEntrypoint implements DearImGuiEntrypoint {
@Override
public ImGuiRenderer createRenderer() {
return new ExampleImGuiRenderer();
}
@Override
public void render() {
// Render ImGui here
}
}
Both ultimately achieve the same goal, but createRenderer is more flexible and allows you to pass in additional parameters to your renderer.
Example Rendering
public class ExampleImGuiRenderer implements ImGuiRenderer {
@Override
public void render() {
ImGui.showDemoWindow();
}
}
public class ExampleDearImGuiEntrypoint implements DearImGuiEntrypoint {
@Override
public void render() {
ImGui.showDemoWindow();
}
}
This project is licensed under LGPL-3.0
© 2024 Deftu
Available Versions
How to Install DearImGui on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21).
Install Mod
Open the mod browser in the dashboard and search for "DearImGui". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21, 1.20.6, 1.20.4 (+7 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
DearImGui server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21). You can switch loaders with one click in the panel.
Is DearImGui compatible with fabric?
DearImGui officially supports fabric for Minecraft 1.21, 1.20.6, 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with DearImGui – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if DearImGui consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install DearImGui with just one click on your server.

