我是改装新手,我一直在尝试向 Minecraft 1.17.1 添加我觉得缺失的块。之前我遇到过问题,过了一段时间我就解决了,但是这个问题让我困扰了几天。
如您所见,我的物品方块模型与任何 cube_all 方块模型都可以正常工作。然而,Cube_column 模型没有被注册。
这是我的方块状态文件及其模型。也许您可以看到我似乎找不到的明显错误。
方块状态
{
"variants": {
"axis=x": {
"model": "expansion:block/stone_pillar_horizontal",
"x": 90,
"y": 90
},
"axis=y": {
"model": "expansion:block/stone_pillar"
},
"axis=z": {
"model": "expansion:block/stone_pillar_horizontal",
"x": 90
}
}
}
模型
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "expansion:blocks/stone_pillar_top",
"side": "expansion:blocks/stone_pillar"
}
}
卧式模型
{
"parent": "minecraft:block/cube_column_horizontal",
"textures": {
"end": "expansion:blocks/stone_pillar_top",
"side": "expansion:blocks/stone_pillar"
}
}
这也是我在启动 mod 时收到的终端消息。如您所见,该程序出于某种原因对“轴”提出了质疑,并声称我的模型丢失了。
[Worker-Main-11/WARN] (Minecraft) Exception loading blockstate definition: 'expansion:blockstates/stone_pillar.json' in resourcepack: 'Expansion' for variant: 'axis=z': Unknown blockstate property: 'axis'
[Worker-Main-11/WARN] (Minecraft) Exception loading blockstate definition: 'expansion:blockstates/stone_pillar.json' in resourcepack: 'Expansion' for variant: 'axis=x': Unknown blockstate property: 'axis'
[Worker-Main-11/WARN] (Minecraft) Exception loading blockstate definition: 'expansion:blockstates/stone_pillar.json' in resourcepack: 'Expansion' for variant: 'axis=y': Unknown blockstate property: 'axis'
[Worker-Main-11/WARN] (Minecraft) Exception loading blockstate definition: 'expansion:blockstates/stone_pillar.json' missing model for variant: 'expansion:stone_pillar#'
我已经两次和三次检查了我所有的文件都在它们应该在的位置,没有简单的拼写错误并且没有任何东西被解开。IntelliJ 还表示,我所有的工作都没有它可以分辨的缺陷。请帮助我,因为我在其他任何地方都找不到它:(