X Prison Core – Update v2025.4.1.0
New Feature: Unlimited Custom Currency Enchants
We’re excited to introduce customization -
Custom Currency Enchants!
You can now create
unlimited currency-giving enchants for
any of your custom currencies using a simple JSON configuration.
New: custom-currency-enchant.json Template
A new enchant type has been added:
dev.drawethree.xprison.enchants.model.CurrencyRewardEnchantBase
With this, you can fully define how a custom enchant gives rewards in
any currency — not just Tokens or Gems!
Example configuration:
{
"class": "dev.drawethree.xprison.enchants.model.CurrencyRewardEnchantBase",
"id": 998,
"rawName": "custom-currency-enchant-1",
"name": "<yellow>Currency Finder</yellow>",
"enabled": true,
"increaseCostBy": "baseCost * pow(1.05, level)",
"maxLevel": 1500,
"chance": 1.0,
"amountToGive": "level * 1000",
"currency": "TOKENS",
"initialCost": 20,
"currencyToGive": "MONEY",
"refund": {
"enabled": true,
"guiSlot": 35,
"percentage": 40.0
},
"gui": {
"name": "<yellow>Currency Finder</yellow>",
"material": "SUNFLOWER",
"slot": 35,
"description": [
"<gray>This is your custom currency finder enchant!</gray>",
" ",
"<gray>This enchant gives currency to player based on a given chance.</gray>",
" ",
"<gray>You can create as many as you want of these</gray>",
"<gray>by copying the custom-currency-enchant.json</gray>",
"<gray>renaming it, and modify it to your liking!</gray>"
]
}
}
⚙️ How It Works
- You can now clone and modify the provided custom-currency-enchant.json file.
- Each file defines a new custom enchant that can give any currency you’ve configured in your server.
- The enchant supports:
- ✅ Fully customizable cost formulas (increaseCostBy, initialCost)
- ✅ Adjustable reward logic (amountToGive, chance)
- ✅ Refund options with percentage and GUI integration
- ✅ Unique GUI layouts and item icons
Examples
- TokenFinder → rewards Tokens
- GemFinder → rewards Gems
- MoneyFinder, CrystalFinder, or any other currency — now easily possible!
Summary
- ➕ Added support for unlimited custom currency-giving enchants
- Introduced CurrencyRewardEnchantBase enchant type
- ️ New custom-currency-enchant.json template for easy creation
- ⚡ Extends existing functionality of TokenFinder and GemFinder
Developer Notes
To add your own currency enchant:
- Copy custom-currency-enchant.json
- Rename it (e.g. money-finder.json)
- Edit the values to match your custom currency and behavior
- Reload or restart your server
That’s it — your new enchant will automatically load and appear in-game!