Team vaults
An add-on where teams keep money in a vault block that enemies can crack
Team vaults are an add-on and they are off by default. A team places a vault block and stores money in it. Enemies can crack the vault and steal part of what is inside, so a vault is a thing to defend.
Turn it on
Set this in config.yml and run /moneyrace admin reload:
vault:
enabled: trueAUTO is also allowed and turns vaults on only in SEASON mode. With vaults on, the team score in SEASON mode becomes the vault balance, so the leaderboard ranks stored money.
How a team uses it
- Run
/moneyrace vault getto receive the vault block. It is a lodestone by default. - Place it somewhere the team can defend.
- Right click it to deposit, withdraw and buy upgrades. The deposit and withdraw buttons use the amounts in
vault.menu-amounts(100, 1000 and 10000).
Leaders and officers can withdraw (vault.withdraw-roles). Only the leader can buy upgrades and pick the vault up (vault.manage-roles). Change both lists if you want a different split.
Cracking a vault
A raider right clicks an enemy vault while holding a Vault Breaker. The Vault Breaker is a ritual item, see Rituals. If you want any hand to work, set vault.crack.tool-required: false.
- A crack takes 120 seconds on a plain vault (
crack.base-seconds) and never more than 300 (crack.max-seconds). - Raiders must stay within 8 blocks (
crack.radius). If nobody is near for 10 seconds, the crack fails (crack.fail-after-seconds). - Both sides get a bossbar. Defenders see the vault location rounded to 10 blocks (
crack.round-to), so they know the area and not the exact spot. - When the crack finishes, 25 percent of the vault is stolen (
crack.percent). The raiders' team is paid according tocrack.paid-to. - The same vault cannot be cracked again for 60 minutes (
crack.cooldown-minutes). - A vault with less than
crack.min-balance(1) cannot be cracked. - Set
crack.max-per-dayto cap how much one team can lose in a day. Zero means no cap. - Cracking is off during the season grace period.
Upgrades
| Upgrade | Levels and prices | Effect |
|---|---|---|
| Reinforced | 5000, 15000, 40000 | Each level adds 30 seconds to a crack |
| Alarm | 3000, 10000, 25000 | Warns the team when enemies come near. Each level watches 16 more blocks, with a warning at most every 30 seconds |
| Decoy | 4000, 12000 | Each level allows one more fake vault that wastes a raider's crack |
vault.upgrades.pay-from is VAULT by default, so upgrades are paid from the vault. Set it to PLAYER to charge the buyer.
Decoys are given with /moneyrace admin give vault_decoy, and picked up again with shift and right click.
Offline shield
A team with nobody online is shielded from cracks. The shield starts 5 minutes after the last member logs off (offline-shield.delay-minutes) and lasts vault.offline-shield-hours (48). Zero hours means it lasts until someone logs on.
Where vaults may go
vault.worlds limits the worlds and stays empty to allow every world. vault.spawn-protection keeps vaults away from world spawn. The default of -1 uses the server's own spawn protection.
You can also keep vaults out of a WorldGuard region with the moneyrace-vault flag. See Storage and WorldGuard.
Admin commands
/moneyrace admin vault list, info, remove, tp and reset, each with a team name where it applies. A team that closes pays its vault out to its players first, so no money is lost.