Mojira Archive
MC-94027

"carried" tag of Enderman reads value as string and short

If I summon an enderman with this command:

/summon enderman ~ ~ ~ {carried:"minecraft:stone"}

The enderman is summoned with the carried block as it should be

But if I try to detect this same enderman with this command:

/execute as @e[type=enderman,nbt={carried:"minecraft:stone"}] run say enderman with stone

The chat gives me this error:

Enderman did not match the required data structured

If I try the same command with numeric ids the command works:

/execute as @e[type=enderman,nbt={carried:1s}] run say enderman with stone

The expected behavior is that reading the carried tag as short will be removed with MC-75430 getting fixed