Under Lock and Key advancement does not check for vault key_item
The bug
Using a Trial Key on a Vault that has been modified to require a different item as a key will still grant the advancement Under Lock and Key. Similarly, the advancement is not granted when the vault is unlocked by a non-default key_item.
To reproduce
*Execute these commands in the following order:
/advancement revoke @p everything
/setblock ~1 ~ ~ vault{config: {key_item:
{count: 1, id:"minecraft:dirt"}}}
/give @p trial_key
- Try unlocking the vault using the key.
Observed result
The advancement Under Lock and Key is granted.
Created Issue:
Under Lock and Key Advancement is granted even if Trial Keys aren't the correct key item
Using a Trial Key on a Vault that has been modified to require a different item as a key will still grant the Advancement Under Lock and Key.
Under Lock and KeyAdvancement is granted even if Trial Keys aren't the correct key itemUnder Lock and Key advancement is granted even if Trial Keys aren't the correct key item
Under Lock and Key advancementis granted even if Trial Keys aren'tthecorrect keyitemUnder Lock and Key advancement does not check for vault key_item
Using a Trial Key on a Vault that has been modified to require a different item as a key will still grant the
Advancement Under Lock and Key.Using a Trial Key on a Vault that has been modified to require a different item as a key will still grant the advancement Under Lock and Key. Similarly, the advancement is not granted when the vault is unlocked by a non-default key_item.
The bug
Using a Trial Key on a Vault that has been modified to require a different item as a key will still grant the advancement Under Lock and Key. Similarly, the advancement is not granted when the vault is unlocked by a non-default key_item.
To reproduce
*Execute these commands in the following order:
/advancement revoke @p everything /setblock ~1 ~ ~ vault /data merge block ~1 ~ ~ {config:{key_item:{count:1,id:"minecraft:powder_snow_bucket"}}} /give @p trial_key
- Try unlocking the vault using the key.
Observed result
The advancement Under Lock and Key is granted.
The bug
Using a Trial Key on a Vault that has been modified to require a different item as a key will still grant the advancement Under Lock and Key. Similarly, the advancement is not granted when the vault is unlocked by a non-default key_item.
To reproduce
*Execute these commands in the following order:
/advancement revoke @p everything /setblock ~1 ~ ~ vault/data merge block ~1 ~ ~{config:{key_item:{count:1,id:"minecraft:powder_snow_bucket"}}} /give @p trial_key
- Try unlocking the vault using the key.
Observed result
The advancement Under Lock and Key is granted.
The bug
Using a Trial Key on a Vault that has been modified to require a different item as a key will still grant the advancement Under Lock and Key. Similarly, the advancement is not granted when the vault is unlocked by a non-default key_item.
To reproduce
*Execute these commands in the following order:
/advancement revoke @p everything /setblock ~1 ~ ~ vault{config: {key_item: {count: 1, id:"minecraft:dirt"}}} /give @p trial_key
- Try unlocking the vault using the key.
Observed result
The advancement Under Lock and Key is granted.
testing discovered
testing discovered
testing discovered
testing discovered
Please attach a datapack to help reproduce this issue.
use this command: /setblock ~ ~ ~ vault{config: {key_item:
{count: 1, id:"minecraft:dirt"}}}
trial key will not open this vault, but the advancement will still be granted.
Similarly, it is not granted when it should if the key item is not a trial key.
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki