mojira.dev
MC-269641

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.

Linked issues

Attachments

Comments 4

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

sandro38

(Unassigned)

Confirmed

Advancements

Advancements, Vault

24w12a

Retrieved