@@ -7,10 +7,11 @@ description: ChestShop 的入口、GUI、告示牌与库存相关配置说明。
77
88` ChestShop ` 是箱子商店模块。它和前面的菜单型商店不同,既有 GUI,也有箱子、告示牌、库存和数量档位这些线下交互逻辑。
99
10+ 当前版本中,` ChestShop ` 不使用 ` shops/*.yml ` 作为入口层,货币也只支持模块级配置。
11+
1012## 默认文件
1113
1214- ` ChestShop/settings.yml `
13- - ` ChestShop/shops/default.yml `
1415- ` ChestShop/signs.yml `
1516- ` ChestShop/ui/create.yml `
1617- ` ChestShop/ui/edit.yml `
4041 Direct-Trade-On : []
4142Stock :
4243 Double-Chest-Mode : expand_only
44+ Currency :
45+ Key : vault
4346` ` `
4447
4548字段解释:
@@ -54,102 +57,7 @@ Stock:
5457| `Entry.Open-GUI-On` | 哪些交互动作会直接打开 GUI。 |
5558| `Entry.Direct-Trade-On` | 哪些交互动作会走直接交易。默认是空列表。 |
5659| `Stock.Double-Chest-Mode` | 双箱库存处理方式,示例是 `expand_only`。 |
57-
58- # # `ChestShop/shops/default.yml`
59-
60- ` ` ` yaml
61- Bindings:
62- Commands:
63- Bindings:
64- - 'chestshop'
65- - 'cshop'
66- Register: true
67- Show-In-Help: true
68- Priority: 100
69-
70- Title:
71- - '&8ChestShop &7{shop-id}'
72-
73- layout:
74- - '#########'
75- - '#11i22S##'
76- - '#33###B##'
77- - '##I#H#M##'
78- - '#########'
79- - '####R####'
80-
81- icons:
82- '#':
83- material: 'STAINED_GLASS_PANE'
84- name: ' '
85- '1':
86- material: 'WOOD_BUTTON'
87- name: '&f1x'
88- lore:
89- - '&7Preview one trade bundle'
90- '2':
91- material: 'STONE_BUTTON'
92- name: '&f8x'
93- lore:
94- - '&7Preview eight trade bundles'
95- '3':
96- material: 'STONE_BUTTON'
97- name: '&f64x'
98- lore:
99- - '&7Preview sixty-four trade bundles'
100- 'i':
101- material: 'AIR'
102- mode: 'preview'
103- 'S':
104- material: 'HOPPER'
105- name: '&aSell To Shop'
106- lore:
107- - '&7Mode: &f{mode}'
108- - '&7Amount: &f{total-amount}'
109- - '&7Value: &e{total-buy-price}'
110- 'B':
111- material: 'EMERALD'
112- name: '&6Buy From Shop'
113- lore:
114- - '&7Mode: &f{mode}'
115- - '&7Amount: &f{total-amount}'
116- - '&7Cost: &e{total-sell-price}'
117- 'I':
118- material: 'CHEST'
119- name: '&fStock'
120- lore:
121- - '&7Current stock: &f{stock}'
122- 'H':
123- material: 'PAPER'
124- name: '&fHistory'
125- lore:
126- - '&7View recent trades'
127- 'M':
128- material: 'BOOK'
129- name: '&eManage'
130- lore:
131- - '&7Owner only'
132- 'R':
133- material: 'BARRIER'
134- name: '&cClose'
135- actions:
136- left:
137- - 'close'
138- ` ` `
139-
140- # ## 顶层字段解释
141-
142- | 字段 | 说明 |
143- | --- | --- |
144- | `Title` | 箱子商店标题。 |
145- | `layout` | `1/2/3` 是数量档位,`i` 是预览区,`S/B` 是卖出和买入,`I/H/M` 是库存、历史、管理。 |
146- | `icons.i.mode : preview` | 由模块代码渲染交易预览。 |
147- | `icons.S` | 卖给商店。 |
148- | `icons.B` | 从商店购买。 |
149- | `icons.I` | 查看库存。 |
150- | `icons.H` | 打开交易历史。 |
151- | `icons.M` | 打开管理页。 |
152- | `icons.R` | 关闭。 |
60+ | `Currency.Key` | 箱子商店统一使用的货币 key。 |
15361
15462# # `ChestShop/signs.yml`
15563
@@ -183,6 +91,13 @@ Formats:
18391
18492# # 使用建议
18593
186- - 想改玩家打开箱店后的布局:改 `shops/default .yml`。
94+ - 想改玩家打开箱店后的布局:改 `ui/shop.yml`、`ui/edit.yml`、`ui/create .yml`。
18795- 想改告示牌显示样式:改 `signs.yml`。
18896- 想改变“右键箱子”“右键告示牌”的行为:改 `Entry.Open-GUI-On` 和 `Direct-Trade-On`。
97+
98+ # # 当前货币优先级
99+
100+ ` ChestShop` 当前不走商店级或商品级货币配置,直接使用:
101+
102+ 1. `ChestShop/settings.yml -> Currency.Key`
103+ 2. 默认回退 `vault`
0 commit comments