1
Syntax Error using SuccessCount
I'm trying to do an IF/THEN/Else using command blocks. I've seen several examples on-line but when I try them I get a syntax error. My version is 1.12.0 (Windows 10). Here's a sample of the code I'm using:
testforblock ~ ~2 ~ command_block -1 {SuccessCount:0}
I get the following: Syntax Error: Unexpected "{": at "_block -1 >>{<<SuccessCou"
Basically trying to query a command block to see if it succeeded or not. If it succeeds do this if not do something else.
Thanks in advance for any help.
testforblock ~ ~2 ~ command_block -1 {SuccessCount:0}
I get the following: Syntax Error: Unexpected "{": at "_block -1 >>{<<SuccessCou"
Basically trying to query a command block to see if it succeeded or not. If it succeeds do this if not do something else.
Thanks in advance for any help.
1
In bedrock edition, for testforblock, nbt is not supported.
You would be better off using a comparator for an if statement.
The only thing I can think of, for an if/else statement is a timer, which will be blocked by the comparator (with maybe piston) if it succeeds
You would be better off using a comparator for an if statement.
The only thing I can think of, for an if/else statement is a timer, which will be blocked by the comparator (with maybe piston) if it succeeds
