ChichengJingJi
? 简介
Chicheng Economy 是一款为 Minecraft 服务器或单人世界添加完整虚拟货币系统(Chicheng Coins)的模组,并配备了功能齐全的销售机和收银机。
玩家可以放置销售机并上架任何物品(支持附魔、NBT 等)。其他玩家可以使用 Chicheng Coins 购买物品,收益会自动分配给销售机所有者(在线时实时转账;离线时的收益会保存并在登录时发放)。
收银机允许玩家直接向所有者转账硬币,方便团队或服务器内的交易。该模组还包含余额 HUD、经济命令和其他辅助功能。
✨ 主要特性
? 销售机
放置与绑定:放置方块的玩家自动成为所有者。
上架物品:所有者手持要出售的物品右键点击销售机,设置单价和库存(支持任何物品,保留附魔和 NBT)。
购买物品:任何玩家右键点击销售机打开购买界面,选择物品,输入数量——模组会自动检查余额和背包空间。
收益分配:
所有者在线 → 收益即时转账。
所有者离线 → 收益保存在销售机中,当所有者登录时自动发放(附带通知)。
数据持久化:物品列表、所有权、收益等均随世界保存;服务器重启后数据不丢失。
保护机制:只有所有者可以破坏销售机;被破坏时,所有上架物品掉落。
实时同步:多人游戏中所有界面自动刷新。
? 收银机
放置与绑定:放置方块的玩家自动成为所有者。
转账功能:任何其他玩家右键点击打开转账界面,输入金额并确认——硬币将立即转移到所有者账户(无需手动收取)。
所有者提示:所有者右键点击仅显示消息,不打开转账界面。
保护机制:只有所有者可以破坏方块。
? 经济系统
Chicheng Coin:虚拟货币,通过命令管理。
命令(前缀均为 /chicheng):
balance – 查看你的余额。
give <player> <amount> – 向玩家发放 Chicheng Coins(仅限 OP)。
take <player> <amount> – 从玩家处移除 Chicheng Coins(仅限 OP)。
set <player> <amount> – 设置玩家的余额(仅限 OP)。
transfer <target player> <amount> – 向其他玩家转账硬币。
余额 HUD:在右下角显示当前余额(可配置)。
配置:修改 config/chichengjingji-common.toml 以设置初始余额(默认为 100)。
? 界面与交互
销售机购买界面:物品列表(图标、单价、库存)→ 点击物品进入详情页(放大图标)→ 输入数量进行购买。
上架界面:直观的输入框和按钮。
收银机转账界面:简单的数字输入和确认按钮。
所有按钮支持悬停高亮;界面不会暂停游戏。
? 安装
确保已安装 NeoForge 1.21.1。
将下载的 chichengjingji-1.0-SNAPSHOT.jar 放入 .minecraft/mods 文件夹。
启动游戏——模组将自动生成其配置文件。
多人服务器:将 jar 文件放入服务器的 mods 文件夹。所有客户端也必须安装该模组(否则无法看到界面)。
?️ 使用指南
销售机
放置销售机(放置者成为所有者)。
手持要出售的物品,右键点击销售机 → 设置单价和数量 → 确认上架。
其他玩家(空手)右键点击打开购买界面 → 选择物品 → 输入数量 → 购买。
所有者可以随时添加新上架商品并查看收益(收益自动发放/存储)。
收银机
放置收银机(放置者成为所有者)。
其他玩家右键点击收银机 → 输入转账金额 → 确认——硬币从其账户扣除并加入所有者账户。
所有者右键点击仅显示消息,无转账功能。
经济命令
在聊天栏输入 /chicheng help 查看子命令(用法如上所述)。
⚙️ 配置
配置文件路径:config/chichengjingji-common.toml
toml
[common]
starting_balance = 100 # 新玩家的初始余额
showBalanceHUD = true # 是否显示余额 HUD
?️ 开发者信息
开发环境:NeoForge 1.21.1
语言:Java 21~~~~
? 许可证
版权所有(请联系作者获取许可)。
?? 作者
MCyangguang
? 致谢
ChichengJingJi
? Introduction
Chicheng Economy is a mod that adds a complete virtual currency system (Chicheng Coins) to Minecraft servers or single-player worlds, along with fully functional vending machines and cash registers.
Players can place vending machines and list any item (supports enchantments, NBT, etc.). Other players can purchase items using Chicheng Coins, and the earnings are automatically distributed to the vending machine owner (real-time transfer if online; offline earnings are stored and paid out upon login).
Cash registers allow players to transfer coins directly to the owner, making team or server transactions convenient. The mod also includes a balance HUD, economy commands, and other helper features.
✨ Key Features
? Vending Machine
Place & Bind: The player who places the block is automatically the owner.
List Items: The owner right‑clicks the vending machine while holding the item to set the unit price and stock (supports any item, preserves enchantments and NBT).
Buy Items: Any player right‑clicks the vending machine to open the purchase interface, selects an item, enters the quantity – the mod automatically checks balance and inventory space.
Earnings Distribution:
Owner online → earnings transferred instantly.
Owner offline → earnings stored in the vending machine, paid out automatically when the owner logs in (with a notification).
Data Persistence: Item lists, ownership, earnings, etc., are saved with the world; they survive server restarts.
Protection: Only the owner can break the vending machine; when broken, all listed items drop.
Real‑time Sync: All interfaces refresh automatically in multiplayer.
? Cash Register
Place & Bind: The player who places the block is automatically the owner.
Transfer Functionality: Any other player right‑clicks to open a transfer interface, enters an amount, and confirms – the coins are instantly transferred to the owner (no manual collection needed).
Owner Prompt: The owner right‑clicking only shows a message, not the transfer interface.
Protection: Only the owner can break the block.
? Economy System
Chicheng Coin: Virtual currency, managed via commands.
Commands (all with prefix /chicheng):
balance – Check your balance.
give <player> <amount> – Give Chicheng Coins to a player (OP only).
take <player> <amount> – Remove Chicheng Coins from a player (OP only).
set <player> <amount> – Set a player’s balance (OP only).
transfer <target player> <amount> – Transfer coins to another player.
Balance HUD: Shows your current balance in the bottom‑right corner (configurable).
Configuration: Modify config/chichengjingji-common.toml to set the starting balance (default 100).
? Interface & Interaction
Vending Machine Purchase Interface: Item list (icon, unit price, stock) → click an item to go to a detail page (enlarged icon) → enter quantity to buy.
Listing Interface: Intuitive input fields and buttons.
Cash Register Transfer Interface: Simple number input and confirmation button.
All buttons support hover highlighting; interfaces do not pause the game.
? Installation
Ensure you have NeoForge 1.21.1 installed.
Put the downloaded chichengjingji-1.0-SNAPSHOT.jar into the .minecraft/mods folder.
Launch the game – the mod will automatically generate its config file.
Multiplayer servers: Place the jar file in the server’s mods folder. All clients must also install the mod (otherwise they cannot see the interfaces).
?️ Usage Guide
Vending Machine
Place the vending machine (the placer becomes the owner).
While holding the item you want to sell, right‑click the vending machine → set unit price and quantity → confirm to list it.
Other players (empty hand) right‑click to open the purchase interface → select an item → enter quantity → buy.
The owner can add new listings at any time and check earnings (earnings are automatically paid / stored).
Cash Register
Place the cash register (the placer becomes the owner).
Another player right‑clicks the cash register → enter the transfer amount → confirm – the coins are deducted from their account and added to the owner’s account.
The owner right‑clicking only shows a message, no transfer.
Economy Commands
Type /chicheng help in chat to view sub‑commands (usage as described above).
⚙️ Configuration
Config file path: config/chichengjingji-common.toml
toml
[common]
starting_balance = 100 # New players' starting balance
showBalanceHUD = true # Whether to show the balance HUD
?️ Developer Information
Development Environment: NeoForge 1.21.1
Language: Java 21~~~~
? License
All Rights Reserved (contact the author for permission).
?? Author
MCyangguang
? Acknowledgements
评论 0
登录后参与评分
还没有评论,来抢沙发吧