
Modrinth · Minecraft mod
Treasury
An bridge layer to provide economy and points implementations
Quick answer
Which Treasury release matches 1.20.3?
Treasury 1.0.3 targets 1.20.1, 1.20.2, 1.20.3 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is Treasury required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does Treasury 1.0.3 need?
1.0.3 on 1.20.3. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Treasury without breaking your instance.
Built for Treasury 1.0.3 on 1.20.3. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.3. It targets 1.20.1, 1.20.2, 1.20.3 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.3. It opens that exact file at the source.
About this project
What does Treasury add?
Treasury
A simple economy & points API for Minecraft mods.
Inspired by the Bukkit Vault plugin.
It is not an economy implementation.
Instead, like Vault, other mods provide economy/points implementations, and Treasury acts as a bridge layer.
We need a good logo lmao, my art sucks —— the author
What can it do?
- Hold server economy (multi-currency supported)
- Access points / premium currency
- Allow mods to interact economy system without depending on specific implementations
How it works
Treasury defines two main provider types:
EconomyProviderfor normal currencyPointsProviderfor points (most for premium currency)
Other mods register their implementation, and other developers who use the API can get them.
See more below.
Registry
Economy
- Stored in
EconomyServiceRegistry - Supports multiple providers
- One provider is selected as primary
Selection rules:
- Using
primaryEconomywhich defined in config if specified - Otherwise, use the first registered provider
Points
- Stored in
PointsServiceRegistry - Only one provider allowed
Registering another provider will throw an exception.
Register Providers
Economy
Treasury.economy().register(new ExampleEconomyProvider());
Points
Treasury.points().register(new ExamplePointsProvider());
Notes:
- Only one points provider allowed
- Please register during mod initialization
Fabric Entrypoints
Treasury supports register providers via Fabric entrypoints:
treasury-economytreasury-points
Example:
{
"entrypoints": {
"treasury-economy": [
"com.example.mod.ExampleEconomyProvider"
],
"treasury-points": [
"com.example.mod.ExamplePointsProvider"
]
}
}
Usage
Economy
if (Treasury.economy().hasPrimary()) {
EconomyProvider economy = Treasury.economy().getPrimary();
double balance = economy.getBalance(playerUuid);
}
Points
if (Treasury.points().isRegistered()) {
PointsProvider points = Treasury.points().get();
int balance = points.getBalance(playerUuid);
}
Commands
/treasury info/treasury balance <player>
Required permission level: 2
Requirements
- Fabric: Minecraft
1.20.1+, any Fabric version, Fabric API is not required - NeoForge: Minecraft
1.20.4+, any NeoForge version - Java:
17or higher
Don't ask for Forge!
Build
./gradlew build
Import
dependencies {
compileOnly("io.github.lijinhong11:treasury:VERSION")
}
Project description from Modrinth.
Pick your setup
Treasury by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.1.1
2 loader builds26.1
2 loader builds1.21.11
2 loader builds1.21.10
2 loader builds1.21.9
2 loader builds1.21.8
2 loader builds1.21.7
2 loader builds1.21.6
2 loader builds1.21.5
2 loader builds1.21.4
2 loader builds1.21.3
2 loader buildsShowing the newest 12 of 22 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Treasury versions and loaders
1.0.3
Treasury-Fabric-1.20.1~1.21.11-1.0.3.jar
18 Apr 2026
1.0.2
Treasury-Fabric-1.20.1~1.21.11-1.0.2.jar
11 Apr 2026
Looking for an older file? The official Modrinth project page is in Resources.