Mojira Archive
MC-278759

NBT arrays can't be expanded via set/give wrong error

Overview:
When trying to expand an allocated NBT array, it will give the wrong response.

 

To Reproduce:

/data modify storage nbtbug array set value []
/data modify storage nbtbug array[0] set value "value"
Returns "Nothing changed. The specified properties already have these values"
/data get storage nbtbug array[0]
Returns "Found no elements matching array[0]"

 

Expected either:
The error states something like "Nothing changed. Arrays cannot be expanded"
Or it succeeds and data get storage nbtbug array[0] successfully returns "value"

Unresolved

Immodial

2024-12-08, 01:50 AM

2024-12-10, 08:23 AM

1

1

Confirmed

Normal

Platform

Commands

1.21.4

-