ModularUI

A GUI library to ease the process of creating vanilla style GUIs
item image
Styled text with inlined non text elements which can have tooltips or be clickable.

Styled text with inlined non text elements which can have tooltips or be clickable.

A graph plotting the function sin(x) / x

A graph plotting the function sin(x) / x

Dropdown menu with selectable options

Dropdown menu with selectable options

Description

ModularUI

What is ModularUI?

ModularUI is a library for Minecraft aiming to make GUI's much easier.

Why ModularUI?

Minecrafts (and Forges) gui code is not very good and the code gets really messy really fast. With ModularUI you can build GUIs fast by adding Widgets to panels with layout widgets, so you don't have to calculate positions and sizes yourself. ModularUI is very dynamic and allows for very complicated client only or even client-server synced GUIs. A good example is fluid slots in GUIs. Minecraft and Forge don't offer anything to add fluid slots or tanks to a GUI. With ModularUI you simply call .child(new FluidSlot().syncHandler(new FluidTank(16000))) (along with some setters).

Buy Me a Coffee at ko-fi.com

Key features

  • panel system similar to windows
  • widgets are placed in a tree like structure
  • widget rendering and interactions are automatically handled
  • no need to create GUI texture sheets, each widget is rendered dynamically
  • easy and dynamic widget sizing and positioning
  • build in APIs for various UI things like color, stencil (fancy scissor) and animations
  • easy syncing between client and server without
  • good for client only GUIs and client-server synced GUIs
  • GUI themes are loaded via JSON and can be added and modified by resourcepacks
  • recipe viewer compat for things like exclusion zones and ghost ingredients

History

  • First appearance of ModularUI in GTCE by Archengius
  • on 30th December 2021 GTCEu released with some improvements to its GUI library
  • on 16th January 2022 Rongmario created the ModularUI repository in the CleanroomMC organization with the intention to rewrite it
  • on 19th February I (brachy) started working on ModularUI
  • on 21st May 2022 ModularUI version 1.0.0 was released on Curseforge
  • miozune decided to port ModularUI to 1.7.10 for GTNH
  • after 3 month of updates I decided to rewrite some parts of the library
  • the rewrite turned very large and thus ModularUI 2 was born
  • on 21st March 2023 I uploaded version 2.0.0 to Curseforge
  • since then ModularUI is constantly receiving updates

I need help

1.12.2

The 1.12.2 version is part of CleanroomMC. It's discord is here.

Any version

You can contact me on Discord (Username: 'brachy.'). Do not ask to ask a question. Just ask your question. If you just say 'Hi' I will ignore you.

If you are a developer i can give you access to a discord sever which is meant for developers only.

The ModularUI Team

profile avatar
Owner
  • 12
    Followers
  • 13
    Projects
  • 3.3M
    Downloads

EnterBioHere

Donate

More from brachy_View all

  • Inventory Bogo Sorter project image

    Inventory Bogo Sorter

    • 1.3M
    • Mods

    A highly configurable and advanced inventory sorter mod

    • 1.3M
    • May 12, 2026
    • Mods
    • +2
  • GroovyScript project image

    GroovyScript

    • 579.7K
    • Mods

    A powerful scripting mod like CraftTweaker or KubeJS based on Groovy.

    • 579.7K
    • April 14, 2026
    • Mods
    • +2
  • NeverEnoughAnimation project image

    NeverEnoughAnimation

    • 196.0K
    • Mods

    Adds various animations for inventories

    • 196.0K
    • February 22, 2026
    • Mods
  • QBitHop project image

    QBitHop

    • 13.0K
    • Mods

    A fork of the BitHop mod, containing further improved additional hoppers.

    • 13.0K
    • December 27, 2025
    • Mods
    • +4
  • Inventory Bogo Sorter project image

    Inventory Bogo Sorter

    • 1.3M
    • Mods

    A highly configurable and advanced inventory sorter mod

    • 1.3M
    • May 12, 2026
    • Mods
    • +2
  • GroovyScript project image

    GroovyScript

    • 579.7K
    • Mods

    A powerful scripting mod like CraftTweaker or KubeJS based on Groovy.

    • 579.7K
    • April 14, 2026
    • Mods
    • +2
  • NeverEnoughAnimation project image

    NeverEnoughAnimation

    • 196.0K
    • Mods

    Adds various animations for inventories

    • 196.0K
    • February 22, 2026
    • Mods
  • QBitHop project image

    QBitHop

    • 13.0K
    • Mods

    A fork of the BitHop mod, containing further improved additional hoppers.

    • 13.0K
    • December 27, 2025
    • Mods
    • +4