CivilizationsMC
CivilizationsMC 为 NeoForge 1.21.1 添加了服务端经济系统。你可以组建氏族,通过向服务器出售物品赚取金币,在分页拍卖行挂牌物品,开设自己的玩家商店,并完成一个分为 30 个梯度的任务阶梯。你的余额、氏族和当前任务集都会显示在每位玩家的侧边栏 HUD 中。
该模组的大部分功能运行在服务端,并使用原版容器 GUI。自定义商店方块是唯一在客户端渲染的部分。
命令
/clan create|invite|accept|leave|disband|list
/balance, /balance give|set (op), /pay <player> <amount>
/bank 打开用于提取/存入纸币的 GUI
/ah 打开拍卖行 GUI。/ah sell|buy|cancel|list|mine 也可以作为直接命令使用。
/sell 打开购物车 GUI。/sell hand 和 /sell all 可立即出售,/sell list 打开分页价格目录。
/quests 显示你当前的任务集并允许你领取奖励。
- 右键点击已放置的 Shop 方块。买家看到原版村民交易界面,所有者看到配置 GUI。
功能
氏族
- 创建氏族,邀请玩家,接受邀请,离开,解散,查看活跃氏族列表
- 成员在 PvP 中仍然可以互相伤害(默认开启友军伤害)
货币与银行
- 基于世界的玩家金币余额存储
/pay 用于点对点转账
/bank 允许你将余额提取为纸币并存回。纸币是带有自定义数据的原版纸张,因此任何客户端都可以读取它们。
拍卖行
- 原版 6 行箱子 GUI,包含浏览、出售、我的列表和退货页面,以及一个 3 行确认取消模态框
- 浏览排序循环(最新、价格从低到高、价格从高到低),右键点击可反向切换
- 每个条目的描述显示了价格、卖家、过期倒计时和彩色的行动号召行
- 5% 挂牌税和 10% 出售税作为资金沉淀池
- 48 小时挂牌有效期。过期物品直接进入退货区,你可以随时领取。
- 附魔、自定义名称和
custom_data 在挂牌往返过程中得以保留
玩家商店
- 由 6 块木板和绿宝石合成的自定义 Shop 方块,拥有自己的模型和纹理
- 具有
HORIZONTAL_FACING 方块状态,确保方块的正面始终朝向放置者
- 第一次右键点击即获得所有权
- 所有者获得一个类似箱子的配置 GUI,用于添加和移除商品、使用步进按钮设置价格,并从库存中存入货物
- 买家看到原版村民交易界面。付款从
/balance 扣除,其中 90% 归所有者,10% 进入沉淀池。
服务器出售商店(资金水龙头)
/sell 打开购物车 GUI。点击库存中的物品将其加入购物车,点击 Sell 打开确认模态框,点击 Confirm 铸造金币。
/sell hand 和 /sell all 无需 GUI 即可快速出售
/sell list 打开分页目录,显示所有可出售物品及其价格
- 价格列表中约有 80 种物品。稀有且不可农作的物品(钻石、下界合金、信标、龙首等)售价较高。可农作物品售价为 1 枚金币。
任务
- 共 30 个任务,分为 6 个梯队,每梯队 5 个。完成当前集合中的所有 5 个任务后,下一组任务将解锁。
- 出售、挂牌和购买类任务使用终身计数器,因此进度在不同集合之间会延续
- 在
/quests 中点击已完成的任务以领取其金币奖励
侧边栏 HUD
- 基于每位玩家的记分板侧边栏,显示你的余额、氏族和带有实时进度的活跃任务集
- 约每两秒刷新一次,并使用原版记分板数据包
细节优化
- 每条系统消息都使用彩色前缀:
CLANS | ..., ECONOMY | ..., BANK | ..., AUCTION | ..., SHOP | ..., QUESTS | ...
- 在游戏内的任何位置悬停在可出售物品上时,工具提示会显示
Sells for: X coins
- 网络版本检查会在握手阶段拒绝运行错误模组版本的客户端
防复制保护
- 所有展示容器在
Container 级别均为只读。setItem、removeItem、removeItemNoUpdate 和 clearContent 均拒绝外部写入。
- 每个展示物品都盖有隐藏标记。任何落入玩家库存、鼠标光标或作为掉落物
ItemEntity 出现的带标记物品将在单个服务端 tick 内被删除。
- 阻止库存提取/整理模组(如 Quark 的 Inventory Sorting 按钮、Sophisticated Backpacks 的 Pickup 升级等)从 GUI 中提取物品
要求
- Minecraft 1.21.1
- NeoForge 21.1.230 或更高版本
- Java 21
- 服务端和客户端均需安装(自定义方块和版本检查)
CivilizationsMC
CivilizationsMC adds a server-side economy to NeoForge 1.21.1. You can form a clan, earn coins by selling to the server, list items on a multi-page auction house, set up your own player shop, and work through a tiered 30-quest
ladder. Your balance, clan, and current quest set all show on a per-player sidebar HUD.
Most of the mod runs server-side and uses vanilla container GUIs. The custom shop block is the only piece that renders on the client.
Commands
/clan create|invite|accept|leave|disband|list
/balance, /balance give|set (op), /pay <player> <amount>
/bank opens a withdraw/deposit GUI for paper banknotes
/ah opens the auction-house GUI. /ah sell|buy|cancel|list|mine also work as direct commands.
/sell opens the cart GUI. /sell hand and /sell all sell instantly, /sell list opens a paged price catalog.
/quests shows your active quest set and lets you claim rewards.
- Right-click a placed Shop block. Buyers see a vanilla villager trade screen, owners see a config GUI.
Features
Clans
- Create a clan, invite players, accept invites, leave, disband, see the list of active clans
- Members can still hurt each other in PvP (friendly fire is on by default)
Currency and Bank
- Per-player coin balance stored with the world
/pay for peer-to-peer transfers
/bank lets you withdraw your balance as paper banknotes and deposit them back. Banknotes are vanilla paper with custom data so any client can read them.
Auction House
- Vanilla 6-row chest GUI with Browse, Sell, My Listings, and Returns pages, plus a 3-row Confirm Cancel modal
- Browse sort cycle (Newest, Price low to high, Price high to low) with right-click to go backwards
- Each listing's lore shows the price, seller, an expiry countdown, and a colored call-to-action line
- 5% listing tax and 10% sale tax act as money sinks
- 48-hour listing expiry. Expired items go straight to Returns and you can claim them whenever.
- Enchantments, custom names, and
custom_data survive a listing round-trip
Player Shops
- Custom Shop block crafted from 6 planks and an emerald, with its own model and texture
- Has a
HORIZONTAL_FACING blockstate so the front of the block always points at whoever placed it
- First right-click claims ownership
- Owners get a chest-style config GUI for adding and removing offers, setting prices with step buttons, and depositing stock from their inventory
- Buyers get the vanilla villager trade screen. Payment comes out of
/balance and splits 90% to the owner, 10% to a sink.
Server Sell-Shop (the money faucet)
/sell opens a cart GUI. Click an item in your inventory to add it to the cart, click Sell to open the confirm modal, click Confirm to mint the coins.
/sell hand and /sell all for fast sales without the GUI
/sell list opens a paged catalog showing every sellable item and its price
- Around 80 items in the price list. Rare and non-farmable items (diamond, netherite, beacon, dragon head, and so on) pay well. Farmable items pay 1 coin.
Quests
- 30 quests in 6 tiers of 5. Finish all 5 in your current set and the next set unlocks.
- Sell, list, and buy quests use lifetime counters, so your progress carries over between sets
- Click a completed quest in
/quests to claim its coin reward
Sidebar HUD
- Per-player scoreboard sidebar showing your Balance, your Clan, and your active quest set with live progress
- Refreshes about every two seconds and uses vanilla scoreboard packets
Polish
- Every system message uses a colored prefix:
CLANS | ..., ECONOMY | ..., BANK | ..., AUCTION | ..., SHOP | ..., QUESTS | ...
- Hover any sellable item anywhere in the game and the tooltip shows
Sells for: X coins
- Network version check rejects clients running the wrong mod version at the handshake
Anti-Dupe Protection
- All display containers are read-only at the
Container level. setItem, removeItem, removeItemNoUpdate, and clearContent all refuse external writes.
- Every display item is stamped with a hidden marker. Any marked item that lands in a player inventory, on the cursor, or as a dropped
ItemEntity gets deleted within a single server tick.
- Stops inventory extract/sort mods (Quark's Inventory Sorting buttons, Sophisticated Backpacks' Pickup upgrades, and so on) from pulling items out of the GUIs
Requirements
- Minecraft 1.21.1
- NeoForge 21.1.230 or newer
- Java 21
- Required on both the server and the client (custom block and version check)
评论 0
登录后参与评分
还没有评论,来抢沙发吧