90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Revault is a datapack that makes vaults and ominous vaults restock after some time. Normally once a vault is opened, it can't be opened again by that player, but Revault lets that player open it again, after some time has passed.

  • Works in both singleplayer and multiplayer, with any number of players.
  • Each player starts a timer in the vault when they open it. Once a timer finishes, the player who started that timer will be allowed to open that vault again.
  • Timers are linked to gametime, so they will work even in unloaded chunks.
  • Vaults will display smoke particles on top (similar to a trial spawner on cooldown) that are ONLY visible to players that are on cooldown.
  • By default, a normal vault takes 1 hour to restock, and an ominous vault takes 5 hours. (For reference, a trial spawner takes 30 minutes)

Configuration

You can change gamerules in a world by clicking on chat after running /function revault:gamerules
Setting the reset time to -1 means the vault will never reset.

For Modpack Makers

Since this is a datapack, it does not have a config.
You can change gamerules in every world by modifying/overwriting the function "revault:default_gamerules"
I recommend watching the tutorial.

Advanced information about customizing gamerules here.

Installing and Uninstalling

When installed into an existing world, all already opened vaults will stay locked until opened by a new player, where they would then unlock for all players when the last timer ends.

  • When Uninstalled, all vault-markers will stay.
  • When Reinstalled, all vaults that would have unlocked already, will unlock.

Free to be used in any modpack, on any platform.


Project members

EMD123

Member

Details

Licensed Apache-2.0
Published a year ago
Updated 7 days ago