配置说明
LyRide 的全局配置在 config.yml,坐骑配置放在 ride/ 目录。
配置文件
| 文件 / 目录 | 用途 |
|---|---|
config.yml | 属性插件、坐骑槽位、按键、冷却和世界限制 |
ride/*.yml | 坐骑配置 |
属性插件
yaml
attribute-plugin: ""支持 AttributePlus2、AttributePlus3、SX-Attribute2、SX-Attribute3。修改为 SX 相关属性插件时建议重启服务器。
移速属性加成
yaml
move-speed-attribute: ""
move-speed-attribute-max: 100
move-speed-formula: "{speed_base}*(1+({speed_attribute}*0.01))"| 配置 | 说明 |
|---|---|
move-speed-attribute | 用于读取移速加成的变量 |
move-speed-attribute-max | 变量数值上限 |
move-speed-formula | 最终移速公式 |
公式中 {speed_base} 是坐骑基础速度,{speed_attribute} 是变量读取到的数值。
召唤按键和槽位
yaml
spawn-ride-key: "KEY_T"
ride-slot: ""| 格式 | 说明 |
|---|---|
DragonCore#槽位名 | 读取龙核槽位 |
GermPlugin#槽位名 | 读取萌芽槽位 |
APInventory#分页id#槽位id | 读取梦星桐背包槽位 |
LyInventory#背包id#类型 | 读取离渊背包槽位 |
Origin#MainHand | 原版主手 |
Origin#OffHand | 原版副手 |
Origin#Helmet | 原版头盔 |
Origin#ChestPlate | 原版胸甲 |
Origin#Legging | 原版护腿 |
Origin#Boots | 原版靴子 |
Minecraft#槽位id | 原版背包槽位 |
spawn-ride-key 中萌芽按键一般写 KEY_T,龙核按键一般写 T。
世界限制和冷却
yaml
anti-ride-world:
- "antirideworld"
world-fly-limit:
world: 150
riding-cooldown: 5000| 配置 | 说明 |
|---|---|
anti-ride-world | 包含文本的世界禁止骑乘 |
world-fly-limit | 指定世界飞行高度限制 |
riding-cooldown | 上下坐骑冷却,单位毫秒 |
消息
message 下配置受伤下马、禁止骑乘、开始骑乘、结束骑乘和冷却提示。
start-riding 支持 {ride},riding-cooldown 支持 {time}。