Declarative UI 图标

Declarative UI

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.3+26.2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/declarative-ui
资源信息

Minecraft 版本: 26.2

平台: fabric

标签: library storage utility

资源介绍

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) 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 Spyglass here:
https://cdn.modrinth.com/data/5UTWPtx3/versions/ACQaQoYf/spyglass.zip?mr_download_reason=standalone

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Discord folders

价格:0 墨喵币
下载量:0

查看详情
SimpleInventories

价格:0 墨喵币
下载量:0

查看详情
Guns - Greenboy's Legendary Guns

价格:0 墨喵币
下载量:0

查看详情
Throw With Ease

价格:0 墨喵币
下载量:0

查看详情