Back to mods
DearImGui project artwork

Modrinth · Minecraft mod

DearImGui

A library mod providing a means of using ImGui within Minecraft

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which DearImGui release matches 1.19.2?

Updated 2 years ago
Best match for your filters 0.1.0+1.19.2-fabric
Game version 1.19.2
Loader Fabric

DearImGui 0.1.0+1.19.2-fabric targets 1.19.2 with Fabric. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.

Where it goes

Is DearImGui required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does DearImGui 0.1.0+1.19.2-fabric need?

0.1.0+1.19.2-fabric on 1.19.2. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric Language Kotlin first. We found matching files for this game-version and loader setup.

Fabric Language Kotlin Needed by DearImGui 0.1.0+1.19.2-fabric
required
Matching file found Matched file: 1.14.2+kotlin.2.4.21

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add DearImGui without breaking your instance.

Built for DearImGui 0.1.0+1.19.2-fabric on 1.19.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.1.0+1.19.2-fabric. It targets 1.19.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric Language Kotlin first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.1.0+1.19.2-fabric. It opens that exact file at the source.

About this project

What does DearImGui add?

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

Project description from Modrinth.

Pick your setup

DearImGui by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

10 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

DearImGui versions and loaders

1 of 10 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.