? Simple Coin Shops (Moto Coin)
适用于 Minecraft 1.21+(Fabric)的综合商店与经济模组
通过可交易的货币和玩家拥有的商店,将你的服务器转变为一个繁荣的经济体!该模组提供了一套完整的经济系统,包括实体货币、可升级的商店以及灵活的管理员工具。
✨ 主要功能
? 货币系统
- Moto Coins:作为实体物品的官方服务器货币
- 玩家间的安全交易
- 从虚拟余额中提取货币
- 最富有玩家排行榜
? 玩家商店
- 使用箱子或 barrel 创建自己的商店
- 每个商店最多支持 7 个交易选项(可升级)
- 物品存储:用于自动补货
- 货币银行:用于收取利润
- 独立的商店名称
- 容量升级系统
?️ 管理员商店
- 无限资源(无需存储)
- 非常适合服务器货币生成点和出生点商人
- 无需升级系统
? 升级系统
- 存储:扩展存储和银行容量(3 个等级:3/4/6 行)
- 选项:解锁更多交易选项(最多 7 个)
- 批量购买:每次点击鼠标中键可购买更多物品(3 个等级)
? 资源包
该 Mod 附带一个 Resource Pack,你可以使用它来将 Moto Coin 用作货币。
? 命令
所有玩家可用
货币管理
/bal
显示你当前的货币余额。
/baltop
显示服务器上最富有的前 10 名玩家。
/withdraw <amount>
将虚拟货币转换为实体物品(用于交易)。
/pay <player> <amount>
向其他玩家转移货币。
玩家商店管理
/coinshop player create <chest|barrel>
在你所在的位置创建一个新的玩家商店。
- chest:创建一个箱子商店
- barrel:创建一个 barrel 商店
- 默认限制:每名玩家 3 个商店(可配置)
/coinshop player storage <ID>
打开你商店的物品存储。在这里你可以存放会自动出售的物品。
/coinshop player bank <ID>
打开你商店的货币银行。这是从销售中获得的货币被收集的地方。
/coinshop list
显示你所有的商店,包括 ID、位置和类型。
管理员可用(OP 等级 2+)
管理员商店管理
/coinshop admin create <chest|barrel>
创建一个拥有无限资源的管理员商店。
/coinshop admin storage <ID>
打开管理员商店的存储(仅供参考——管理员商店不需要存储)。
/coinshop admin bank <ID>
打开管理员商店的银行(仅供参考——管理员商店不收取货币)。
货币管理
/setcoin
将你手中的物品定义为 Moto Coin 模板。此后服务器上的所有货币都将具有此外观(CustomModelData、名称、描述)。
商人转换
/cointrader
将现有的村民转换为货币商人。他们将接受 Moto Coins 而不是绿宝石。
商店概览
/coinshop list
作为管理员,你可以看到服务器上的所有商店(玩家只能看到自己的商店)。
? 商店使用
创建和设置商店
- 创建商店:使用
/coinshop player create chest 或 barrel
- 打开商店编辑器:用 空手 右键点击商店方块
- 配置选项:
- 顶行:你要出售的物品
- 底行:价格(Moto Coins 或其他物品)
- 直接将物品放入槽位中
- 填充存储:
/coinshop player storage <ID> —— 添加会自动出售的物品
- 收取货币:
/coinshop player bank <ID> —— 取回你赚取的货币
作为顾客购物
- 打开商店:Shift + 右键点击 商店方块
- 购买物品:点击某个选项
- 普通点击:购买 1x 该选项的数量
- Shift + 点击:批量购买(取决于商店的 Multi 等级)
- 物品和付款会自动从你的物品栏中扣除
商店升级
在商店编辑器中,你会找到“Shop Upgrades”按钮:
-
存储升级:
- 等级 1→2:16 枚货币 → 4 行存储/银行
- 等级 2→3:32 枚货币 → 6 行存储/银行
-
选项升级:
- 解锁额外的交易槽位
- 费用:16/32/64/96/128/160 枚货币(每个槽位)
- 最大数量:7 个选项
-
批量购买升级:
- 等级 1→2:8 枚货币 → 每次点击鼠标中键可购买更多物品
- 等级 2→3:16 枚货币 → 每次点击鼠标中键可购买更多物品
⚙️ 配置
该模组会自动创建一个配置文件:
config/moto-coin/config.json
可配置的值
{
"maxPlayerShopsPerPlayer": 3,
"storageUpgradeCost": [16, 32],
"offerUpgradeCost": [16, 32, 64, 96, 128, 160],
"multiUpgradeCost": [8, 16]
}
- maxPlayerShopsPerPlayer:每名玩家的最大商店数量
- storageUpgradeCost:存储升级的费用(等级 1→2,2→3)
- offerUpgradeCost:每个额外选项槽位的费用
- multiUpgradeCost:批量购买升级的费用(等级 1→2,2→3)
重要提示:修改后请重启服务器!
? 数据存储
所有数据会自动保存到:
config/moto-coin/data.json
存储的数据包括:
- 玩家余额
- 商店位置和配置
- 物品存储和货币银行
- 升级状态
数据会在服务器启动时自动加载,并在服务器关闭时保存。
? 技术细节
要求
- Minecraft:1.21.1(已测试并正常运行)
- 加载器:Fabric
- Fabric API:必需
- Fabric Language Kotlin:必需
- Java:21+
商店限制
- 每个商店的最大选项数:7
- 最大存储等级:3(27/36/54 个槽位)
- 最大批量购买等级:3
权限
- 标准命令:所有玩家
- 管理员命令:OP 等级 2 或更高
- 商店所有者可以管理自己的商店
? 用例
对于服务器管理员
- 在出生点创建中央管理员商店
- 使用
/setcoin 定义自定义货币设计
- 设置商店限制以实现平衡的游戏体验
- 将村民转换为货币商人
对于玩家
- 建立商店帝国(最多达到配置的限制)
- 通过交易赚取货币
- 升级商店以获取更多选项
- 通过
/pay 与其他玩家交易
适用于角色扮演服务器
- 完善的经济系统
- 用于沉浸式体验的物理货币
- 主题商店的独立店名
- 作为 NPC 交易员的管理员商店
? 提示与技巧
- 商店位置:将商店设置在显眼的位置以吸引更多顾客
- 库存管理:定期补充库存以保持持续供应
- 硬币定价:使用
/baltop 和 /coinshop list 研究市场价格
- 升级:优先进行存储升级以增加容量
- 批量购买:为有大量订单的常客升级批量购买功能
- 商店名称:使用富有创意的名称以便更好识别
- 管理员商店:利用管理员商店提供重要的服务器资源
? 支持与反馈
如有问题、漏洞报告或功能建议:
- 在 Discord 上联系我:motofo20
- 在评论区分享你的体验
? 许可证
本模组根据 CC0-1.0 许可证 发布。
祝你交易愉快!?
? Simple Coin Shops (Moto Coin)
A comprehensive shop and economy mod for Minecraft 1.21+ (Fabric)
Transform your server into a thriving economy with tradeable coins and player-owned shops! This mod provides a complete economic system with physical coins, upgradeable shops, and flexible admin tools.
✨ Key Features
? Coin System
- Moto Coins: Official server currency as a physical item
- Secure transactions between players
- Withdraw coins from virtual balance
- Leaderboard of the richest players
? Player Shops
- Create your own shops with Chest or Barrel
- Up to 7 trade offers per shop (upgradeable)
- Item storage for automatic restocking
- Coin bank for profit collection
- Individual shop names
- Upgrade system for more capacity
?️ Admin Shops
- Unlimited resources (no storage needed)
- Perfect for server currency and spawn traders
- No upgrade system required
? Upgrade System
- Storage: Expand storage and bank (3 levels: 3/4/6 rows)
- Offers: Unlock more trade offers (up to 7)
- Multi-Buy: More items per shift-click (3 levels)
? Resource Pack
The Mod has a Resource Pack installt so u can use the Moto Coin as a currency
? Commands
For All Players
Coin Management
/bal
Shows your current coin balance.
/baltop
Displays the top 10 richest players on the server.
/withdraw <amount>
Converts virtual coins into physical items (for trading).
/pay <player> <amount>
Transfer coins to another player.
Player Shop Management
/coinshop player create <chest|barrel>
Creates a new player shop at your position.
- chest: Creates a chest shop
- barrel: Creates a barrel shop
- Default limit: 3 shops per player (configurable)
/coinshop player storage <ID>
Opens your shop's item storage. Here you can store items that will be sold automatically.
/coinshop player bank <ID>
Opens your shop's coin bank. This is where earned coins from sales are collected.
/coinshop list
Shows all your own shops with ID, position, and type.
For Admins (OP Level 2+)
Admin Shop Management
/coinshop admin create <chest|barrel>
Creates an admin shop with unlimited resources.
/coinshop admin storage <ID>
Opens an admin shop's storage (for information - admin shops don't need storage).
/coinshop admin bank <ID>
Opens an admin shop's bank (for information - admin shops don't collect coins).
Coin Management
/setcoin
Defines the item in your hand as the Moto Coin template. All coins on the server will then have this appearance (CustomModelData, name, lore).
Trader Conversion
/cointrader
Converts an existing villager into a coin trader. They will then accept Moto Coins instead of emeralds.
Shop Overview
/coinshop list
As an admin, you see ALL shops on the server (players only see their own).
? Shop Usage
Creating and Setting Up a Shop
- Create shop: Use
/coinshop player create chest or barrel
- Open shop editor: Right-click on the shop block with an empty hand
- Configure offers:
- Top row: Items you're selling
- Bottom row: Price (Moto Coins or other items)
- Place items directly into the slots
- Fill storage:
/coinshop player storage <ID> - Add items that will be sold automatically
- Collect coins:
/coinshop player bank <ID> - Retrieve your earned coins
Shopping as a Customer
- Open shop: Shift + Right-click on the shop block
- Buy items: Click on an offer
- Normal click: Buy 1x the offer
- Shift + click: Buy multiple (depends on shop's Multi level)
- Items and payment are automatically taken from your inventory
Shop Upgrades
In the shop editor, you'll find the "Shop Upgrades" button:
-
Storage Upgrade:
- Level 1→2: 16 coins → 4 rows of storage/bank
- Level 2→3: 32 coins → 6 rows of storage/bank
-
Offer Upgrade:
- Unlocks additional trade slots
- Costs: 16/32/64/96/128/160 coins (per slot)
- Maximum: 7 offers
-
Multi-Buy Upgrade:
- Level 1→2: 8 coins → more items per shift-click
- Level 2→3: 16 coins → even more items per shift-click
⚙️ Configuration
The mod automatically creates a configuration file:
config/moto-coin/config.json
Configurable Values
{
"maxPlayerShopsPerPlayer": 3,
"storageUpgradeCost": [16, 32],
"offerUpgradeCost": [16, 32, 64, 96, 128, 160],
"multiUpgradeCost": [8, 16]
}
- maxPlayerShopsPerPlayer: Maximum number of shops per player
- storageUpgradeCost: Costs for storage upgrades (Level 1→2, 2→3)
- offerUpgradeCost: Costs for each additional offer slot
- multiUpgradeCost: Costs for multi-buy upgrades (Level 1→2, 2→3)
Important: Restart the server after making changes!
? Data Storage
All data is automatically saved to:
config/moto-coin/data.json
Stored data includes:
- Player balances
- Shop positions and configurations
- Item storage and coin banks
- Upgrade status
Data is automatically loaded on server start and saved on server stop.
? Technical Details
Requirements
- Minecraft: 1.21.1 (tested and working)
- Loader: Fabric
- Fabric API: Required
- Fabric Language Kotlin: Required
- Java: 21+
Shop Limits
- Maximum offers per shop: 7
- Maximum storage levels: 3 (27/36/54 slots)
- Maximum multi-buy levels: 3
Permissions
- Standard commands: All players
- Admin commands: OP level 2 or higher
- Shop owners can manage their own shops
? Use Cases
For Server Admins
- Create central admin shops at spawn
- Define a custom coin design with
/setcoin
- Set shop limits for balanced gameplay
- Convert villagers to coin traders
For Players
- Build a shop empire (up to the configured limit)
- Earn coins through trading
- Upgrade your shops for more offers
- Trade with other players via
/pay
For Roleplay Servers
- Complete economic system
- Physical currency for immersive gameplay
- Individual shop names for themed stores
- Admin shops as NPC traders
? Tips & Tricks
- Shop Placement: Place shops in highly visible locations for more customers
- Storage Management: Regularly refill storage for continuous availability
- Coin Pricing: Research market prices with
/baltop and /coinshop list
- Upgrades: Prioritize storage upgrades for more storage capacity
- Multi-Buy: Upgrade multi-buy for regular customers with large orders
- Shop Names: Use creative names for better identification
- Admin Shops: Use admin shops for important server resources
? Support & Feedback
For questions, bugs, or feature requests:
- Contact me on Discord: motofo20
- Share your experiences in the comments
? License
This mod is released under the CC0-1.0 License.
Happy trading! ?
评论 0
登录后参与评分
还没有评论,来抢沙发吧