
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
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.18.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as DearImGuiMC-0.1.0+1.18.2-fabric.jar — drop this file into the mods folder
- Download size: 5.1 MB
- Download link checked 31 Aug 2026 — working
These come from our own check of the pack file, not from the source page.


