Skip to content

FlorianMichael/fabric-imgui-example-mod

Repository files navigation

Fabric ImGui Example Mod

This example contains the following features:

  • Basic ImGui/ImPlot Usage
  • Custom Font Rendering
  • Basic Viewport implementation
  • Image loading into ImGui

Setup

For setup instructions please see the fabric wiki page that relates to the IDE that you are using.

ImGui usage

You can just draw ImGui stuff using this:

ImGuiImpl.draw(io -> {
    if (ImGui.begin("Hello World")) {
        ImGui.end();
    }
    ImGui.showDemoWindow();
});

Keep in mind that ImGui needs to be initialized, so you must not remove the MinecraftClient mixin in the ImGui package

License

This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.

Releases

No releases published

Packages

No packages published

Languages