@Skylinerw
  @Skylinerw
Skylinerw | 14w02c - Testing For Player NBT Data @Skylinerw | Uploaded 10 years ago | Updated 12 hours ago
Command syntax:

/testfor @e[type=EntityName] {dataTags}

For players, you can just use regular player selectors:

/testfor @p {dataTags}

Unfortunately, dataTags of this sort are not checked as a parameter within the selector, meaning that you can only CHECK for dataTags using the /testfor command. This means you cannot teleport a mob based on their NBT tags, only activate further mechanisms which will affect all mobs.

This video displays the different types of tags you can detect. There is a bug with a large number of them (but not all) that requires you to label the NBT tag-types. You can find a full list of tags and tag-types here:

Players & Items: http://minecraft.gamepedia.com/Player.dat_format

Entities (players have most of these tags as well): http://minecraft.gamepedia.com/Chunk_format

Forum Topic: http://www.minecraftforum.net/topic/2289313-14w02c-testfor-nbt-data
14w02c - Testing For Player NBT Data1.4 Snapshot - Anvil1.2 Snapshot - NEW Villager Door AIBDubs - Creative Server: Redstone ApplicationProof of Concept - Trapdoor Elevator1.3 Snapshot - Rotated Logs1.2 Snapshot - Upside-Down StairsMinecraft Tutorial - Underwater Vertical WireMinecraft Tutorial - Block Destruction W/ Pistons1.2 Snapshot - NEW Breedable Wolves1.3 Snapshot - Dispensable Liquids@Alphabot6 - Detecting Worldborder Size

14w02c - Testing For Player NBT Data @Skylinerw

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER