Today I was building something with redstone for the first time since 1.7.2 released. I needed to use the "testfor" command in a commandblock but I have run into strange issues with it. I'm not sure this is a bug because I seem to be the only having this problem, so I held off on sending this to the bug tracker.
I've been messing with this for a while and this is what I found to be happening: for some reason the game will only recognize "/testfor" as a command if the only thing in the command block is "/testfor" (with or without the slash), but if I add anything else it will always tell me it is an unknown command.
I even tried using an example from the wiki, "/testfor @a[r=3]", but got the same result.
Used to test whether playername is online, or if selector has matches. A Redstone Comparator as output from a command block with this command will indicate the number of players matched by selector. For example, "testfor @a[r=3]" will output the number of players within 3 meters of the command block. More information about selectors may be found here.
The output of the command is redstone signal, not a message
The output of the command is redstone signal, not a message
Oh sorry, I meant that the "previous output" on the gui tells me the command is unknown. I have a comparator coming from the command block that does not activate because of this.
Ok I think i found the problem. I tried replacing it like you said but it didnt work. But then i tried placing and setting the commandblock before attaching any redstone and it worked. Not sure why but it did.
Thanks for helping, now i'll be more careful with setting things up.
Rollback Post to RevisionRollBack
MEEAP
To post a comment, please login or register a new account.
I've been messing with this for a while and this is what I found to be happening: for some reason the game will only recognize "/testfor" as a command if the only thing in the command block is "/testfor" (with or without the slash), but if I add anything else it will always tell me it is an unknown command.
I even tried using an example from the wiki, "/testfor @a[r=3]", but got the same result.
Does anyone know why this is happening?
MEEAP
-
View User Profile
-
View Posts
-
Send Message
ModeratorThe output of the command is redstone signal, not a message
Oh sorry, I meant that the "previous output" on the gui tells me the command is unknown. I have a comparator coming from the command block that does not activate because of this.
MEEAP
-
View User Profile
-
View Posts
-
Send Message
ModeratorOk I think i found the problem. I tried replacing it like you said but it didnt work. But then i tried placing and setting the commandblock before attaching any redstone and it worked. Not sure why but it did.
Thanks for helping, now i'll be more careful with setting things up.
MEEAP