mojira.dev
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

Linked issues

Comments 11

The MC-75430 doesn't mention all the things that happen in the 1.9 snapshots, like the thing that is unable to detect if a enderman does not carry a block.

Confirmed in 1.9 Pre-2

Confirmed in 1.9 Release

1 more comments

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

The carried:0s part is now MC-111064

Confirmed for 17w43b Snapshot

Confirmed for 17w46a Snapshot

Is Fixed, tested with this command:

/execute as @e[type=enderman,nbt={carriedBlockState:{Name:"minecraft:grass_block"}}] run say enderman with grass

Autopoietico

(Unassigned)

Confirmed

carried, enderman, nbt, short, string

Minecraft 15w49b, Minecraft 15w50a, Minecraft 15w51a, Minecraft 15w51b, Minecraft 16w02a, ..., Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45b, Minecraft 17w46a

Minecraft 17w47a

Retrieved