Cyanide
“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)
Cyanide
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 list:
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)
下载 Cyanide
下载 Cyanide
下载 Cyanide
下载 Cyanide
下载 Cyanide
下载 Cyanide
下载 Cyanide
下载 Cyanide
下载 Cyanide
下载 Cyanide
Minecraft 1.21 的初始更新。此版本包含大量(由 Mojang 制作)更改,尤其是对 DataFixerUpper 的大型更新,这需要在 Cyanide 内部进行大量修改。Cyanide 的一些功能已被整合进 Minecraft 本身(例如,参见 Mojang/DataFixerUpper@e491561 或 Mojang/DataFixerUpper#54)。
伴随这些更改,Cyanide 的错误追踪功能也有所改进,主要是能够更优雅地处理“注册表中未绑定的值”错误,通过追踪未绑定引用的来源:
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'
更改
- 更新至 Minecraft 1.21,支持 NeoForge 和 Fabric。
- 重写了注册表解析(再次),以便更好地处理“注册表中未绑定的值”错误。
- 为
IntProvider和FloatProvider添加了改进的错误消息。 - 针对多种不同数据类型添加了各种
fieldOf注入以增强可追溯性。 - 移除了对
Biome、Enum类型和列表索引的错误报告修改。
功能
如需了解 Cyanide 现有功能的更全面列表,请参见此处。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧