Mojira Archive
MC-129232

Command NBT comparisons that include strings or numbers always fail

Testing for the presence of a compound or the emptiness of a list works as expected; testing for numerical or string values always fails. As such:

Always fail

@a[nbt={OnGround:1b}]
@e[type=item,nbt={Item:{id:"minecraft:stone"}}]

Work as expected

@a[nbt={}]
@a[nbt={Inventory:[]}]
@e[type=item,nbt={Item:{}}]
@e[nbt={ArmorItems:[{}]}]

Fixed

Jerry Cheng

2018-05-08, 05:31 PM

2018-05-10, 01:23 AM

2018-05-09, 06:59 PM

6

4

Confirmed

nbt

Minecraft 18w19a

Minecraft 18w19b