请勿向 Cyanide 报告问题。请向我报告问题。
Thiocyanate
SCN- :Cyanide (GitHub | Modrinth) 的现代移植版本
Cyanide
(摘自 Cyanide 的 README.md)
“Cyanide 似乎让我想喝氰化物的冲动大大减少了。”——Starmute,世界生成数据包魔法师。
一款大幅改善 Minecraft 数据驱动型世界生成错误检测与恢复机制的模组。它移除了不必要的堆栈跟踪信息,并为大多数常见的世界生成数据包问题生成了用户友好的错误提示。关于 Cyanide 在错误报告方面所做的改进示例,请参阅下表:
| 说明 |
示例 |
| 所有错误均能识别出错误的精确来源文件及源数据包。部分错误提示经过优化以提高清晰度,或在可能的情况下添加了更多上下文信息。 |
Parsing Error: Value provider too low (must be >= 0), got -1 at 'placement' at 'cyanide:worldgen/placed_feature/ore_tin' defined in 'file/Test.zip' |
| “Unbound values in registry”(注册表中未绑定值)错误会追踪引用了该值的文件。 |
Missing File Error: 'cyanide:worldgen/configured_feature/big_ores' was referenced but not defined at 'cyanide:worldgen/placed_feature/big_ores' defined in 'file/Test.zip' |
| 非法 JSON 将显示确切的文件位置以及解析失败处的周围上下文。 |
Syntax Error: Expected ':' at line 3 column 13 path $.config at: { "type": "minecraft:big_flowers", "config" { ^ here
at 'cyanide:worldgen/configured_feature/flowers' defined in 'file/Test.zip' |
| “Feature Cycle”(特性循环)错误(当不同生物群系中定义的顺序不同的特性之间形成循环时)会追踪并报告发现的精确循环路径 |
A feature cycle was found.
Cycle: At step 0 Feature 'minecraft:lake_lava_underground' must be before 'minecraft:lake_lava_surface' (defined in 'minecraft:ocean' at index 1, 2 and 1 others) must be before 'cyanide:big_ore' (defined in 'minecraft:ocean' at index 2, 3) must be before 'cyanide:small_ore' (defined in 'minecraft:plains' at index 0, 1) must be before 'minecraft:lake_lava_underground' (defined in 'minecraft:ocean' at index 0, 1 and 1 others) |
致谢
感谢 AlcatrazEscapee 创建 Cyanide。Cyanide 采用 MIT 许可证,详情请见此处。
DO NOT REPORT ISSUES TO CYANIDE. REPORT ISSUES TO ME.
Thiocyanate
SCN- : a modern port of cyanide (GitHub | Modrinth)
Cyanide
(copied from cyanide's README.md)
cyanide seems to be something that will make me want to drink cyanide a lot less - Starmute, world generation datapack wizard.
A mod which substantially improves Minecraft's data driven world generation error detection and recovery mechanisms. It removes unnecessary stack traces and generates user-friendly error messages for most common issues with world generation datapacks. For some examples of what improvements Cyanide makes to error reporting, see the below table:
| Explanation |
Example |
| All errors identify the exact file, and source datapack where the error originated. Some error messages are improved for clarity or have additional context added where possible. |
Parsing Error: Value provider too low (must be >= 0), got -1 at 'placement' at 'cyanide:worldgen/placed_feature/ore_tin' defined in 'file/Test.zip' |
| The "Unbound values in registry" error tracks what files were referencing it. |
Missing File Error: 'cyanide:worldgen/configured_feature/big_ores' was referenced but not defined at 'cyanide:worldgen/placed_feature/big_ores' defined in 'file/Test.zip' |
| Illegal JSON will show the exact file location, along with the surrounding context of where it failed to parse. |
Syntax Error: Expected ':' at line 3 column 13 path $.config at: { "type": "minecraft:big_flowers", "config" { ^ here
at 'cyanide:worldgen/configured_feature/flowers' defined in 'file/Test.zip' |
| "Feature Cycle" errors (where features are defined in different order within different biomes) trace and report the exact cycle found |
A feature cycle was found.
Cycle: At step 0 Feature 'minecraft:lake_lava_underground' must be before 'minecraft:lake_lava_surface' (defined in 'minecraft:ocean' at index 1, 2 and 1 others) must be before 'cyanide:big_ore' (defined in 'minecraft:ocean' at index 2, 3) must be before 'cyanide:small_ore' (defined in 'minecraft:plains' at index 0, 1) must be before 'minecraft:lake_lava_underground' (defined in 'minecraft:ocean' at index 0, 1 and 1 others) |
Credits
Thanks to AlcatrazEscapee for creating cyanide. Cyanide is licensed under the MIT license which can be found here.
评论 0
登录后参与评分
还没有评论,来抢沙发吧