【Px装备槽位】PxEquipSlot
PxEquipSlot简介
PxEquipSlot 是萌芽引擎的付费附属插件,它为玩家提供了兼容PxRpg的可限制装备类型、玩家等级、玩家职业、鉴定情况的装备槽位,装备绑定界面,装备套装HUD.
使用须知
前置: GermPlugin, PxRpg
| 指令 | 作用 | 备注 |
|---|---|---|
| /pes | 查看指令帮助 | 仅OP |
| /pes reload | 重载插件 | 仅OP |
配置文件
config.yml
#####################
# 插件配置 #
#####################
CDK: "1234567890"
#####################
# 消息配置 #
#####################
need-level: "对不起,当前装备需要 等级达到{need-level}级 才可装备, 玩家当前等级{player-level}"
need-class: "对不起,当前装备需要 职业类型:{need-class} 才可装备,玩家当前职业{player-class}"
need-type: "对不起,当前装备槽需要 物品类型:{need-type} 才可装备,不可以装备类型为{equip-type}"
need-appraisal: "对不起,当前装备槽需要 物品鉴定后 才可装入"
only-equipInter: "对不起,当前槽位不可以放入除装备外的其他物品哦"
hand-need-level: "对不起,该装备需要 等级达到{need-level}级 才可手持, 玩家当前等级{player-level}"
hand-need-class: "对不起,该装备需要 职业类型:{need-class} 才可手持,玩家当前职业{player-class}"
hand-need-appraisal: "对不起,该装备需要 鉴定后 才可手持"
绑定示例配置
bind/BindConfig.yml
# 允许手持的装备绑定类型
hand-can-hold-bind:
- "已绑定"
# 允许手持的装备打开绑定界面的绑定类型
hand-can-change-bind:
- "未绑定"
# 绑定界面绑定后的绑定类型
hand-change-bind-to: "已绑定"
bind/BindGui.yml
绑定界面:
options:
escCancel: false
背景:
type: texture
enable: true
path: local`<->`textures/pes/confirm.png
locationX: 0.391*w
locationY: 0.376*h
locationZ: '300 '
width: (0.608*w)-(0.391*w)
height: (0.706*h)-(0.376*h)
绑定提示:
type: label
align: center
scale: w*0.0015
texts:
- '&a是否确定绑定该武器'
- '&c武器绑定后将无法进行交易'
locationX: 0.5*w
locationY: 0.521*h
locationZ: '301'
绑定装备槽位:
type: slot
size: "w*0.027"
invalid: false
interact: true
identity: "pxequipslot_weapon_bind"
fillPath: 'local`<->`textures/misc/air.png'
emptyPath: 'local`<->`textures/misc/air.png'
hoverSound: ''
clickSound: ''
locationX: "w*0.487"
locationY: "h*0.435"
locationZ: "301"
确认绑定按钮:
type: button
defaultPath: local`<->`textures/pes/an1.png
hoverPath: local`<->`textures/pes/an1_.png
clickSound: minecraft:ui.button.click
locationX: 0.51*w
locationY: 0.598*h
locationZ: '301'
width: w*0.05
height: w*0.02
texts:
- 确认
textScale: w*0.0015
hoverTexts:
- '&a确认'
clickDos:
- openChild`<->`null
取消绑定按钮:
type: button
defaultPath: local`<->`textures/pes/an1.png
hoverPath: local`<->`textures/pes/an1_.png
clickSound: minecraft:ui.button.click
locationX: 0.441*w
locationY: 0.598*h
locationZ: '301'
width: w*0.05
height: w*0.02
texts:
- 取消
textScale: w*0.0015
clickDos:
- openChild`<->`null
hoverTexts:
- '&c取消'
槽位示例配置
slot/EquipSlot.yml
# 在这里写入拓展槽位ID
# 写入后才会使得对应槽位成为装备槽位
germplugin_default_1:
#是否仅允许放入PxRpg的装备 默认false
only-equipInter: true
#限制 放入的装备类型
#can-equip-type: [] 即为留空
can-equip-type:
- "手套"
- "盾牌"
germplugin_default_2:
#是否仅允许放入PxRpg的装备 默认false
only-equipInter: false
#限制放入的装备类型
#can-equip-type: [] 即为留空
can-equip-type:
- "时装"
- "护甲"
slot/EquipSlotConfig.yml
# 是否开启手持属 性
hand-item-attribute: true
# 手持后将会被读取属性的装备类型
hand-can-load-type:
- "时装"
- "护甲"
套装示例配置
suit/SuitConfig.yml
# 是否启用套装信息HUD
suit-hud-enable: false
# 是否HUD下展示套装名
suit-texts-enable: true
# 自定义HUD上套装图片,不写就会加载模板内的
suit-texture-path:
# 套装ID
suitIdxxxx: "url`<->`https://minecraft-1253715981.cos.ap-nanjing.myqcloud.com/item/suit2.png"
suit/SuitHud.yml
套装信息Hud:
options:
escCancel: false
套装信息画布:
type: canvas
enable: true
locationX: "0"
locationY: "0"
width: "0.046*w"
height: "h"
layout:
type: FLOW
gapX: "5"
gapY: "25"
relativeParts:
套装Info模板:
type: button
defaultPath: url`<->`https://minecraft-1253715981.cos.ap-nanjing.myqcloud.com/item/suit2.png
hoverPath: url`<->`https://minecraft-1253715981.cos.ap-nanjing.myqcloud.com/item/suit2.png
clickSound: minecraft:ui.button.click
locationX: "0.021*w"
locationY: "0.245*h"
locationZ: '301'
width: "(0.065*w)-(0.021*w)"
height: "(0.331*h)-(0.245*h)"
tooltip:
- 'XXX套装'
- 'xxx加成'
- '茶茶真好看'
textScale: "w*0.0014"
texts:
- '&c套装加成'
hoverTexts:
- "&e套装加成"
textOffsetX: "1"
textOffsetY: "21"
textOffsetZ: "1"