介绍
Canary
An early warning of poison in the mines.
Canary is a mod that detects dangerous behaviors in other mods and provides several diagnostic tools.
Detected Issues
BlockState Property Injection
Some mods try to add new BlockState properties to vanilla blocks.
Unfortunately, this is likely to cause block desyncs.
Solutions:
- Use Statement, a library designed to do this safely
- Use a custom block instead, converting between it and the vanilla block as needed
Synced Entity Data Injection
Some mods try to add new synced data entries (EntityDataAccessors) to vanilla entity classes.
Doing this is likely to cause inscrutable networking errors, since field order is not stable between clients and the server.
Solutions:
- Use a Data Attachment
- Store values in normal fields, and sync them with custom packets
Diagnostics
In addition, Canary has the following diagnostic features:
- when enabled in the config (
"print_blockstate_report": true), a report of BlockStates will be printed to the log - the command
/canaryclient diagnoseDesyncwill generate a report of blockstates on the client and server
Fun Fact
This mod is named after the real life practice of using canaries in coal mines to detect
poisonous gasses. Like the real life counterpart, if the canary dies (the game crashes),
you’ve got a problem.
常见问题
Canary 支持哪些 Minecraft 版本?
Canary 支持 Minecraft Java 版 1.19.2–26.1,共 20 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
Canary 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
devOS Nautical 的其他作品
查看全部 →
Some Music Discs
Want to add some music discs? Well you're in luck... sorta.
Some Music Discs
Want to add some music discs? Well you're in luck... sorta.
Blocky Bass
Adds Big Mouth Blocky Bass to the game. Fish him up, feed him a disc, watch him sing!
Softer Pastels
A mod that adds a lot of Pastel-colored blocks, maybe for a softer vibe.
评论
登录后评论和评分