跳到主要内容

换石碑模型

config.yml 的 models 下可以有好几套模型方案。每个地标用哪一套,看它的 model(或 /sg model <地标> <方案>),没写就用 default。一步一步的做法见 换成自己的石碑模型。

默认方案​

models:
default:
dormant:
model: starstone_dead
animation: animation.starstone.dormant
awaken:
model: starstone_full
animations:
- animation.starstone.rise
- animation.starstone.awaken
then: animation.starstone.active
keep-distance: 48
max-seconds: 20
active:
model: starstone_alive
animation: animation.starstone.active
scale: 1.0
view-range: 1.0
hitbox:
width: 3.0
height: 5.0

default 被删掉时,插件会自动补回上面这一套。

dormant 与 active​

  • model:云模型的模型 ID,就是 .bbmodel 的文件名。
  • animation:一直循环播放的动画,可以不写。

dormant 给还没点亮的人看,active 给已点亮的人看。两个可以是同一个模型,只是动画不同。

awaken​

点亮那一刻只给点亮的人看的模型。

  • model:苏醒用的模型。
  • animations:依序播放的动画。每段播到最后一格停住,下一段在同一刻接上。只有一段时也可以写成 animation: 名称。
  • then:全部播完后,在同一个模型上循环的动画。
  • keep-distance:玩家走远几格后,换成大家共用的 active 模型,默认 48。
  • max-seconds:整段最长几秒,保险用,默认 20。动画比这个长会被截断。

awaken 整段不写时,点亮直接从沉睡换成激活,没有苏醒动画。

其他​

模型放在哪里​

  • plugins/CloudModel/blueprints/ 的任意子文件夹(附带的星月之石在 StarGuide/ 子文件夹)。
  • plugins/StarGuide/models/,插件会把这个文件夹登记给云模型。

放好后 /cm reload 重新产生资源包,再 /sg reload。

常见问题​

  • 动画名称写错或模型里没有这段动画时,后台会提示一次「模型没有苏醒动画」并列出模型里的动画,这一段会被跳过,不会卡住点亮流程。
  • then 的动画不存在时,苏醒播完直接换成共用的激活模型。
  • 苏醒动画的长度是从 .bbmodel 读的,所以模型文件要放在上面两个位置之一,插件才读得到。
  • 换了动画长度,记得一起调 unlock.title-delay,让标题对准新的爆发时间。
0:000:00