Declarative UI
ModAdds data-driven UI, fully server-side.
Type
Mod
Modrinth Downloads
31
Modrinth ID
5UTWPtx3
Last Updated
May 19, 2026
Description
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
📖 Extra Commands
- Use /item (modify|replace) container for command modification of player stored containers
- Use /declarative_ui open <targets> <menu> to open a menu
You can also download the .mcdoc and commands.json files for Spyglass here: https://cdn.modrinth.com/data/5UTWPtx3/versions/v9eBhllw/spyglass.zip
Compatibility
Mod Loaders
Game Versions
Screenshots
Similar Mods
Funny Flower Crowns
This mod adds Flower Crowns that can be crafted by placing four flowers on a campfire
Anti Spectator Noclip
Prevent spectator players from passing through walls
Pale World
The Pale Garden has become not just a biome in the world, but has enslaved all other biomes, making them pale too.
Better Revive
A death & revive system with graves, revive potions, grave compass and revive scroll!
[BUB] Gender
Mobs now have gender variants.
Zombies Addon
A mod that integrates several Zombies mods and provides them as modules.