Config Datapack 图标

Config Datapack

作者:rebot | 分类:模组

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

Minecraft 版本: 25w20a 25w21a 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1-snapshot-1 26.1 26.1.1 26.1.2 26.2 26.3-snapshot-1 26.3-snapshot-2 26.3-snapshot-6

平台: fabric forge neoforge quilt

标签: utility

资源介绍

✅ Features

  • Adds a config list dialog via #config:list
  • Calls #config:add on /trigger config to register and customize datapack configs

? Usage

You can find it in the Pause Screen under Config or Custom Options/Config\
But the preferred method is using /trigger config, which shows you the Configs with changed values

I sure hope Mojang adds better methods for dynamic initial values in dialogs soon :p\
else we'll hit some limits soon\
+ the example using the function command for saving only works for server admins ;-; use Declarative UI to counteract limitations

Example `data/config/tags/function/add.json` ```json {"values":["example:setup_config"]} ``` `data/example/function/setup_config.mcfunction` ```mcfunction data modify storage config:list configs append value execute store result storage config:list configs[-1].inputs[0].initial int 1 run scoreboard players get @s exampleValue ``` `data/config/tags/dialog/list.json` ```json {"values":["example:config"]} ``` `data/example/dialog/config.json` ```json { "type": "minecraft:multi_action", "title": "Example Config", "inputs": [ { "type": "minecraft:number_range", "key": "int", "label": "Int", "start": 0, "end": 100, "step": 1, "initial": 10 }, { "type": "minecraft:number_range", "key": "float", "label": "Float", "start": 0, "end": 100, "step": 0.1, "initial": 40 }, { "type": "minecraft:single_option", "key": "enum", "label": "Enum", "options": [ "first", "second", "third" ] } ], "columns": 1, "actions": [ { "label": "Save", "action": { "type": "dynamic/run_command", "template": "function example:config {int:$(int),float:$(float),enum:\"$(enum)\"}" } } ] } ```

⚖️ License

Versions <1.2 are licensed under the ARR license.
Every other under GNU GPL v3

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

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
blink eye

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

查看详情
Firework Duration Indicators

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

查看详情
Chinese New Years Lanterns

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

查看详情
TreeTimber

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

查看详情