Mojira Archive
MC-268183

Vaults item_key checks for all components instead of only defined components

While playing around with Vaults and Trial Keys, I discovered an inconsistency about NBT checks.

Vaults' item_key tag checks if all NBT tags match, instead of just the defined ones in the tag.

I explain myself:

  1. Setblock a vault with 
    {config:{key_item:{id:"minecraft:trial_key",Count:1,tag:{Tags:["test"]}}}}
  2. Give yourself a trial key with 
    {Tags:["test"],display:{Name:'{"text":"Super key!"}'}}
    
    • It won't work, as the vault checks for all NBT
  3. Now, give yourself a key with just 
    {Tags:["test"]}
    
    • It will work, because the whole NBT match

That's an issue if a player renames their key item, because it will no longer match the vault's key item.

Unresolved

Yanis

2024-01-31, 07:30 PM

2025-01-16, 01:50 PM

38

14

Confirmed

Normal

1225151

Expansion B

Commands, Items

command, item

24w05a - 25w03a24w05a, 24w05b, 24w06a, 24w07a, 24w09a, 24w11a, 24w12a, 24w13a, 1.20.5, 1.21, 24w40a, 1.21.3, 25w03a

-