ducky lib
by cokie1479
ducky lib is a Forge library for building GUI screens from TOML layout files, with an in-game visual editor and a theme system.
What it does
Screens are defined in TOML files rather than written as Java GUI code. A layout lists the built-in widgets it uses, including Button, Label, TextField, Slider, Checkbox, Dropdown, Panel and ScrollPanel, and a mod opens the finished screen with a short call once the layout is loaded.
An in-game visual editor lets a designer place and adjust widgets while the game runs. A property panel and a widget selector handle live edits, and the custom theme system applies consistent styling across screens. Theme files are hot-reloadable, so changes show up without restarting the game.
The library is designed for use as a dependency of other Forge 1.20.1 mods. It is published for Forge only, targets 1.20.1, and runs on client and server. Its license is All rights reserved, so it is not open source, though the source code and issue tracker are public.
Key features
TOML-defined GUI layouts
Screens are described in TOML files, so their structure can be read and edited outside the Java source.
Built-in widgets
Button, Label, TextField, Slider, Checkbox, Dropdown, Panel and ScrollPanel are provided and can be combined in one layout.
Custom theme system
Theme files control the look of widgets and can be reloaded while the game is running.
In-game visual editor
A property panel and widget selector let a designer change a layout live, without rebuilding the project.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Mod settings screens
A mod can present its configuration through a TOML layout instead of hand-coded widgets.
Prototyping interfaces
A designer can arrange widgets in the visual editor and adjust them until the screen works.
Who it’s for: Forge mod developers who want to build interface screens without writing GUI code by hand, and players who run mods that depend on the library.
Questions
Does ducky lib need to be installed on both sides?
Which loader and game version does ducky lib support?
Is the source code of ducky lib available?
In the catalog
ducky lib is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 34,764 mods support Minecraft 1.20.1.
More from cokie1479
Similar mods
What the author says
A GUI lib with TOML-based layouts and an in-game editor. DuckyLib is a GUI framework i used in my mods. Design screens using TOML files or use the built-in visual editor.
Official listing
- Modrinth page
- modrinth.com/mod/ducky-lib
- Owner
- cokie1479
- Published
- 2026-07-11
- Updated on Modrinth
- 2026-07-14
- Facts verified
- 2026-10-15