promotional bannermobile promotional banner

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.
Back to Files

sg_economy-1.1.0.jar

File namesg_economy-1.1.0.jar
Uploader
SirGrantdSirGrantd
Uploaded
Aug 24, 2026
Downloads
344
Size
77.8 KB
Mod Loaders
NeoForge
File ID
8724384
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:sg-economy-api-1446971:8724384"

Learn more about Curse Maven

What's new

Changelog: SG-Economy

Version V1.1.0 - CelesthydLib Sync & HUD Improvements

A major update modernizing player balance persistence, interface responsiveness, and third-party developer integrations.


💰 Persistence & Real-Time Balance Sync

  • Data Attachment Modernization: Player economy balances are now managed via NeoForge Data Attachments powered by CelesthydLib.
  • Seamless Multi-Dimensional Sync: Balances automatically sync across dimensions, upon login, and after respawn without loss or packet desync.
  • Physical Currency Conversion: Bi-directional support for physical coins (Magic Coins) and digital balance.

🖥️ HUD & Interface Enhancements

  • Dynamic Balance Overlay: Clean, non-intrusive on-screen balance counter with configurable anchor positions.
  • Creative Screen Fix: Fixed positioning and rendering offsets when viewing the Creative Mode inventory tabs.
  • Rendering Performance: Cached coin display values to eliminate per-frame balance recalculations and maximize FPS.

⚙️ Commands & Developer API

  • Player Commands (Permission Level 0):
    • /coins get [player] — Check your current balance (or check another player's balance if specified).
    • /coins pay <target> <amount> — Safely transfer coins to another online player (can be enabled/disabled via is_enable_pay_command in server config).
    • /coins rank [page] — Display the "Magnates Ranking" leaderboard (10 players per page), indexing both online players and offline .dat files with automatic NBT migration.
  • Admin Commands (Permission Level 2):
    • /coins set <players> <amount> — Set the exact coin balance for specified player(s).
    • /coins add <players> <amount> — Deposit coins into specified player(s) account.
    • /coins remove <players> <amount> — Withdraw coins from specified player(s) account with insufficient fund validation.
  • Public Java API (SGEconomyApi): Clean static methods for other mods (such as SG-XClaims) to check (getBalance, hasBalance), deposit (depositBalance), withdraw (withdrawBalance), and transfer (transferBalance) funds without relying on legacy event wrappers.

This mod has no additional files