猹引擎
方块模型配置
方块模型配置用于定义可放置模型方块。
文件位置
txt
plugins/ChaEngine/block/*.yml完整示例
yml
测试方块模型:
# 通过获取动作、给予动作和破坏掉落时显示的名字
display: "测试方块模型"
# 模型路径,根目录:resourcepacks/ChaEngine/model/
model: "测试方块模型.geo.json"
# 动画文件路径
animation: "测试方块模型.animation.json"
# 贴图文件路径
texture: "测试方块模型.png"
# 物品贴图路径
item-texture: "测试方块物品.png"
# 默认动作
default-animation: "idle"
# 缩放比例
scale: 1.0
# 位置偏移 [x, y, z]
position: [ 0, 0, 0 ]
# 旋转角度 [x, y, z]
rotation: [ 0, 0, 0 ]
# 碰撞体积 [x, y, z]
collision: [ 1, 1, 1 ]多模型写法
yml
木箱模型:
display: "木箱模型"
model: "props/wood_box.geo.json"
animation: "props/wood_box.animation.json"
texture: "props/wood_box.png"
item-texture: "props/wood_box_item.png"
default-animation: "idle"
scale: 1.0
position: [ 0, 0, 0 ]
rotation: [ 0, 0, 0 ]
collision: [ 1, 1, 1 ]
铁箱模型:
display: "铁箱模型"
model: "props/iron_box.geo.json"
animation: "props/iron_box.animation.json"
texture: "props/iron_box.png"
item-texture: "props/iron_box_item.png"
default-animation: "idle"
scale: 1.0
position: [ 0, 0, 0 ]
rotation: [ 0, 0, 0 ]
collision: [ 1, 1, 1 ]
猹件开发组