There are a few bugs when i test for a player with specific NBT-Tag... for example, the motion and the Sleeping tag aren't working correctly
Comments 5
Unable to reproduce, assuming @unknown's comment helped.
Make sure you're using
{Something:1b}
instead of
{Something:1}
to specify that the type you're looking for is byte.
If you are still having this issue, please open a new ticket and provide details about the issue you are experiencing using the Bug Report Guidelines Here.
Thats very strange... because it works fine if I write {SelectedItemSlot:0} and this is also a byte-Type
Tags require you to specify the type of tag they are when using /testfor. For example, the Sleeping tag is a byte, so to testfor someone sleeping you would use {Sleeping:1b}
Just writing {Sleeping:1} defaults to a string tag, which doesn't exist.