Using Mathematical Operations in /testfor command in Minecraft

//ads -- adsterra.com -- native banner
?>
Say I have the objective test
which is stat.killEntity.Zombie
. I also have another objective test2
which is also a stat.entityKilledBy.Zombie
. Can I make a new objective, which is a dummy
, and the value of that is test + test2
. Is this possible? If not, what is the best alternative?
Pictures about "Using Mathematical Operations in /testfor command in Minecraft"



What replaced the Testfor command in Minecraft?
The /testfor command became obsolete in Minecraft 1.13, and has been replaced by the /execute command*. It will do the same as typing /testfor @e {SelectedItem:{id:"<item>"}} and then putting a comparator to the command block with the command, and then running the command which you wanna run.How do you use conditional in Minecraft?
"Conditional": A command block in conditional mode will only execute its command after the command block behind it has executed successfully. ("behind it" in the sense of opposite to the direction the command block is facing, regardless of chain direction or even if chaining is occurring).How do you use the command Testfor in Minecraft?
Type the command in the chat window and press the Enter key to run the command. Once the cheat has been entered, the testfor command will check for mooshrooms. You will see the message "Found Mooshroom" appear in the lower left corner of the game window for each mooshroom found within 50 blocks of you.Target Selectors | Minecraft Bedrock | Command Augments | dx, dy, dz, r, rm, type, family, l, lm etc
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Vanessa Loring, Anete Lusina, Sora Shimazaki, Katerina Holmes