MoneyRace

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.

The team vault menu with deposit and withdraw buttons and the upgrade shop

Turn it on

Set this in config.yml and run /moneyrace admin reload:

vault:
  enabled: true

AUTO 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

  1. Run /moneyrace vault get to receive the vault block. It is a lodestone by default.
  2. Place it somewhere the team can defend.
  3. 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

The four steps of a vault crack: start with a Vault Breaker, bossbars appear for both sides, raiders stay close, and 25 percent of the vault is stolen

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.

Raid and defend bossbars shown during a vault crack A raider cracking a vault while the defenders watch the bossbar
  • 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 to crack.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-day to cap how much one team can lose in a day. Zero means no cap.
  • Cracking is off during the season grace period.

Upgrades

UpgradeLevels and pricesEffect
Reinforced5000, 15000, 40000Each level adds 30 seconds to a crack
Alarm3000, 10000, 25000Warns the team when enemies come near. Each level watches 16 more blocks, with a warning at most every 30 seconds
Decoy4000, 12000Each 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.

On this page