DooK
本帖最后由 DooK 于 2022-4-27 00:34 编辑

机器写好了 模型做好了
贴图画好了但是用不了,放进游戏就是紫黑方块(但是模型可以用)
(敲掉的出现的碎片动画显示有材质,是哪个地方写错了...)

资源包内代码如下:
blockstates/smelternull.json
{
  "variants": {
    "": {
      "model" : "custommachinery:machine/smelternull"
    }
  }
}



models/machine/smelternull.json

{
    "parent": "minecraft:block/block",
    "textures": {
        "texture": "custommachinery:machine/smelternull",
        "particle": "custommachinery:machine/smelternull"
    },
    "elements": [
        {
            "from": [6.5, 9, 1],
            "to": [9.5, 12.5, 4.5],
            "rotation": {"angle": 0, "axis": "y", "origin": [7, 1, 8]},
            "faces": {
                "north": {"uv": [7.75, 3.75, 8.125, 4.1875], "texture": "#0"},
                "east": {"uv": [7.5, 1.75, 7.9375, 2.1875], "texture": "#0"},
                "south": {"uv": [7.75, 4.25, 8.125, 4.6875], "texture": "#0"},
                "west": {"uv": [4.5, 7.5, 4.9375, 7.9375], "texture": "#0"},
                "up": {"uv": [8.25, 2.6875, 7.875, 2.25], "texture": "#0"},
                "down": {"uv": [8.25, 2.75, 7.875, 3.1875], "texture": "#0"}
            }
        },
...省略




然后图片位置:
textures/machine/smelternull.png
textures/block/smelternull.png




魔法巨猫
"texture": "custommachinery:machine/smelternull",
材质路径应该是 assets/custommachinery/machine/smelternull

DooK
魔法巨猫 发表于 2022-4-27 17:59
"texture": "custommachinery:machine/smelternull",
材质路径应该是 assets/custommachinery/machine/smel ...

不放到texture里吗 0.0