how to check what block a player is looking at commands code example Example: check for command block player /testfor @a[x=64,y=10,z=64,r=5]