Mod
Declarative UI
No reviews yet
Adds data-driven UI, like GUIs and Commands, fully server-side.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
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.
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
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers