SG-Economy API
Adds an extensible economic system to Minecraft, allowing mods to define, store, and synchronize currencies and player balances through a unified API.
介绍
SG Economy API
Overview
SG Economy API adds a flexible, modern, and extensible economic system to Minecraft. It works as a Mod API, allowing players, modpack creators, developers, and server administrators to create and integrate custom economies in a simple and consistent way.
The economic system is based on a persistent numeric balance, directly associated with player data. This balance is not represented by in-game items, functioning as a “virtual wallet” whose name, meaning, and usage may vary depending on the implementation or integration with other mods.
Key Features
💰 Flexible Monetary System
Allows configuration to use integer or decimal values, adapting the economy to different use cases (simple currencies, systems with cents, etc.). The configuration is done via a file and directly affects the format of the stored balance.
🔧 Developer API
Provides documented classes and methods for:
- Querying and modifying player balances
- Native integration with other mods
- Creating custom economic systems
The GitHub repository includes practical examples and implementation guides.
🛠️ Administrative Commands
Includes commands for in-game economy management, allowing:
- Balance checks
- Adding, setting, or removing values
- Transferring balance between players (optional)
These commands can be enabled or disabled according to server needs.
🖥️ Display Interface
Displays the player’s economic balance in the inventory interface and/or on-screen, in a visual and configurable way. The display reflects only the value stored in the player’s data, with no relation to physical items.
⚙️ Configuration Files
Configuration files allow customization of the economic system’s behavior, including currency format, balance retention rules, available commands, and interface display options.
常见问题
SG-Economy API 支持哪些 Minecraft 版本?
SG-Economy API 支持 Minecraft Java 版 1.21.1–26.1.2,共 2 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
SG-Economy API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
SirGrantd 的其他作品
查看全部 →
Magic Coins
Magic Coins is a mod focused on economy, introducing a simplified coin system to Minecraft. Ideal for players seeking a more immersive RPG experience and for modpack creators looking to customize villager trades.
SG-Economy API
Adds an extensible economic system to Minecraft, allowing mods to define, store, and synchronize currencies and player balances through a unified API.
Fabulous Blade
Adds new swords with different types and mechanics. Compatible with Better Combat for unique attack styles!
评论
登录后评论和评分