Skip to content
On this page

猹引擎

自定义实体模型

配置文件

txt
plugins/ChaEngine/entity/*.yml
plugins/ChaEngine/equip/*.yml

实体模型字段(entity 实际)

  • model
  • animation
  • texture
  • scale
  • position
  • collision
  • match

实体样例

yml
测试生物:
  model: "测试生物.geo.json"
  animation: "测试生物.animation.json"
  texture: "测试生物.png"
  scale: 1.0
  position: [ 0, 0, 0 ]
  collision: [ 1, 1, 1 ]
  match:
    - "name#start#测试,nbt#custom#测试生物"
    - "name#equal#测试生物"

装备模型字段(equip)

  • model
  • animation
  • texture
  • part
  • scale
  • position
  • rotation

装备样例

yml
测试装备:
  model: "测试装备.geo.json"
  animation: "测试装备.animation.json"
  texture: "测试装备.png"
  part: "body"
  scale: 1.0
  position: [ 0, 0, 0 ]
  rotation: [ 0, 0, 0 ]

资源映射

以上 model / animation / texture 路径统一映射到:

txt
resourcepacks/ChaEngine/model/