DearImGui

DearImGui

A library mod providing a means of using ImGui within Minecraft

by
917 Downloads
fabricdecorationlibraryutility
Rent Server with this Mod

About this Mod

DearImGui for Minecraft

A basic library mod giving developers the ability to use ImGui within Minecraft.


Discord Badge
Ko-Fi Badge


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();
    }
    
}

](https://s.deftu.dev/bisect)


This project is licensed under LGPL-3.0
© 2024 Deftu

Available Versions

[Fabric 1.18.2] DearImGuiMC 0.1.0release
MC 1.18.2fabric
July 2, 2024
[Fabric 1.17.1] DearImGuiMC 0.1.0release
MC 1.17.1fabric
July 2, 2024
[Fabric 1.16.5] DearImGuiMC 0.1.0release
MC 1.16.5fabric
July 2, 2024
[Fabric 1.20.1] DearImGuiMC 0.1.0release
MC 1.20.1fabric
July 2, 2024
[Fabric 1.20.4] DearImGuiMC 0.1.0release
MC 1.20.4fabric
July 2, 2024

How to Install DearImGui on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21).

3

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

fabric

Minecraft Versions

1.21, 1.20.6, 1.20.4 (+7 more)

Server-side

Unsupported

Recommended 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.

Rent Modded Server

Install DearImGui with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 or later
Server-side
Unsupported

Supported Versions

1.211.20.61.20.41.20.21.20.11.19.41.19.21.18.21.17.11.16.5