Back to mods
CraftUI project artwork

Modrinth · Minecraft mod

CraftUI

An implementation of Dear ImGui on top of Minecraft for in-game editors.

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

Quick answer

Which CraftUI release matches 26.3?

Updated 27 days ago
Best match for your filters 1.1.1
Game version 26.3
Loader Fabric

CraftUI 1.1.1 targets 26.3 with Fabric. It must be installed on the client. Do not install it on the dedicated server. No extra mods listed for this file.

Where it goes

Is CraftUI 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 CraftUI 1.1.1 need?

1.1.1 on 26.3. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add CraftUI without breaking your instance.

Built for CraftUI 1.1.1 on 26.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.1.1. It targets 26.3 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  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 1.1.1. It opens that exact file at the source.

About this project

What does CraftUI add?

CraftUI

A framework to use Dear ImGui in Minecraft


Over the past few years, I've noticed a growing use of ImGui in utility mods such as Flashback. However,
due to technical constraints, none of these mods can be compatible with each other (and if they are, they're extremely jank).

CraftUI is a framework that attempts to fix this. Being a minecraft-specific wrapper for Dear ImGui, it handles mounting
and rendering the ImGui native code, cross-mod compatibility, as well as providing a set of extra, Minecraft-specific utility systems.

Note: This framework is still in development, and public API functionality might change.
It also doesn't support all Minecraft versions right now.

Examples

Example of an editor UI
Some of the widgets ImGui provides

Features

CraftUI is built on ImGui Java, and by extension, contains all its features.
On top of that, it also includes:

  • Resource-pack-based font loading
  • User-definable themes (also resource-pack-based)
  • Game viewport resizing via dock-space
  • Native file browser access
  • Other various utilities

Getting Started

To preface, it's important to have a basic understanding of Dear ImGui, and specifically ImGui Java, before using this library.
Any questions pertaining ImGui on its own will be redirected there.

With that said, to install, add the following to the repositories section of your buildscript:

repositories {
    // ...
    maven { url = 'https://jitpack.io' }
}

Then, in your dependencies section, add the following, replacing [version] with the desired version:

dependencies {
    // ...
    modImplementation 'com.github.Igrium:CraftUI:[version]'
}

And don't forget to add it as a dependency in fabric.mod.json!

Once you have the framework installed and building, you can create a new UI application by extending CraftApp:

public class ExampleApp extends CraftApp {
    @Override
    protected void render(MinecraftClient client) {
        // ImGui rendering code here
    }
}

Now, to open the UI, call:

AppManager.openApp(new ExampleApp());

The app will now render atop the game until it is closed with exampleApp.close(). See testmod for a more in-depth example.

Important Notes:

  • Due to the size of the included native libraries, it is not recommended to bundle the framework itself with your mod.
  • The package com.igrium.craftui.impl is not considered part of the public API, and could change without warning!

Project description from Modrinth.

Pick your setup

CraftUI by Minecraft version and loader

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

3 available setups

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

Recent files

CraftUI versions and loaders

2 of 7 releases match
Clear filters

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