mojira.dev
MC-270062

Ominous vault created by player using /setblock or debug stick opens with a normal vault key and has normal vault loot

Ominous vault summoned using commands like /setblock should open if used the correct key

The vault does not open even after using the ominous key

Steps to reproduce

1) Run

/setblock ~ ~ ~ minecraft:vault[ominous=true]

to summon an ominous vault
2) Try to open the vault with an ominous vault key and observe that it does not work
3) Try to open the vault with a normal vault key and observe that it opens then

Expected results

The vault would only open with an ominous vault key

Observed results

The vault opens with a normal vault key

Linked issues

MC-270092 Ominous vaults created from debug sticks do not open with an ominous key Resolved MC-270133 Ominous Vaults created by the player are unlocked using normal Trial Keys and use normal Vault loot tables Resolved MC-270157 Ominous Vaults that are placed can only be unlocked with a normal trial key Resolved MC-270829 Ominous Vaults summoned with /setblock do not work properly Resolved MC-270899 Ominous vault cannot be opened with ominous key Resolved

Comments 6

Workaround:

/setblock ~ ~ ~ vault[ominous=true]{config:{key_item:{count:1,id:"ominous_trial_key"},loot_table:"minecraft:chests/trial_chambers/reward_ominous"}}

That would be too much work for people that aren't that fluent in code.

what about the /give command?

Using the following command:

/setblock ~ ~ ~ vault[ominous=true,]

Also exibits the same bug behavior than /setblock ~ ~ ~ vault[ominous=true]{config:{key_item:{count:1,id:"ominous_trial_key"},loot_table:"minecraft:chests/trial_chambers/reward_ominous"}}. can confirm on 1.21.7

heveru

(Unassigned)

1216291

Confirmed

Expansion B

Normal

Block states, Commands

ominous-vault

24w13a, 1.20.5 Pre-Release 3, 1.20.5 Release Candidate 1, 24w18a, 1.21, 24w34a, 1.21.4

Retrieved