How can I use /testfor to see if someone is holding a diamond in their main hand? [duplicate]

How can I use /testfor to see if someone is holding a diamond in their main hand?


Solution 1:

Unfortunately, MCPE doesn’t support NBT tags and therefore this is not possible.

Source: Commands/testfor on Minecraft Gamepedia