All Mods Resource Packs Data Packs Shaders Modpacks Plugins
SG-Economy API

SG-Economy API

by SirGrantd • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

SG Economy API

v1.0.1 ## 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.

How to Install SG-Economy API (Mod)

SG-Economy API by SirGrantd is verified for Neoforge across Minecraft versions 1.21.1 (latest release: 1.0.5, file size: 54 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21.1) and platform (Neoforge).
  2. Make sure you have the compatible loader or environment installed for Neoforge.
  3. Move the downloaded SG-Economy API file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Neoforge
5mo ago 1
1.21.1
Neoforge
6mo ago 1
1.21.1
Neoforge
9mo ago 1
1.21.1
Neoforge
9mo ago 1
[1.0.4] SG-Economy API 1.0.4 by SirGrantd on May 05, 2026
Download
Currency management commands (/coins set, add, remove) now work in Command Blocks.
[1.0.2] SG-Economy API 1.0.2 by SirGrantd on Feb 10, 2026
Download
## Changelog

### [1.0.2] - 2026-02-10

### Added

  • EconomyEventServiceImpl** as the central implementation of economy logic.
  • EconomyServices** as the single access point for economy services.
  • CoinsBagRepository** to encapsulate coin capability read/write operations.
  • Additional validation (e.g. negative amounts) and logging for errors and key operations.
  • SGNetwork** helper to centralize and simplify networking and payload registration.
  • SyncServerConfigS2C** payload for server-to-client configuration synchronization.
  • ServerConfigSync** and **ServerConfigSyncEvents** to send server config to clients on bake and player login.
  • ClientSyncedConfig** to store and apply client-side synced configuration, used by EconomyEventServiceImpl.

### Changed

  • Major refactor of the Economy API.
  • Consolidated provider interfaces into net.sirgrantd.sg_economy.api.EconomyEventProvider.
  • Updated all consumers (commands, events, GUI, examples, and mod initialization) to use the new API.
  • Adjusted death and balance logic to rely on the central service layer.
  • Refactored network layer and server config synchronization flow.
  • Moved payload registration out of SGEconomyMod into SGNetwork.
  • Updated CoinsBagCapabilities to register its payload via SGNetwork.
  • Simplified SGEconomyMod (network registration, message registration, removal of thread-group check for queued work).
  • Miscellaneous import cleanup and code formatting improvements.

### Removed

  • Legacy economy/event/provider classes.
  • Old Default and Death providers.
  • CurrencyUtils.

### Fixed

  • Consistent error handling for balance operations.
  • Prevention of invalid operations (e.g. negative values).
SG-Economy API Icon
Download SG-Economy API
Select game version
Select platform