【玩家摆摊】GermBooths
GermBooths简介
GermBooths 是萌芽引擎的免费附属插件,它支持让玩家创建支持收购或出售的摊位。
使用须知
前置: GermPlugin
软前置: Residence,Vault,PlayerPoints,WorldGuard,TrHologram
| 指令 | 作用 |
|---|---|
| /gbooths | 查看指令帮助 |
| 权限 | 作用 |
|---|---|
| booths.destory | 使得玩家可以摧毁摊位,默认OP |
配置文件
config.yml
configuration:
#调试模式
debug: false
# 变量
placeholder:
# Vault插件的货币变量名称
vault: "金币"
# PlayerPoints插件的货币变量名称
point: "点券"
# 摊位的收购模式的库存名称
modeStockBuy: "空间"
# 摊位的出售模式的库存名称
modeStockSell: "库存"
# 摊位的收购模式名称
modeCommodityBuy: "收购"
# 摊位的出售模式名称
modeCommoditySell: "出售"
# 文字长度配置
length:
# 其他
other: 1
# 中文
chinese: 1.8
sound:
# 打开库存界面的声音
open: "minecraft:block.chest.open"
# 关闭库存界面的声音
close: "minecraft:block.chest.close"
# 物品过滤器
filters:
# 匹配名称列表
names: []
# 匹配lore,含有以下某含lore都不玩上架
lores:
- "已绑定"
- "无法交易"
limits:
# 允许摆摊世界列表
# 如果为空,即不限制
Worlds: []
# 允许摆放摊位的WorldGuard区域白名单
# 如果为空,即不限制
WorldGuard: []
# 领地插件的权限节点,当玩家在某个领地必须拥有以下的权限,才能放置摊位
# 如果为空,即不限制
Residence:
- "container:false"
booths/example.yml
test1:
# 摊位的名称
name: "&c基础摊位"
# 摊位的税率,0.01~0.99 之间
tax: 0.02
# 方块模型,与萌芽引擎的方块模型配置基本一致
block:
# 物品的名称
name: "%booth_name%"
# 物品的lore
lore:
- ''
- ' &7&l[ &f&l类型 &7&l] [ &f&l消耗品 &7&l]'
- ''
- ' &8物品说明: '
- ' &b&l>> &7收取&e%booth_tax%%&7的税'
- ' &b&l>> &a手持物品,右键方块上方放置摊位'
- ''
- ' &c无法交易'
# 修改碰撞箱的长度(originX+lengthX)
lengthX: 1
lengthY: 1
lengthZ: 1
# 渲染的缩放
scaleX: 1
scaleY: 1
scaleZ: 1
# 渲染的模型设置
renderItem:
# 目前支持 bedrockEdition,javaEdition,armourersWorkshop
# 剩下的参数 与type对应item的设置相同 但无需填写 matchCondition
# 这里着重介绍 bedrockEdition
type: bedrockEdition
modelPath: 'chainsaw.geo.json'
#会自动播放idle动画 其他动画的触发方式有待添加 可以自行调用GermPackAPI播放
animationPath: "chainsaw.animation.json"
# 模型的色调 ARGB 格式 可以不修改贴图的前提下修改模型颜色
textureTone: 0xFFFFFFFF
texturePath: 'chainsaw.png'
textureGlowPath: "chainsaw.glow.png"
# DisplayTag(展示标签)配置
displayTags:
test:
# DisplayTag(展示标签)类型
# 0=萌芽的特效GUI类型
# 1=萌芽的特效ITEM类型
# 2=TrHologram全息物品
type: 1
# X坐标(如果是正数则向左移动,反之如果是负数则向右移动)
# 变量:
# x = 模型的scaleX
# y = 模型的scaleY
# z = 模型的scaleZ
x: "-0.5*x"
# Y坐标(如果是正数则向上移动,反之如果是负数则向下移动)
# 变量:
# x = 模型的scaleX
# y = 模型的scaleY
# z = 模型的scaleZ
y: "1"
# Z坐标(如果是正数则向后移动,反之如果是负数则向前移动)
# 变量:
# x = 模型的scaleX
# y = 模型的scaleY
# z = 模型的scaleZ
z: "0"
test1:
# DisplayTag(展示标签)类型
type: 0
# GUI界面的缩放比例
scale: 1.2
# Y坐标(如果是正数则向上移动,反之如果是负数则向下移动)
# 变量:
# x = 模型的scaleX
# y = 模型的scaleY
# z = 模型的scaleZ
y: "0.8*y"
# 俯视角
p: 30
# GUI配置
gui:
背景1:
type: 0
path: "local`<->`chestshop/sk.png"
locationX: "0-%a*.55"
locationY: "0"
width: "h*0.17+%a*1.2"
height: "h*0.08"
内容:
type: 4
#文字的对齐方式 左对齐 left 右对齐 right 居中 center 可删除 默认为left
align: "center"
#缩放 注意引号 可用 w h 计算 1为原大小
scale: 'h*0.0025'
texts:
- "%commodity_item%"
- "&d%commodity_mode%&e&l中"
- " - &e&l金币: %currency_vault%"
- " - &b&l点券: %currency_points%"
- "&a%commodity_stock% &e&l%commodity_amount% &a个"
locationX: "(w-h*0.0025)/2-h*0.865"
locationY: "h*0.005"
locationZ: "0"
test:
# 摊位的名称
name: "&c萌芽摊位继承"
# 摊位的税率,0.01~0.99之间
tax: 0.03
extends: test1