- check_circle Advancements
- check_circle Functions
- 3,773 views, 49 today
- 512 downloads, 11 today
86
Revault is a small 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. It 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.
You can change these values in a world by running /function revault:gamerules
You can change these values in every world by modifying/overwriting the function "revault:default_gamerules"
When Uninstalled, all vault-markers will stay.
When Reinstalled, all vaults that would have unlocked already, will unlock.
Configuration
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)You can change these values in a world by running /function revault:gamerules
You can change these values in every world by modifying/overwriting the function "revault:default_gamerules"
Installing and Uninstalling
When installed in an existing world, an already opened vault will stay locked, until a new player opens it, where it would then slowly unlock to each player that previously opened it, one at a time.When Uninstalled, all vault-markers will stay.
When Reinstalled, all vaults that would have unlocked already, will unlock.
Compatibility | Minecraft 1.21 |
Tags |
1 Update Logs
1.0.1 : by EMD123 06/22/2024 9:50:48 amJun 22nd
- Removed debug chat messages/particles
- Added a link to PMC in the gamerules menu
6307150
119
Create an account or sign in to comment.
As it only removed the first player, if you have two players who use the vault right after each other, then the first player only needs to wait 1 hour to use it again, while the second player has to wait two hours.
The only time a player would need to wait 2 hours to be reset is if a previous player opened it without starting a timer. (Ie, a player opens a vault before the pack is installed, or a player opens a vault outside of the default detection range.)
I like your idea of resetting every UUID, but I'll have it only do that if the last timer finishes but there are still un-reset players in the vault player list.
or is there something im missing to get it to function with custom vaults?
The datapack only scans for vaults opened by a player within the default range.
It will be fixed in 1.0.1