VintageTag
VintageTag 为 Minecraft 1.12.2 添加了一个简单的标签系统,支持物品、流体和方块标签。
注册标签
在 FMLLoadCompleteEvent 阶段,标签系统按顺序执行以下步骤:
- 同步 ore dictionary(矿石词典)数据
- 从所有模组加载标签(
src/main/resources/data/tags/<type>/)
- 从配置文件加载标签(
config/tags/<type>/)
其中,<type> 可以是 item、fluid 或 block 之一。
JSON 格式与官方 1.13+ 的标签系统类似。详情请参见 TagLoader。
命令系统
/tag info // 显示标签统计信息(需要权限等级 1)
/tag reload // 重新加载标签(需要权限等级 2)
工具提示
按住 Shift 可查看物品、流体和方块的标签信息。例如:
- 在水桶上按住 Shift 将显示该水桶的物品标签以及水的流体标签。
- 在石头(一种具有方块形态的物品)上按住 Shift 将显示石头的物品标签和方块标签(方块标签不区分元数据)。
标签类型采用颜色编码:
如果物品不包含任何类型的标签,则会显示“无标签”消息。
网络同步
当玩家登录或使用 /tag reload 命令时,服务器数据将立即同步到客户端。
配置选项
// 启用扫描配置文件中的标签
B:enableConfigScanner=true
// 启用扫描模组中的标签
B:enableModScanner=true
// 启用从矿石词典同步标签
B:enableOreSync=true
// 启用标签工具提示
B:enableTooltip=true
VintageTag
VintageTag adds a simple tag system to Minecraft 1.12.2, supporting item, fluid, and block tags.
Registering Tags
During the FMLLoadCompleteEvent phase, the tag system performs the following steps sequentially:
- Synchronize ore dictionary data
- Load tags from all mods (
src/main/resources/data/tags/<type>/)
- Load tags from configuration files (
config/tags/<type>/)
Here, <type> can be one of item, fluid, or block.
The JSON format is similar to the official 1.13+ tag system. For details, see TagLoader.
Command System
/tag info // Display tag statistics (requires permission level 1)
/tag reload // Reload tags (requires permission level 2)
Tooltip
Hold Shift to view tag information for items, fluids, and blocks. For example:
- Holding Shift on a water bucket will show the bucket's item tags and water's fluid tags.
- Holding Shift on stone (an item that has a block form) will show the stone's item tags and block tags (block tags do not distinguish metadata).
Tag types are color-coded:
- White: item tags
- Blue: fluid tags
- Yellow: block tags
If the item contains no tags of any type, a "No tags" message will appear.
Network Synchronization
When a player logs in or uses the /tag reload command, the server's data is immediately synchronized to the client.
Configuration Options
// Enable scanning tags in configuration files
B:enableConfigScanner=true
// Enable scanning tags in mods
B:enableModScanner=true
// Enable synchronizing tags from the ore dictionary
B:enableOreSync=true
// Enable tag tooltips
B:enableTooltip=true
评论 0
登录后参与评分
还没有评论,来抢沙发吧