基岩版矿车模型怎么改
本帖最后由 成天giegie 于 2026-7-16 20:36 编辑用blockbench做了新的矿车模型,然后替换了原来的模型并用了新的纹理,但是后面进游戏发现纹理崩了,后面才知道是模型的问题,但是我的模型翻了好几遍都找不到问题,开发者日志也没有报错,不知道怎么回事
文件是我的模型 我用ai问了,发现你的文件没定义好
没有在json中添加文件路径
如//修复办法在 "description" 的右大括号后面,"bones" 的前面加上一串代码,如
"textures": {
"default": "textures/entity/minecart"
},
//修复后如下
{
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.minecart",
"texture_width": 64,
"texture_height": 64
// ... 其他描述项
},
"textures": { // <--- 把这段插在这里!
"default": "textures/entity/minecart"
},
"bones": [
// ... 你原有的骨骼
]
}
]
}
//完整修复文件代码,只需替换你的文件就行了
{
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.minecart",
"texture_width": 64,
"texture_height": 64,
"visible_bounds_width": 3,
"visible_bounds_height": 3.5,
"visible_bounds_offset":
},
"textures": {
"default": "textures/entity/minecart"
},
"bones": [
{
"name": "root",
"pivot":
},
{
"name": "bottom",
"parent": "root",
"pivot": ,
"rotation": ,
"cubes": [
{"origin": [-8, 14, -1], "size": , "uv": }
]
},
{
"name": "back",
"parent": "root",
"pivot": [-9, 20, 0],
"rotation": ,
"cubes": [
{"origin": [-15, 19, -1], "size": , "uv": }
]
},
{
"name": "front",
"parent": "root",
"pivot": ,
"rotation": ,
"cubes": [
{"origin": , "size": , "uv": }
]
},
{
"name": "right",
"parent": "root",
"pivot": ,
"rotation": ,
"cubes": [
{"origin": [-10, 19, -8], "size": , "uv": }
]
},
{
"name": "left",
"parent": "root",
"pivot": ,
"cubes": [
{"origin": [-10, 19, 6], "size": , "uv": }
]
}
]
}
]
}
最终修复文件给你了,请你收下
感谢指导
但是描述贴图的json是/resource_pack/entity/minecart.v1.0.entity.json这里的,而我的模型在/resource_pack/models/里面好像是不用贴图的,因为原版资源包的模型json没有描述贴图
我也还是试了一下但是依然不起作用
页: [1]