{{for|the ominous variant|Ominous Vault}}
{{Infobox block
| group1 = Active
| 1-1 = Vault (active).png
| group2 = Unlocking
| 2-1 = Vault (unlocking).png
| group3 = Ejecting
| 3-1 = Vault (ejecting).png
| group4 = Inactive
| 4-1 = Vault.png
| renewable = No
| stackable = Yes (64)
| light = Yes <br> Active or ejecting: 12 <br> Inactive: 6
| transparent = Partial
| tool = None
| flammable = No
| lavasusceptible = No
}}
A '''vault''' is a block found in [[trial chambers]]. It dispenses loot when unlocked using a [[trial key]]. Each vault can be looted by an unlimited number of players, but each player can unlock a specific vault only once.<ref name="Minecraft Monthly">{{ytl|gbCSAffHr0w|REVEALING A NEW BLOCK + TRIAL KEY UNLOCKS...??? {{!}} MINECRAFT MONTHLY|Minecraft|January 26, 2024|t=4m}}</ref>

== Obtaining ==
Vaults cannot be obtained in [[Survival]], even with [[Silk Touch]], and cannot be moved with a [[piston]].

=== Breaking ===
A vault has no tool associated with it and does not drop itself. It can be obtained only via the [[Creative inventory]] or the {{cmd|give}} command.

Due to their high blast resistance, vaults are immune to [[explosion]]s, but can still be destroyed by the [[ender dragon]], the [[wither]]'s block-breaking attack and [[Wither#Wither Skull|blue wither skulls]].
{{breaking row|Vault|None|drop=0|horizontal=1}}

=== Natural generation ===
[[File:Vaultrender3.png|thumb|200px|A vault, as it appears in [[trial chambers]].]]
In [[trial chambers]], vaults can generate naturally in all rooms that also contain [[trial spawner]]s, as well as the entrance room. They are found generated on small pedestals made of waxed [[cut copper block]]s and [[cut copper slab]]s.

== Usage ==
=== Activation ===
When a player is within 3.0 blocks of a vault, it becomes active and begins emitting flame [[particles]] inside of it. If the player has not unlocked the vault before (i.e. if the player is not in its [[#Player limit|list of players]]), a stream of orange particles flows from the player to the vault's keyhole. The vault becomes inactive if there are no players within 4.0 blocks who have not unlocked the vault.

When active, a vault idly cycles between items once every second, visually displaying the current item inside the block. Each time the vault cycles to a new item, the item is randomly chosen from the loot table ({{slink||Loot}}). Small orange particles also appear in front of the vault as if they were being sucked into the keyhole.

=== Unlocking ===
[[File:Vault Ejecting Loot Screenshot.png|thumb|A vault in the process of ejecting loot.]]
When a trial key is {{control|used}} on a vault, it ejects items. Items are ejected one stack at a time with a burst of particles for each stack.

While the vault is ejecting items, it will briefly show the next item to be ejected. This should not be confused with the random items displayed while the vault is idle. These random item displays ''cannot'' be used for timing the unlocking, as the items to eject are rolled independently of whatever the idle display shows.

When the vault is done ejecting items, it becomes inactive until another player approaches it.

Each vault can be unlocked only once per player. The vault is intended to reward each player for completing each trial chamber one time. This gives every player in a [[world]] the opportunity to find their own loot without having to travel substantial distances to find undiscovered loot at a fresh structure.

{{anchor|Player limit}}
Each vault keeps track of up to 128 unique players that have opened it. If the list of players is full and another opens the vault, the new player is added to the end of the list while the first known player is forgotten and becomes able to open the vault again. Because of this, any item dropped by vaults is functionally [[renewable]] with enough players.<ref>{{bug|MC-274049|||WAI}}</ref>

=== Loot ===
The vault ejects 2 to 5 stacks of loot, which can sometimes include a few unstackable items.

The vault ejects a combination of loot from three different loot tables. The following information describes the loot ejected for a single [[player]] when a single [[trial key]] is {{control|used}}.
* Common loot
** Every vault gives between one and three sets of common loot, corresponding the 3rd and 6th columns below.
** A vault that does not give rare loot gives an additional set of common loot, making it possible to get 4 sets of common loot.
* Rare loot
** {{IN|je}} every vault has an 80% chance to include a set of rare loot.
** {{IN|be}} every vault has a 20% chance to include a set of rare loot.
** The loot listed in the 2nd and 5th columns below corresponds with the chance of one set of rare loot, plus the chance of the one set of common loot that can be used in its place.
* Unique loot
** Every vault has a 25% chance to also include one set of unique loot.
** This loot, and the 75% chance for each vault to not have this loot, corresponds with the 4th and 7th columns below.

{{LootChest|trial-chambers-reward}}

== Sounds ==
=== Generic ===
{{Sound table/Block/Vault}}

=== Unique ===
{{:Vault/Sounds|java=1|bedrock=1}}

== Data values ==
=== ID ===
{{JE}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Vault
|spritetype=block
|nameid=vault
|foot=1}}
{{ID table
|displayname=Block entity
|spritename=vault
|spritetype=block
|nameid=vault
|foot=1}}

{{BE}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Vault
|spritetype=block
|nameid=vault
|id=-314
|foot=1}}
{{ID table
|notnamespaced=y
|displayname=Block entity
|spritename=vault
|spritetype=block
|nameid=Vault
|foot=1}}

=== Block states ===
{{See also|Block states}}

{{/BS}}

=== Block data ===
A vault has a block entity associated with it that holds additional data about the block.

{{JE}}:
{{see also|Block entity format}}

{{/BE}}

{{BE}}:
: See [[Bedrock Edition level format/Block entity format]].

== Advancements ==
{{load advancements|Under Lock and Key}}

== Video ==
{{video note|The vault's texture has been changed since this video's release}}
{{yt|OyGfdaacGyE}}
{{yt|gbCSAffHr0w}}

== History ==
{{HistoryTable
|{{HistoryLine||January 26, 2024|link=https://www.youtube.com/watch?v=gbCSAffHr0w|[[File:Vault JE1 BE1.png|32px]] [[File:Vault (active) JE1 BE1.png|32px]] [[File:Vault (unlocking) JE1 BE1.png|32px]] [[File:Vault (ejecting) JE1 BE1.png|32px]] Vaults are announced at [[Minecraft Monthly]].}}

|{{HistoryLine|java}}
|{{HistoryLine||1.20.5|exp=Update 1.21|dev=24w05a|[[File:Vault JE1 BE1.png|32px]] [[File:Vault (active) JE1 BE1.png|32px]] [[File:Vault (unlocking) JE1 BE1.png|32px]] [[File:Vault (ejecting) JE1 BE1.png|32px]] Added vaults.}}
|{{HistoryLine|||dev=24w06a|[[File:Vault JE2 BE2.png|32px]] [[File:Vault (active) JE2 BE2.png|32px]] [[File:Vault (unlocking) JE2 BE2.png|32px]] [[File:Vault (ejecting) JE2 BE2.png|32px]] Changed the textures of vaults to distinguish them from [[trial spawner]]s.}}
|{{HistoryLine|||dev=24w09a|[[File:Vault JE3 BE3.png|32px]] [[File:Vault (active) JE3 BE3.png|32px]] [[File:Vault (unlocking) JE3 BE3.png|32px]] [[File:Vault (ejecting) JE3 BE3.png|32px]] Changed the textures of vaults to further distinguish them from trial spawners.}}
|{{HistoryLine|||dev=24w10a|[[File:Vault JE4.png|32px]] Updated the left column of pixels on the front face of the disabled vault to match the textures of the other states.}}
|{{HistoryLine|||dev=24w11a|Their loot tables have been updated to address some inventory management issues.}}
|{{HistoryLine|||dev=24w13a|Changed the loot table of the standard vaults.
|[[File:Vault JE5 BE4.png|32px]] [[File:Vault (active) JE4 BE4.png|32px]] [[File:Vault (unlocking) JE4 BE4.png|32px]] [[File:Vault (ejecting) JE4 BE4.png|32px]] Changed the textures of the vault to match the colors used in [[ominous vault]]s.}}
|{{HistoryLine|||dev=Pre-release 1|[[File:Vault JE6 BE5.png|32px]] [[File:Vault (active) JE5 BE5.png|32px]] [[File:Vault (unlocking) JE5 BE5.png|32px]] [[File:Vault (ejecting) JE5 BE5.png|32px]] Updated textures to fix inconsistencies across all states.}}
|{{HistoryLine||1.21|dev=24w18a|Vaults are now available without using the "Update 1.21" experimental data pack.
|Vaults can now eject the new "[[Precipice]]" music disc.}}
|{{HistoryLine||1.21.2|dev=24w40a|Breaking vaults no longer need wooden tools or higher.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.20.70|exp=Update 1.21|dev=Preview 1.20.70.21|[[File:Vault JE1 BE1.png|32px]] [[File:Vault (active) JE1 BE1.png|32px]] [[File:Vault (unlocking) JE1 BE1.png|32px]] [[File:Vault (ejecting) JE1 BE1.png|32px]] Added vaults.}}
|{{HistoryLine|||dev=Preview 1.20.70.22|[[File:Vault JE2 BE2.png|32px]] [[File:Vault (active) JE2 BE2.png|32px]] [[File:Vault (unlocking) JE2 BE2.png|32px]] [[File:Vault (ejecting) JE2 BE2.png|32px]] Changed the textures of vaults to distinguish them from [[trial spawner]]s.}}
|{{HistoryLine||1.20.80|exp=Update 1.21|dev=Preview 1.20.80.20|[[File:Vault JE3 BE3.png|32px]] [[File:Vault (active) JE3 BE3.png|32px]] [[File:Vault (unlocking) JE3 BE3.png|32px]] [[File:Vault (ejecting) JE3 BE3.png|32px]] Changed the textures of vaults to further distinguish them from trial spawners.}}
|{{HistoryLine|||dev=Preview 1.20.80.22|Vaults no longer eject more than one unstackable item per unlock.}}
|{{HistoryLine||1.21.0|dev=Preview 1.21.0.20|[[File:Vault JE5 BE4.png|32px]] [[File:Vault (active) JE4 BE4.png|32px]] [[File:Vault (unlocking) JE4 BE4.png|32px]] [[File:Vault (ejecting) JE4 BE4.png|32px]] Changed the textures of the vault to match the colors used in [[ominous vault]]s.}}
|{{HistoryLine|||dev=Preview 1.21.0.22|Vaults are now available without using the "Update 1.21" experimental toggle.
|[[File:Vault JE6 BE5.png|32px]] [[File:Vault (active) JE5 BE5.png|32px]] [[File:Vault (unlocking) JE5 BE5.png|32px]] [[File:Vault (ejecting) JE5 BE5.png|32px]] Updated textures to fix inconsistencies across all states.}}
|{{HistoryLine|||dev=Preview 1.21.0.24|Vaults can now eject the new "[[Precipice]]" music disc.}}
}}

== Issues ==
{{issue list}}

== Trivia ==
* During unseen development, the vault's texture had blue eyes, but the eyes were later changed to be orange to match the eyes seen on the [[trial spawner]].<ref>{{Tweet|kingbdogz|1751177169651298356|The original key texture was never aimed at the Deep Dark, it's just that an older texture of Vaults had blue eyes instead of orange ones. We opted to change it so that both Vaults and Trial Spawners had the same eye color.|January 27, 2024}}</ref>
* The vault was inspired by {{w|Gashapon|gashapon machines|newtab=1}}, which are vending machines that dispense capsuled toys.<ref>https://www.youtube.com/watch?v=bBr8BBrk1v8</ref>

== Gallery ==
==== Before 24w13a/1.21.0.20 ====
<gallery>
Vaultrender2.png|A vault, as it appeared in [[trial chambers]].
</gallery>

==== Before 24w11a/1.20.80.22 ====
<gallery>
Vaultrender.png|A vault, as it appeared in [[trial chambers]].
</gallery>

==== Before 24w09a/1.20.80.20 ====
<gallery>
Vault from Trial Chamber Render.png|A vault, as it appeared in [[trial chambers]].
Vault with particles JE2 BE2.png|An active vault block with particles.
</gallery>

==== Before 24w06a/1.20.70.22 ====
<gallery>
Vault render.png|A vault, as it appeared in [[trial chambers]].
Vault with particles JE1 BE1.png|An active vault block with particles.
</gallery>

=== Screenshots ===
<gallery>
File:Vault in hidden room.png|A vault in a hidden room.
File:Active vault in hidden room.png|The same vault, activated.
File:Trial Chambers Vault Pedestal Screenshot.png|A vault on a pedestal.
File:Kai Zuri Efe Steve vault.png|[[Kai]], [[Zuri]], [[Efe]], and [[Steve]] looting a vault.
</gallery>

=== Development images ===
<gallery>
The Vault.png|A vault in the trial chambers.
The Vault Dispensing Loot.png|A vault giving players loot.
The Vault Locked.png|A vault after being unlocked.
</gallery>

=== In other media ===
<gallery>
File:Minecraft characters open the trial vault.png|[[Ari]] and [[Sunny]] open a vault.
File:Approaching the vault.png|Sunny, [[Kai]], [[Steve]], [[Makena]], and [[Efe]] approaching a vault, from the [[Tricky Trials Update Official Trailer]]
</gallery>

=== Concept artwork ===
<gallery>
Vault concept art.png|Vault concept art.
</gallery>

== References ==
{{reflist}}

== Navigation ==
{{Navbox blocks|utility}}

[[Category:Block entities]]
[[Category:Utility blocks]]
[[Category:Generated structure blocks]]
[[Category:Light sources]]

[[de:Tresor]]
[[es:Arca]]
[[fr:Coffre-fort]]
[[ja:宝物庫]]
[[pt:Cofre]]
[[ru:Хранилище]]
[[uk:Сховище]]
[[zh:宝库]]
