猹引擎
自定义方块模型
配置文件
txt
plugins/ChaEngine/block/*.yml方块模型字段
displaymodelanimationtextureitem-texturedefault-animationscalepositionrotationcollision
样例
yml
测试方块模型:
display: "测试方块模型"
model: "测试方块模型.geo.json"
animation: "测试方块模型.animation.json"
texture: "测试方块模型.png"
item-texture: "测试方块物品.png"
default-animation: "idle"
scale: 1.0
position: [ 0, 0, 0 ]
rotation: [ 0, 0, 0 ]
collision: [ 1, 1, 1 ]资源映射
以上路径统一映射到:
txt
resourcepacks/ChaEngine/model/例如:
model: "测试方块模型.geo.json"->resourcepacks/ChaEngine/model/测试方块模型.geo.jsonmodel: "目录/模型.geo.json"->resourcepacks/ChaEngine/model/目录/模型.geo.json
猹件开发组