mojira.dev

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

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.

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

@unknown: No, that's an integer.

Ah.. that makes sense 😃 thanks

Robin Steiner

(Unassigned)

Unconfirmed

Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 14w05a, Minecraft 14w05b

Retrieved