1

/testfor command problems

YinCreations's Avatar YinCreations8/23/13 2:26 am
1 emeralds 8.2k 12
4/10/2014 2:41 pm
byBrutec's Avatar byBrutec
I've seen peeps use the /testfor command to activate redstone. However I need to try this so I can activate redstone. The question is, how?

P.S. I am trying to do it with coordinates.
Posted by YinCreations's Avatar
YinCreations
Level 2 : Apprentice Crafter
0

Create an account or sign in to comment.

12

1
04/06/2014 10:05 pm
Level 1 : New Miner
foxbro132
foxbro132's Avatar
Uh, how do I use this for a score of 200 on scoreboard?
1
04/06/2014 10:21 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
Just make the command /testfor @a[score_*objectiveName*_min=200]. The actual mechanism will look the same, just change the command. Also, next time please make a new thread, rather than bumping an old one from almost 6 months ago.
1
04/10/2014 2:41 pm
Level 64 : High Grandmaster Crafter
byBrutec
byBrutec's Avatar
that's for a score of 200 +

if you want to use a score of exactly 200 you want to use:

/testfor @a[score_*objectiveName*_min=200,score_*objectiveName*=200]

min and max is 200 so the only option is 200
1
11/16/2013 6:40 am
Level 35 : Artisan Birb
Karrfis
Karrfis's Avatar
you need to give it a ticking redstone signal the nest way to do this is with a clock


it desnt matter what you use it for it still needs the ticking redstone signal

i use and explain it in here

http://www.planetminecraft.com/blog/ful ... ston-door/
1
11/16/2013 6:30 am
Level 19 : Journeyman Toast
BreakfastPizza
BreakfastPizza's Avatar
Look at this video. This will show you a few stuff.....
http://www.youtube.com/watch?v=SDEp2szb ... Egxpwk_6WA
1
11/16/2013 6:29 am
Level 34 : Artisan Engineer
MustardSheep
MustardSheep's Avatar
Yes, the output stays at 1 because you didn't run your command when you were out of range.

That's why you've to use a clock, so every 4 ticks (for example) the command block will test if you're in a range of 6.






If you prefer to use a button, there is another way ; place a redstone torch on the side of your command block and a redstone dust to link the torch to the secondary input of your comparator.

1
11/14/2013 5:01 pm
Level 13 : Journeyman Engineer
fire_fly365
fire_fly365's Avatar
Its not working for me. I put in /testfor @a[r=6] and the comparator just stayed on even when I was out of range. Any ideas?
1
08/23/2013 11:03 am
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
you can also use this to detect lots of other things, like what level a player is, for ex.
1
08/23/2013 2:40 am
Level 34 : Artisan Sailor
SlyTurtlesZZ
SlyTurtlesZZ's Avatar
/testfor @a[r=5] will test for players in a 5 block range of the command block that is being activated. If it succeeds to find a player in the range, it transmits a redstone signal to a comparator placed next to the command block. /testfor @a[coordinates] tests for players at a specific coordinate. If it succeeds it also transmits a redstone signal. Hope this helped.
1
08/23/2013 2:48 am
Level 2 : Apprentice Crafter
YinCreations
YinCreations's Avatar
Ok. Turns out it was the command I messed up. Forgot to put the coordinates in the brackets. Thanks.
1
08/23/2013 2:33 am
Level 28 : Expert Toast
markandminecraft
markandminecraft's Avatar
Use a comparator, it gives off a signal if it detects a player in the coordinates
1
08/23/2013 2:37 am
Level 2 : Apprentice Crafter
YinCreations
YinCreations's Avatar
Do I keep the front torch on or off? And where

P.S. Knew that but now, this is all I need to know.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome