I am making a Minecraft map and I made a minigame. I have this automatic effect to give infinite regeneration. I want to exclude the people playing the game from regeneration.

The command I had is

effect give @a Minecraft:regeneration 10 255 true

Although it took a long time i finally figured it out. The exclamation mark (!) character is used for not. So, the command is:

effect @a[team=!team1] minecraft:regeneration 10 255 true

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.