Add a /not command. The syntax would be as follows:
/not <command: command>
The command would invert the true/false output of the command. For example, a /testfor @e[type=fox] would normally produce true. /not /testfor @e[type=fox] would then make it produce false. The command parameter would be like the same thing we use for the /execute command, have the slash be optional. This would not be useful for putting in chat, but useful for using in command blocks as to not have to set up a small redstone circuit for not gates, as that can be a big inconvenience in large command block projects. This would serve as a better replacement for the comparator output to redstone torch powering another command block system. Although this works almost as well (there are still a few things not quite right about that setup), the /not command would make things better.
Something of this sort may already exist on Java edition, so if it does I apologize but would also like to see it on Bedrock Edition.
Please sign in to leave a comment.
5 Comments