promotional bannermobile promotional banner

Elements: Vault

A free economy API for NeoForge 1.21.1 so mods can share one currency for balances, shops and auction houses.

MinecraftNeoForgeVersionEnvironmentTypeSource

Elements: Vault

A shared economy API for NeoForge 1.21.1. Vault holds no money itself. An economy mod registers itself as the provider, and any other mod can use it to read balances, take or pay money, and hook in its own shops or currency.

For server owners

You only need Vault when another mod asks for it. Put it in your server's mods folder next to that mod. It has no config files and no commands.

Only currencies that come with a mod count as currencies. Vanilla items only count after the server owner lists them in the economy mod's config and an admin confirms.

For mod developers

  • EconomyAPI: the entry point. EconomyAPI.get() returns the running economy, or empty when no provider is running.
  • EconomyService: balances, top balances, dry runs, withdraw, deposit, set, transfer, conversion between currencies and coin items. Async versions for offline players.
  • Account: named accounts besides a player's default one, such as a team bank or a shop's till, for currencies where supportsAccounts is true. Create, delete, list, and move money between them.
  • Currency: one kind of money, with its name, symbol, decimals and formatting. Digital, item or external.
  • CurrencyBackend: plug in your own money system.
  • ShopBridge: plug in a shop or auction mod.
  • Events on the game bus: transactions, balance changes, currency switches, shop purchases and auction listings and sales.
EconomyAPI.get().ifPresent(eco -> {
    Money price = eco.primaryCurrency().of(250);
    Result r = eco.withdraw(player.getUUID(), price, Cause.plugin("mymod"));
});

Always check EconomyAPI.isAvailable() (or use EconomyAPI.get()) before calling anything, since the service only exists while a provider is running.

Adding it to your project

Vault is on CurseForge, so you can pull it with CurseMaven:

repositories {
    maven {
        url = "https://cursemaven.com"
        content { includeGroup "curse.maven" }
    }
}

dependencies {
    compileOnly "curse.maven:elements-vault-1730724:9860520"
}

License

Free to use in any modpack. Credit Telmarine. No resale.

Elements: Vault Team

profile avatar
  • 10
    Projects
  • 690
    Downloads

I'm a new mod creator testing my abilities. Please give my mods a look and tell me what you think! ^_^ More MC Versions for all my mods are coming soon. Give me some time. Ownre of Tenko Minecraft

More from TelmarineView all

  • Elements: Claims project image

    Elements: Claims

    Land claiming for NeoForge servers: claim chunks with a Claim Deed, trust players into custom ranks, and protect your land with flags, sub-areas and admin claims.

    • 21
    • November 28, 2026
  • Elements: Nexus project image

    Elements: Nexus

    This is a server management mod that couples Tab, NeoEssentials, plus the ability to migrate data from other server management mods into it's system smoothly.

    • 61
    • November 28, 2026
  • Elements: Economy project image

    Elements: Economy

    A server-side economy for NeoForge 1.21.1 that links your currency to player shops, server shops and an auction house.

    • 68
    • November 28, 2026
  • Codex: Cartography project image

    Codex: Cartography

    A full minimap and world map that records the world as you explore it. Mark places, find your way back, see what's around you above and below ground, and manage your land without leaving the map.

    • 23
    • November 28, 2026
  • Elements: Claims project image

    Elements: Claims

    Land claiming for NeoForge servers: claim chunks with a Claim Deed, trust players into custom ranks, and protect your land with flags, sub-areas and admin claims.

    • 21
    • November 28, 2026
  • Elements: Nexus project image

    Elements: Nexus

    This is a server management mod that couples Tab, NeoEssentials, plus the ability to migrate data from other server management mods into it's system smoothly.

    • 61
    • November 28, 2026
  • Elements: Economy project image

    Elements: Economy

    A server-side economy for NeoForge 1.21.1 that links your currency to player shops, server shops and an auction house.

    • 68
    • November 28, 2026
  • Codex: Cartography project image

    Codex: Cartography

    A full minimap and world map that records the world as you explore it. Mark places, find your way back, see what's around you above and below ground, and manage your land without leaving the map.

    • 23
    • November 28, 2026