Minecraft Blogs

How to use testfor (Tutorial)

  • 2
  • 1
  • 2
avatar NorthPew
Level 47 : Master Button Pusher
This is a tutorial how to use testfor for players!

You need:
Command_block, (give "@p or player name" command_block or "137 works on 1.7.10 and lower versions" 2 )
Gamemode 1,
One block of choice,
Redstone repeater,
Redstone comparator,
Redstone dust,
Redstone torch,

First do a redstone delay.
And after that set a command block
on the redstone delay and then
you write: /testfor @p[X,Y,Z,1] I choice (testfor @p[-322,3,-630,1])
In the command block screen.
After that place a redstone comparator
on the other side of the command block
like this undefined

After that place a command block next to the comparator.
In that can you write example title @a / tellraw @a 
I use /title @a title

And I said that you need a block, you use it for example for the cheackpoint or spawn but you dont need to have a block if you dont want.

I Think That This Tutorial Was Working And Have A Great Time Bye! :)

05/01/2016 11:06 pm
Level 1 : New Crafter
05/02/2016 2:01 pm
Level 47 : Master Button Pusher
:D Hope you get fun with it, you can also do more with this command, you can do a piston door that opens when you are near the testfor range.
Planet Minecraft Logo


© 2010 - 2020