
Modrinth · Minecraft mod
Declarative UI
Adds data-driven UI, like GUIs and Commands, fully server-side.
Quick answer
Which Declarative UI release matches 26.1.2?
Declarative UI 1.3+26.1 targets 26.1, 26.1.1, 26.1.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.
Where it goes
Is Declarative UI required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does Declarative UI 1.3+26.1 need?
1.3+26.1 on 26.1.2. Every mod below is checked against that same setup.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Declarative UI without breaking your instance.
Built for Declarative UI 1.3+26.1 on 26.1.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.3+26.1. It targets 26.1, 26.1.1, 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.3+26.1. It opens that exact file at the source.
About this project
What does Declarative UI add?
Declarative UI
A data-driven UI mod for Minecraft using Fabric, making creation of GUIs easier and creating commands possible within a datapack.
No need to learn Java or Kotlin.
Containers also exist, so you could try making a sell gui, etc.
📖 Usage
To create a datapack, you can use /datapack create <id> <description>. You'll find it in your world's datapacks folder.
To create a GUI, which also allows customized slot actions and titles, create a JSON file within its data/<namespace>/declarative_ui/menu folder you'll create. For the format of the JSON, check the Menu Generator
To create a Command, with or without parameters, follow previous steps but put the JSON within data/<namespace>/declarative_ui/command and check the Command Generator for the format.
To create a container, create a JSON file within data/<namespace>/declarative_ui/container and put a number greater than 0 in a size field.
To handle a custom click action, create a JSON file within data/<namespace>/declarative_ui/custom_click_action and put a function path in a function field.
📖 Extra Commands
- Use
/item (modify|replace) containerfor command modification of player stored containers - Use
/declarative_ui open <targets> <menu>to open a menu /execute if container
📖 Loot Tables
- In 1.21.11+ you can choose the
declarative_ui:containerslot source in a slot entry
You can also download the .mcdoc and commands.json files for Spyglass here:
https://cdn.modrinth.com/data/5UTWPtx3/versions/ACQaQoYf/spyglass.zip?mr_download_reason=standalone
Project description from Modrinth.
Pick your setup
Declarative UI by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.2
1 loader build26.1.2
1 loader build26.1.1
1 loader build26.1
1 loader build1.21.11
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Declarative UI versions and loaders
1.3+26.1
declarative-ui-1.3+26.1.jar
13 Jun 2026
1.2+26.1
declarative-ui-1.2+26.1.jar
3 Jun 2026
1.1+26.1
declarative-ui-1.1+26.1.jar
19 May 2026
1.0.3+26.1
declarative-ui-1.0.3+26.1.jar
6 May 2026
1.0.1+26.1
declarative-ui-1.0.1+26.1.jar
4 May 2026
1.0+26.1
declarative-ui-1.0+26.1.jar
3 May 2026
Looking for an older file? The official Modrinth project page is in Resources.