I need help with a specific minecraft testfor command
Im trying to use commands blocks, scoreboards, and redstone to give all my moderators effects when they run out. I already have the system to reapply the effects if you are in the team working but now I need to test for both being on the team moderators and not having the effect in one command block.
I tried this initially:
/testfor @a {ActiveEffects:[{Id:21b,Amplifier:20b}],Team=Moderators}
But I got an error in the output of the command block:
[17:45:02] Data tag parsing failed: Unable to locate name/value separator for string: Team=Moderators
Now please keep in mind I am not in 1.9 on my server yet meaning I do not have access to any commands related to that version. I believe this concept could be used on other servers that don't want to create their own new plugins for this and may rather use command blocks such as I have.
Pictures about "I need help with a specific minecraft testfor command"



How do you do the Testfor command in Minecraft?
2. Type the CommandWhat replaced the Testfor command?
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 test a specific item in Minecraft?
You can test whether there is a certain block at a specific location in the game using the /testforblock command in Minecraft....TestForBlock Command in Minecraft Java Edition (PC/Mac)Minecraft Redstone Tutorial | How to use testfor commands in MCPE!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ahmed akacha, Gustavo Fring, Plato Terentev, Plato Terentev
