第六步:
编写物体虚影文件:
我们打开 YYYmod/entities/decoration/xxx/xxx_ghosts.json 制粘贴这段代码
{
"components": {
"model_variants": {
"default": {
"models": [
"file(xxx.qb)"
]
}
},
"unit_info": {
"name": "xxx",
"description": "---------------------------",
"icon" : "file(xxx.png)"
},
"stonehearth:material" : {
"tags" : "wood furniture crafted"
},
"mob" : {
"model_origin" : { "x": -0.05, "y": 0, "z": 0.05 },
"region_origin" : { "x": 0.5, "y": 0, "z": 0.5 }
}
}
}
注释:
1."models":[ "file(dresser.qb)" ] 是物体虚影的模型来源.
2."unit_info":信息."name"名字; "description"描述;"icon"图标.
3."stonehearth:material": {"tags" : "wood furniture crafted"} 定义物体,是木制的物品.
4."mob" 这个没什么实质意义,是对于模型是奇数像素时,用来调整的.不用管.