Currencies
Configurable player currencies that power mastery and class switching
Overview
Currencies are configurable balances a player can earn and spend. The mod uses them to power mastery (mastery points, material currencies) and class switching, but they are a general-purpose system — define your own and grant or charge them from rewards, quests, achievements, or commands.
Two flavors
Every currency is one of two kinds:
- Counter-backed — a number stored on the player, with no inventory item. Set an
iconItemIdfor the display icon and leavehytaleItemIdunset. Mastery Points are counter-backed. - Item-backed — wraps a real Hytale item. Set
hytaleItemIdto the item id, and the balance is the count of that item the player holds. Life Essence is item-backed.
// Counter-backed
{
"displayName": "Mastery Points",
"iconItemId": "Ingredient_Crystal_Purple",
"color": "#c08aff",
"cap": 0,
"showOnSidebar": true,
"showOnMasteryPage": true
}
// Item-backed
{
"displayName": "Life Essence",
"hytaleItemId": "Ingredient_Life_Essence",
"color": "#a7e0a7",
"cap": 0
}A cap of 0 means uncapped. Currencies can optionally show on the sidebar and the mastery page.
Earning & spending
- Earn from command rewards at level milestones, from quest and achievement
CURRENCYrewards, or from an admin grant. - Spend on mastery nodes and on switching classes (the class switch cost defaults to mastery points).
Commands
| Command | Who | Description |
|---|---|---|
/mmocurrency balance [--player=<name>] [--currency=<id>] | Players | Show your balances (or another player's, for admins). |
/mmocurrency list | Players | List every defined currency. |
/mmocurrency give --player=<name> --currency=<id> --amount=<n> | Admin | Add to a balance. |
/mmocurrency take --player=<name> --currency=<id> --amount=<n> | Admin | Subtract from a balance. |
/mmocurrency set --player=<name> --currency=<id> --amount=<n> | Admin | Set a balance exactly. |
Use the named-arg form (--player= --currency= --amount=). The legacy positional form (/mmocurrency give Steve mastery_point 1) is rejected by the live command. /currency is an alias for /mmocurrency.
For server owners & pack authors
Currencies are enabled in config and defined as content. Author your own (or retune the Mastery Pack's Mastery Points and Life Essence) through the pack system — see Currency content types for the full definition schema.