Skip to content

配置说明

LyRide 的全局配置在 config.yml,坐骑配置放在 ride/ 目录。

配置文件

文件 / 目录用途
config.yml属性插件、坐骑槽位、按键、冷却和世界限制
ride/*.yml坐骑配置

属性插件

yaml
attribute-plugin: ""

支持 AttributePlus2AttributePlus3SX-Attribute2SX-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}