1

Conditional command blocks never work for me

Hallowizer 4/4/17 3:50 am
565
4/4/2017 5:26 am
Hi! When I say conditional command blocks, I mean specifically the commands /testfor and /testforblock. The chain command blocks connected to it repeat unexpectedly. For example, when I put in a repeating and always active command block "/tp @a[x=1,y=1,z=1,r=2] 0 0 0", it keeps teleporting me, even though I am not standing at the coordinates 1,1,1, and in some cases, I have to open another program to get rid of the command block.

What are some common taboos about this? How can I fix this?
Posted by
Hallowizer
Level 26 : Expert Network
7

  Have something to say?

JoinSign in

1

RobhieMattz
04/04/2017 5:26 am
Level 26 : Expert System
/tp @a[x=1,y=1,z=1,r=1 or r=0] 0 0 0

It should only teleport u if you're standing at the exact coordinates of 1 1 1
Just put it in a repeating command block (purple) and set redstone to always active

EDIT: It's spam teleporting you coz u set ur radius to 2 coz 0 0 0 and 1 1 1 is pretty much 2 blocks away so it's still detecting u even if you're in the coordinates of 0 0 0
1

Welcome