Snurbo 的商店
一款基于 Fabric 1.21.1、受 Donut SMP 启发的玩家驱动型商店模组。
玩家可以开设商店、上架商品并互相购买——全部通过游戏内真实的箱子 GUI 完成,无需任何实体方块。
功能特性
- 真实的箱子 GUI — 无自定义渲染,无模糊效果,就是原版 Minecraft 的箱子
- 玩家头像浏览器 —
/shops 命令打开一个显示所有玩家头像的箱子;点击即可浏览其商店
- 购买商品 — 左击任意商品列表即可购买
- 出售商品 — 打开你自己的商店,点击“+ Add Item”,放入物品,设定每笔交易的价格和数量,然后确认
- 库存为实物 — 库存量严格等于你存入的数量;无法凭空增加
- 通过双箱补货 — 打开商品列表的编辑界面,点击“Add Stock”以打开一个仅接受匹配物品的双箱,随时可存入更多
- 每笔交易数量控制 — 使用 +1/+10/−1/−10 按钮控制买家每次购买获得的物品数量
- 编辑商品列表 — 左击你自己的商品列表以调整价格和每笔交易数量
- 移除商品列表 — 右击你自己的商品列表以移除它,并将剩余库存返还给你
- 缺货显示 — 已售罄的商品列表会清晰显示且不可购买
- 通过重新添加来补货 — 通过“+ Add Item”添加相同价格下的相同物品,它将合并到现有列表中
- 返回按钮 — 左下角的箭头物品始终带你回到商店浏览器
- 货币模式 — 可选的虚拟货币系统(仅限 OP 启用)
- 钻石模式 — 默认支付方式;买家支付实物钻石
- 切换货币时自动暂停 — 当 OP 更改货币模式时,所有商店的所有商品列表都会暂停,直到所有者审查并重新保存价格,防止因过时汇率导致意外低价售出
- 记分板 — 当开启货币模式时,会显示实时余额侧边栏
- 粒子与音效 — 购买时的特效反馈
命令
| 命令 |
权限 |
描述 |
/shops |
所有人 |
打开商店浏览器 |
/shops info |
所有人 |
在聊天窗口中显示此命令列表 |
/shops hideboard |
所有人(仅在货币模式开启时可见) |
切换你自己显示的货币记分板 |
/shops currency true |
OP (等级 2+) |
启用虚拟 $ 货币模式,暂停所有列表以供审查 |
/shops currency false |
OP (等级 2+) |
禁用货币模式,恢复为钻石支付,暂停所有列表以供审查 |
/shops reload |
OP (等级 2+) |
从磁盘重新加载商店和货币数据 |
使用方法
浏览商店
- 运行
/shops
- 打开一个显示玩家头像的箱子——每个玩家对应一个头像
- 点击任意头像以浏览该玩家的商店
- 左击物品进行购买
- 点击左下角的 ← Back 箭头返回浏览器
出售商品
- 运行
/shops 然后点击你自己的头像
- 点击 + Add Item(底部中央的青色玻璃板)
- 进入暂存 GUI:
- 将物品放入 顶行
- 使用 Price 按钮(−10/−1/+1/+10)设定你的要价
- 使用 Quantity 按钮设定买家每次购买获得的物品数量
- 点击 绿宝石块 确认
- 你的商品列表现在出现在你的商店中
编辑商品列表
- 通过
/shops 打开你的商店
- 左击 任意你自己的商品列表以打开编辑界面
- 使用 +/− 按钮调整价格或每笔交易数量
- 点击 ? Add Stock 打开一个真实的双箱并存入更多该特定物品
- 点击 Save Changes(绿宝石块)确认——这也会恢复已暂停的商品列表
移除商品列表
- 右击 任意你自己的商品列表以移除它
- 剩余库存会自动返还到你的物品栏
补货
两种方式:
- 快捷方式: 打开“+ Add Item”并在相同价格下放入更多相同物品——系统将自动合并
- 直接方式: 左击商品列表 → “? Add Stock” → 打开一个仅接受匹配物品类型的双箱——你想存多少就存多少
货币模式(仅限 OP)
启用:/shops currency true
禁用:/shops currency false
- 启用后,价格以 $(虚拟货币)而非钻石计价
- 每位新玩家初始拥有 $1000
- 获得金钱的唯一途径是 出售商品
- 侧边栏记分板显示所有人的余额
- 使用
/shops hideboard 隐藏你自己的记分板(仅在货币模式开启时可用)
⚠ 重要提示:切换货币模式会导致所有商店暂停
由于为钻石设定的价格在作为美元使用时不合理(反之亦然),当 OP 更改货币模式时,服务器上的所有商品列表都会自动暂停。全服消息会通知所有玩家。已暂停的商品列表显示 "⚠ PAUSED" 且不可购买。
商店所有者必须左击每个已暂停的商品列表,审查/调整新货币下的价格,然后点击 Save Changes 以恢复销售。此举可防止买家在货币切换后以不再合理的价格抢购商品。
数据存储
所有商店和货币数据保存在你的世界文件夹下的以下位置:
world/snurbos_shops/
shops.json — 所有玩家的商品列表
currency.json — 所有玩家的余额
settings.json — 货币模式开关设置
Snurbo's Shops
A player-driven shop mod for Fabric 1.21.1, inspired by Donut SMP.
Players can open shops, list items for sale, and buy from each other — all through real in-game chest GUIs with no physical blocks required.
Features
- Real chest GUIs — no custom rendering, no blur, just vanilla Minecraft chests
- Player head browser —
/shops opens a chest showing every player's head; click to browse their shop
- Buy items — left-click any listing to purchase it
- Sell items — open your own shop, click "+ Add Item", place items, set a price and quantity per sale, then confirm
- Stock is physical — stock equals exactly what you deposited; you can't inflate it
- Restock via double chest — open a listing's edit screen and click "Add Stock" to open a double chest that only accepts the matching item, deposit more anytime
- Quantity per sale — control how many items the buyer receives per purchase (+1/+10/−1/−10 buttons)
- Edit listings — left-click your own listing to adjust price and quantity per sale
- Remove listings — right-click your own listing to remove it and get your remaining stock back
- Out of stock display — sold-out listings show clearly and can't be purchased
- Restock via re-adding — add the same item at the same price via "+ Add Item" and it merges into the existing listing
- Back button — arrow item in the bottom-left always returns you to the shop browser
- Currency mode — optional virtual currency system (op-only to enable)
- Diamond mode — default payment method; buyers pay in physical diamonds
- Auto-pause on currency switch — when an op changes currency mode, every listing across every shop is paused until its owner reviews and re-saves the price, preventing accidental cheap sales at outdated rates
- Scoreboard — when currency mode is on, a live balance sidebar is shown
- Particles & sounds — purchase effects for buyers
Commands
| Command |
Permission |
Description |
/shops |
Everyone |
Opens the shop browser |
/shops info |
Everyone |
Shows this command list in-chat |
/shops hideboard |
Everyone (only shown while currency mode is ON) |
Toggles the currency scoreboard for yourself |
/shops currency true |
OP (level 2+) |
Enables virtual $ currency mode, pauses all listings for review |
/shops currency false |
OP (level 2+) |
Disables currency mode, reverts to diamonds, pauses all listings for review |
/shops reload |
OP (level 2+) |
Reloads shop and currency data from disk |
How to Use
Browsing shops
- Run
/shops
- A chest opens showing player heads — one per player
- Click any head to browse that player's shop
- Left-click an item to buy it
- Click the ← Back arrow (bottom-left) to return to the browser
Selling items
- Run
/shops then click your own head
- Click + Add Item (lime glass pane, bottom-center)
- A staging GUI opens:
- Place items in the top row
- Use Price buttons (−10/−1/+1/+10) to set your asking price
- Use Quantity buttons to set how many items the buyer receives per purchase
- Click the Emerald Block to confirm
- Your listing now appears in your shop
Editing a listing
- Open your shop via
/shops
- Left-click any of your listings to open the edit screen
- Adjust price or quantity per sale with the +/− buttons
- Click ? Add Stock to open a real double chest and deposit more of that exact item
- Click Save Changes (Emerald Block) to confirm — this also resumes a paused listing
Removing a listing
- Right-click any of your listings to remove it
- Remaining stock is returned to your inventory automatically
Restocking
Two ways:
- Quick way: open "+ Add Item" and place more of the same item at the same price — it merges automatically
- Direct way: left-click the listing → "? Add Stock" → a double chest opens that only accepts the matching item type — deposit as much as you want
Currency Mode (Op only)
Enable: /shops currency true
Disable: /shops currency false
- When enabled, prices are in $ (virtual money) instead of diamonds
- Every new player starts with $1000
- The only way to earn money is by selling items
- A sidebar scoreboard shows everyone's balance
- Use
/shops hideboard to hide it for yourself (only available while currency mode is on)
⚠ Important: switching currency modes pauses all shops
Because prices set for diamonds don't make sense as dollars (and vice versa), every listing on the server is automatically paused the moment an op changes currency mode. A server-wide message notifies all players. Paused listings show "⚠ PAUSED" and cannot be bought.
Shop owners must open each paused listing (left-click it), review/adjust the price for the new currency, and click Save Changes to resume selling it. This prevents buyers from snapping up items at prices that no longer make sense after a currency switch.
Data Storage
All shop and currency data is saved in your world folder under:
world/snurbos_shops/
shops.json — all player listings
currency.json — all player balances
settings.json — currency mode toggle
评论 0
登录后参与评分
还没有评论,来抢沙发吧