Skip to content

Declarative UI

Adds data-driven UI, like GUIs and Commands, fully server-side.

Fabric
Loaders
Fabric
Downloads on Modrinth
1.1K
Followers on Modrinth
3
versions
16
Updated
September 30, 2026Sep 30
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself
Preview — Recreated with this mod and a resource pack, originally from Parkour Masters · swipe

At a glance

A library: other mods need it
Runs on Fabric
For Minecraft 1.21.11–26.3
Server only — players don't need to install it
Latest version — 1.3.2+26.3 from September 30, 2026
Requires Fabric API
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.21.11–26.3

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 . 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//declarative_ui/menufolder you'll create. For the format of the JSON, check the [Menu Generator](https://misode.cj4.eu/declarative_ui/menu/)\ To create a Command, **with or without parameters**, follow previous steps but put the JSON withindata//declarative_ui/commandand check the [Command Generator](https://misode.cj4.eu/declarative_ui/command/) for the format.\ To create a container, create a JSON file withindata//declarative_ui/containerand put a number greater than 0 in asizefield. To handle a custom click action, create a JSON file withindata//declarative_ui/custom_click_actionand put a function path in afunction` field.

📖 Extra Commands

  • Use /item (modify|replace) container for command modification of player stored containers
  • Use `/declarative_ui open ` to open a menu
  • /execute if container

📖 Loot Tables

  • In 1.21.11+ you can choose the declarative_ui:container slot 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

FAQ

How to install Declarative UI?

Install Fabric for your Minecraft version, download Declarative UI for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Declarative UI support?

Declarative UI has builds for Minecraft 1.21.11–26.3.

Is Declarative UI needed on the server?

Server only — players don't need to install it

License and source
GNU Lesser General Public License v3.0 onlyfree to use and share; changes to the mod itself must be published under the same license
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More