MMO Econ
一款经济与 GUI 商店模组, 专为中小型多人服务器及单人世界设计!
目前支持 Minecraft 1.21.1 NeoForge 和 Fabric。 该模组完全位于服务端运行,在多人游戏中无需在客户端安装即可正常工作。
功能
- 在服务端管理玩家持久化余额。
- 完全可自定义的管理员 GUI 商店。
- 玩家间转账支付。
- 出售手中物品 / 库存物品。
- 余额排行榜。
- 出售魔杖(Sell Wands)。
- 在线时长余额奖励。
- 玩家间拍卖行。
命令
/bal,/money- 显示玩家的余额。/pay <playername> <amount>- 从你的余额中向指定玩家付款。/bal top- 显示服务器中最富有玩家的列表。/shop- 打开 GUI 商店。/sell hand- 出售当前手持物品(如果它在 GUI 商店中被列为有效的可售商品)。/sell inv- 出售你背包中所有被列为有效可售商品的物品。/shop reload- 重新加载 MMOShop.json。/ah- 打开拍卖行 GUI。/ah sell (price) [quantity]- 在拍卖行上架一件物品。
自定义商店
管理员 GUI 商店由 /config/mmoecon/MMOShop.json 动态填充。
如果你不想从头编写商店 JSON 文件,模组首次运行时会自动生成一个示例文件以帮助你开始配置。
MMOShop.JSON 示例
商店将支持其所在服务器上支持的任何模组物品。
{
"categories": [
{
"name": "Building Blocks",
"representativeItem": "minecraft:grass_block",
"items": [
{ "id": "minecraft:stone", "buyPrice": 3.0, "sellPrice": 0.3 },
{ "id": "minecraft:grass_block", "buyPrice": 1.5, "sellPrice": 0.1 }
]
},
{
"name": "Modded Items",
"representativeItem": "create:cogwheel",
"items": [
{ "id": "create:cogwheel", "buyPrice": 10.0 }
]
}
{
"name": "Custom Server-side Items",
"representativeItem": "minecraft:emerald",
"items": [
{ "id": "mmoecon:sell_wand", "special":"sell_wand", "buyPrice": 35000.0 }
]
}
]
}
出售魔杖(Sell Wand)是目前唯一支持的“特殊”(special)物品类型。
样式化分类名称
分类名称支持 Minecraft 标准的 &(或 §)颜色和格式化代码,因此你可以随意为其着色和设置样式。例如,"name": "&6&lModded Items" 将渲染为加粗的金色文本“Modded Items”。如果你不提供任何代码,名称将以正常的白色文本显示。
MMO Econ
An Economy & GUI Shop mod, Designed for small to medium scale multiplayer servers & singleplayer worlds!
Currently supports Minecraft 1.21.1 NeoForge & Fabric. It is completely server-side and does NOT need to be installed on any clients in order to function in multiplayer.
Features
- Manages persistent player balances server-side.
- Completely customiseable admin GUI shop.
- Player to player payments.
- Sell hand / Inventory.
- A balance Leaderboard.
- Sell Wands.
- Playtime balance rewards.
- Player-to-player Auction House.
Commands
- /bal, /money - Displays the player's balance.
- /pay <playername> <amount> - Pays money to player from your balance.
- /bal top - Displays a list of the server's richest players.
- /shop - Opens the GUI shop.
- /sell hand - Sells the currently held item, if its listed a valid sellable in the GUI shop.
- /sell inv - Sells every item in your inventory that is listed as a valid sellable in the GUI shop.
- /shop reload - Reloads MMOShop.json.
- /ah - Open the Auction House GUI.
- /ah sell (price) [quantity] - List an item on the Auction House.
Customising the Shop
The admin GUI shop is dynamically populated by /config/mmoecon/MMOShop.json. If you don't want to write a shop JSON file from scratch, an example one will be generated the first time the mod runs to get you started.
Example MMOShop.JSON
The shop will support any modded items supported by the server its running on.
{
"categories": [
{
"name": "Building Blocks",
"representativeItem": "minecraft:grass_block",
"items": [
{ "id": "minecraft:stone", "buyPrice": 3.0, "sellPrice": 0.3 },
{ "id": "minecraft:grass_block", "buyPrice": 1.5, "sellPrice": 0.1 }
]
},
{
"name": "Modded Items",
"representativeItem": "create:cogwheel",
"items": [
{ "id": "create:cogwheel", "buyPrice": 10.0 }
]
}
{
"name": "Custom Server-side Items",
"representativeItem": "minecraft:emerald",
"items": [
{ "id": "mmoecon:sell_wand", "special":"sell_wand", "buyPrice": 35000.0 }
]
}
]
}
The Sell Wand is currently the only supported "special" item.
Styling Category Names
Category names support Minecraft's standard & (or §) color and formatting codes, so you can colour and style them however you like. For example, "name": "&6&lModded Items" renders as a bold gold "Modded Items". If you don't supply any codes, the name is shown as normal white text.
下载 MMO Econ
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MMO Econ
下载 MMO Econ
下载 MMO Econ
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MMO Econ
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MMO Econ
下载 MMO Econ
下载 MMO Econ
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MMO Econ
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MMO Econ
新功能: 特别感谢 @Th4nat0s1s 为 MMO Econ 开发了这些功能!
- 添加了基于 OP 权限的管理员命令,用于管理玩家余额,并新增了一个仅限 OP 使用的图形界面(GUI),以便更轻松地使用新的管理员命令。
错误修复:
- 修复了在出售物品时从玩家背包中移除错误物品的 bug。
- 修复了多个 GUI 菜单中导致重复点击事件的 bug。
- 为所有 GUI 商店、出售法杖以及 /sell 命令的销售添加了收据功能,该功能会为每位玩家显示上次销售中所有售出物品的预览。每张收据中的物品均可单独退款。
- 修复了 GUI 商店和 /sell 命令将附魔、自定义名称或耐久度低于 100% 的物品误判为可出售有效物品的问题。
- 修复了在售卖法杖于 GUI 商店中被错误地以烈焰棒价格出售的问题。
- 修复了在 MMOShop.json 的商店物品配置中省略 buyPrice 或 sellPrice 时导致错误的问题(价格应为可选参数,物品可以仅支持出售或购买)。
- 移除了默认生成的 MMOShop.json 中武器、工具和护甲的所有出售价格,以防止玩家意外出售重要物品。
- 修复了一些拼写错误和文本格式问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧