
Bento GUI
The expressive GUI library from Bento Box
About this Mod
Bento GUI
Bento GUI is an expressive GUI library that makes building dynamic screens fast and easy. It is a replacement for Minecraft’s UI widgets that is inspired by HTML and CSS.
Features:
- Many UI elements provided out of the box
- Build elements using the builder pattern
- Robust layout engine with min/max and auto-computed dimensions
- Customizable element rendering
Bento GUI is documented in-code with JavaDocs and on my wiki.
@Environment(EnvType.CLIENT)
public class MyScreen extends Screen {
public MyScreen() {
super(Text.literal("My Screen"));
}
@Override
protected void init() {
Window window = client.getWindow();
int width = window.getScaledWidth();
int height = window.getScaledHeight();
// The root panel that will contain everything
Panel root = Panel.builder()
.dimensions(width, height)
.spacing(1)
.build();
// Add elements to root
Label title = Label.builder()
.text(Text.literal("My Screen"))
.dimensions(true, 32)
.build();
ScrollPanel body = ScrollPanel.ofMenu()
.dimensions(true, true)
.alignCenter()
.padding(10, 0)
.spacing(10)
.build();
Panel footer = Panel.builder()
.dimensions(true, 32)
.alignCenter()
.alignMiddle()
.padding(20, 0)
.spacing(8)
.flowAxis(FlowAxis.HORIZONTAL)
.build();
root.addChild(title);
root.addChild(body);
root.addChild(footer);
// Add elements to footer
TextField<String> searchField = TextField.ofString()
.palceholder(Text.literal("Search..."))
.width(true)
.maxWidth(200)
.build();
Button doneButton = Button.builder()
.text(Text.literal("Done"))
.onPress(self -> close())
.build();
footer.addChild(searchField);
footer.addChild(doneButton);
// Add root as drawable child
addDrawableChild(root);
}
}
Available Versions
How to Install Bento GUI on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).
Install Mod
Open the mod browser in the dashboard and search for "Bento GUI". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.1, 1.21
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Bento GUI 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.1). You can switch loaders with one click in the panel.
Is Bento GUI compatible with fabric?
Bento GUI officially supports fabric for Minecraft 1.21.1, 1.21. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Bento GUI – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Bento GUI 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.
Similar Mods
Rent Modded Server
Install Bento GUI with just one click on your server.