in the world I have 2 command blocks. one says /clear @p[x=-140,y=67,z=-22,r=2] 278 (when you are within 2 blocks of coordinate -140,67,-22 you will have a diamond pickaxe taken away from you) and the other says /tp @p[x=-140,y=67,z=-22,r=2] -147 192 -17 (so when you are within 2 blocks of coordinates -140,67,-22 you will be teleported to -147,192,-17). they are both activated at the same time, but you only get teleported to -147,192,-17 and you don't get the diamond pickaxe taken away from you. also it looks like the coordinates are links on this website
Comments 3
IMO that's working as intended.
If the command block with the TP command gets executed first, the condition of the second command block is no longer met, since your are in some other coordinates.
Simply delay the execution of the TP command block by a repeater and you're done.
Can you please either attach screenshots and/or embed the comands by
{code}
, example:{code}
/tp @p[whereever]
{code}
which will show in the comments like this: