配置文件
配置位于 plugins/CloudFashion/。重载使用 /cf reload,已有文件不会被覆盖。
数据库
SQLite:
file: "CloudFashion.db"
MYSQL:
# 是否开启 不开启默认使用SQLite
enable: false
# 数据库IP
host: localhost
# 数据库端口
port: 3306
# 数据库用户名
user: root
# 数据库密码
password: your_password
# 数据库名称
database: cloudfashion
时装配置
时装写在 fashion/ 目录,支持多个 .yml / .yaml 和子文件夹。时装 ID 必须全局唯一。
时装类型
信息
装备: Balloon(气球) Backpack(背部) Helmet(头盔) Chestplate(胸甲) Leggings(护腿) Boots(靴子)
武器: Sword(剑) Trident(三叉戟) Bow(弓) Crossbow(弩) Shield(盾牌) Offhand(副手) Mace(重锤)
工具: Pickaxe(镐) Axe(斧) Shovel(锹) Hoe(锄)
特殊: FishingRod(钓鱼竿) Shears(剪刀)
普通时装配置
"demo_helmet":
# 时装类型
type: "Helmet"
# 皮革类可染色
dyeable: true
# 可选权限。玩家拥有此权限时无需购买或发放即可使用
# 留空或删除表示仅通过拥有记录解锁
permission: "cloudfashion.fashion.demo_helmet"
item:
# CE:namespace:id 引用 CraftEngine 物品
# IA:namespaceID 引用 ItemsAdder 物品
# 直接写材质名则使用原版材质
material: "LEATHER_HELMET"
# name lore 用于 GUI 展示
name: "&e示例头盔"
lore:
- "&7可在染色工作台调色"
# 物品自定义模型数据 默认为 -1 不会生效
customModelData: -1
shop:
enabled: true
# coins 使用 Vault 金币 points 使用 PlayerPoints 点券
currency: coins
price:
coins: 20
points: 5
背部时装配置
"demo_backpack":
type: "Backpack"
item:
material: "CHEST"
name: "&6示例背包"
backpack:
hide-from-self: false
气球时装配置
"demo_balloon":
type: "Balloon"
item:
material: "HEART_OF_THE_SEA"
name: "&b示例气球"
# ModelEngine 模型 ID,需与已加载的 blueprint 名一致
# 未安装 ModelEngine 或模型不存在时回退为 item
model:
id: "owl_pet"
balloon:
show-lead: true
offset:
x: 0.5
y: 3.0
z: 0.5
信息
物品来源:
CE:命名空间:id CraftEngine
IA:命名空间ID ItemsAdder
直接写 LEATHER_HELMET 等为原版材质
功能设置
settings.yml
debug:
enabled: false
verbose: false
fashion:
# 试穿时长 (秒)
previewTime: 10
# 预览冷却 (秒)
previewCooldown: 60
# 是否把真实装备的名称、Lore、附魔等复制到时装外观
inheritItemMeta: true
shop:
# 商城中隐藏已购买或权限解锁的时装
hideAvailable: true
slots:
# 槽位 GUI 显示当前穿戴时装外观,未穿戴仍用默认图标
show-equipped: true
backpack:
# 是否对玩家自己完全隐藏背部时装
hide-from-self: false
# 游泳/鞘翅/睡觉/激流时收起背部时装
hide-on-pose: true
# 低头超过该角度时对玩家自身隐藏背包
look-down-pitch: 25
balloon:
# 是否显示拴绳
show-lead: true
# 气球挂载位置偏移
offset:
x: 0.5
y: 3.0
z: 0.5
scale: 0.55
attachments:
# 是否在旁观模式下隐藏时装
hide-in-spectator: true
# 是否在隐身状态下隐藏时装
hide-when-invisible: true
disabled-worlds: []
dye:
# 右键这些方块打开染色工作台 潜行不拦截
workbench-blocks:
- LOOM
preview:
bossbar:
enabled: true
title: "&e正在预览 &f{fashion} &7| 剩余 &e{remaining}秒"
color: YELLOW
style: SOLID
GUI
菜单在 gui/ 目录: shop.yml wardrobe.yml slots.yml dye.yml admin.yml