The bug
When you summon an enderman with carried:0s, it is treated as if the enderman is holding nothing, however if the enderman is holding nothing the carried tag is not written to the NBT data.
This is pretty inconsistent because if 0s is treated as holding nothing, you would expect it to be saved to NBT if the enderman is holding nothing as well.
From MC-94027:
In 1.8 versions is possible to test if a enderman don't carries a block
How to reproduce
- Summon an enderman holding nothing
/summon enderman ~ ~ ~ {carried:0s}
- Try to test for carried:0s
/testfor @e[type=enderman] {carried:0s}
1.13:
/execute as @e[type=enderman,nbt={carried:0s}] run say enderman with nothing
→ The command fails
- relates to
-
MC-94027 "carried" tag of Enderman reads value as string and short
- Resolved