There are ways to detect if a player is far from a command block or villager but how do you give an effect to a player who leaves a certain radius from another player?
Minecraft Commands – How to Give a Far-Away Player an Effect
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – How to give an effect to all players that are not in the radius of 4 around the villager
- Minecraft Java Edition – How to Detect When a Player Attacks Another Player
- Minecraft – How to /testfor a specific player in a certain radius of the command block
- Minecraft: How to give an effect to a certain player standing on a block on multiplayer
- Minecraft – How to “block off” an area with command blocks
- Minecraft – How to detect for player with custom head
- Minecraft Java Edition – How to Apply Effects to Players Under Specific Height Using Commands
Best Answer
You're gonna need execute for this one. Execute a command on the first player that selects the nearest player outside your radius and gives them the effect.
rm = minimum radius
c= count
This command gives the player outside the radius nausea. Find the other effects here: http://minecraft.gamepedia.com/Data_values#Status_effects