Skip to content
On this page

猹の战利品

配置文件

yml
############################
#        数据库设定         #
############################
apiKey: "请输入CDKey"
database:
  schema: "cha_plugin"
  # mysql数据库账号密码
  username: "root"
  password: "root"
  # mysql数据库地址端口
  host: "localhost"
  port: "3306"
############################
#         系统设定          #
############################
# 战利箱保护时间(s),时限内仅击杀者可以领取,-1为永久保护
protectLimit: 10
# 战利箱消失时间(s),超时会自动清理,-1为不会自动消失
removeLimit: 60
# ChaSkillLoader 开启读条(tick),设置为-1关闭
loot-loader: 20
# 配置生成战利箱的生物
loot:
  # 是否开启玩家战利箱
  player:
    enable: true
    model: "test_block"
    # 原版背包掉落组
    slots:
      # 格式【数字-数字:掉落个数】,当 掉落个数>=格子数 时永远是全部掉落
      # 最大范围 0-40
      # 请勿让两个组有重复 如:1-9 ... 7-10
      0-9: 5
      10-11: 1
    # 萌芽|龙核slot掉落的格子:概率
    pluginSlots:
      - "germplugin_inv_slot1:0.5"
      - "germplugin_inv_slot2:1"
  # 原版怪物类型,必须符合minecraft规范才能被识别
  minecraft:
    # 格式【怪物类型:模型ID】
    ZOMBIE: "test_block"
    COW: "box"
    SKELETON: "treasure_box"
  # MythicMob类型,需要MythicMob的配置文件内部ID
  mythicmob:
    QSD-SSG-01: "test_block"

语言文件

yml
title: "【战利箱】"
protect: "这个宝箱属于 {killer} ,保护时间剩余 {time} 秒"
# 当保护时间为 -1 时
protectInfinite: "这个宝箱属于 {killer}"
looting: "其他人正在查看宝箱"
empty: "宝箱是空的"