I’m trying to make a multiplayer mini-game map. The solo player can activate command blocks to give harmful effects to everyone but themself. I’m using the [name=!] command, but I was wondering if there was something more efficient? If the roles of players were to rotate, say, if someone new became the solo player, is there a better way than re-inputting the new player’s name every time? Or am I stuck using the command I already use?
Apologies if this was confusing.
Minecraft – quicker alternative for the [name=!] command
minecraft-bedrock-editionminecraft-commands
Related Topic
- Minecraft Java Edition – Agrarian Skies World Seed
- Minecraft Java Edition – How to Use Exclamation Marks in Minecraft Commands
- Minecraft : Problem with 1.9 command blocks
- Minecraft – What would be the easiest way to detect if a player breaks a block in Minecraft 1.16
- Minecraft – My command blocks are forgetting coordinates!
Best Answer
You could use tags, or this command:
effect @a[c=!1] poison 100 1
The
c=
means closest players, soc=2
is the closest 2 players, andc=!1
means not the closest one player.