Data Tables
作者:Drakonkinst
A lightweight mod for Fabric which adds data tables: data-driven key-value pairs which can be used by modders or data pack creators!
介绍
中文介绍正在准备中,下面暂时显示原文。
Data Tables
Adds a new data pack resource known as data tables, which allow you to map identifiers (like item, block, or entity type IDs) to different integer values. These data tables are accessible to both modders and data pack creators who can use them to implement a wide variety of data-driven features.
Features
- Server-side, with optional syncing to client if the client also has the mod
- Supports tags, not just individual IDs!
- Refreshes on
/reloadlike other data pack resources - Supports modded items
- Query data tables using the
/tablecommand, or a simple API for modders! - Supports datagen! No need for modders to write data tables by hand.
See the README for more info!
Example Data Table
Data tables are extremely simple to write and use.
{
"type": "block",
"default": 0,
"entries": {
"#my_data_pack:gem_blocks": 3,
"minecraft:emerald_block": 5,
"minecraft:diamond_block": 5,
"minecraft:diamond_ore": 4
}
}
常见问题
Data Tables 支持哪些 Minecraft 版本?
Data Tables 支持 Minecraft Java 版 1.21.7–1.21.8,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Data Tables 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
评论
登录后评论和评分