1

/testfor command help 2

TSchweibz 2/23/15 3:39 pm
355
2/23/2015 9:58 pm
I have set up a clock to a test for command but i want that command to go to a tp command over and over like a clock, what do i put there? (Its teleporting the players head to keep forcing it to look at a spot)

Posted by
TSchweibz
Level 2 : Apprentice Miner
0

  Have something to say?

JoinSign in

9

TSchweibz
02/23/2015 9:58 pm
Level 2 : Apprentice Miner
Aw man i messed up and put in wrong coords thanks so much guys! Derp
1
TSchweibz
02/23/2015 9:49 pm
Level 2 : Apprentice Miner
*hopper clock
1
TSchweibz
02/23/2015 9:47 pm
Level 2 : Apprentice Miner
I am using a hopper block and the command block is 2 blocks away is this fine?
1
Jmal116
02/23/2015 9:42 pm
Level 34 : Artisan System
In that case, you do have the correct command. When I copied it myself, it worked perfectly.

Double check that the coordinates are correct, and double check your clock. I'd suggest using a fill clock. If you're using a comparator clock, make sure that the command block is far enough away from the comparator, and that it's actually being activated.
1
TSchweibz
02/23/2015 9:35 pm
Level 2 : Apprentice Miner
i am tying to keep having the player be teleported looking downwards but it is not working i have a clock>redstone to tp commandblock but it still doesn't work
1
Skitto493
02/23/2015 4:19 pm
Level 55 : Grandmaster Dragon
Put a comparator clock coming out of the testfor? Like Jmal said, what are you trying to do?
1
Jmal116
02/23/2015 4:12 pm
Level 34 : Artisan System
What exactly is it you're trying to achieve? I copy/pasted your command into a command block myself, and it seemed to work fine. When I put it on a fill clock, I was forced to look at the ground whenever I got close to the block at 270 21 526. If that is what you want, try checking that your coordinates are correct.
1
TSchweibz
02/23/2015 4:03 pm
Level 2 : Apprentice Miner
thank you but it's still not working

/tp @a[x=270,y=21,z=526,r=4] ~ ~ ~ 0 90

am i missing something?
1
Jmal116
02/23/2015 3:47 pm
Level 34 : Artisan System
Since you want the command to repeatedly run, I would actually suggest skipping the testfor all together. For example, if you were to do something like this:testfor @a[x,y,z,r,score_obj=#]you could instead target the same player in the /tp command. Just use the same information in the brackets so that you target the same player:tp @a[x,y,z,r,score_obj=#] x y z
If you put that tp command on the clock, you can teleport the player only if they would meet the conditions they would have to meet for a testfor.
1

Welcome