Declarative UI

⭐ — (2 endorsements) 📥 401 downloads 📌 v1.3+26.2 📅 5/13/2026
🟡 Updated this year

By CJDev · fabric

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 6/16/2026 📅 Created: 5/13/2026
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 🏆 #624 of 907 fabric mods in this game by downloads

📋 About This Mod

## 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 (https://misode.cj4.eu/declarative_ui/menu/)\ To create a Command, **with or without parameters**, follow previous steps but put the JSON within `data/<namespace>/declarative_ui/command` and check the (https://misode.cj4.eu/declarative_ui/command/) 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) container` for 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:container` slot source in a slot entry You can also download the .mcdoc and commands.json files for (https://marketplace.visualstudio.com/items?itemName=SPGoding.datapack-language-server) here: https://cdn.modrinth.com/data/5UTWPtx3/versions/ACQaQoYf/spyglass.zip?mr_download_reason=standalone

## 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/menu` folder you'll create. For the format of the JSON, check the (https://misode.cj4.eu/declarative_ui/menu/)\ To create a Command, with or without parameters, follow previous steps but put the JSON within `data//declarative_ui/command` and check the (https://misode.cj4.eu/declarative_ui/command/) for the format.\ To create a container, create a JSON file within `data//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//declarative_ui/custom_click_action` and put a function path in a `function` 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 (https://marketplace.visualstudio.com/items?itemName=SPGoding.datapack-language-server) here: https://cdn.modrinth.com/data/5UTWPtx3/versions/ACQaQoYf/spyglass.zip?mr_download_reason=standalone

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
CJDev
Version
1.3+26.2
Downloads
401
Endorsements
2
Category
fabric
Created
5/13/2026
Updated
6/16/2026
Game Versions
26.2
Tags
library, storage, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does Declarative UI support?

The author lists 26.2. Other versions may work but are untested by the author.

What is the latest version of Declarative UI?

Version 1.3+26.2, published 2026-06-16 with 401 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More fabric 👤 More by CJDev 🔎 Similar Mods 🌐 Best fabric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods