Effecting a player within a certain radius of coordinates far away from the command block

//ads -- adsterra.com -- native banner
?>
I thought it was
/effect @a[x=0, y=0, z=0, r=0] 4 10 3
and I know for a fact that the chucks are always loaded, but it doesn't work. In minecraft
Best Answer
Spaces are used to separate different arguments in a command. The way that Minecraft will be trying to parse your command currently is:
Command: /effect
Player: @a[x=0,
Effect: y=0,
Seconds: z=0,
Amplifier: r=0]
HideParticles: 4
? 10
? 3
The first error it notices is that @a[x=0
is an invalid selector/name, so it gives the error message "The entity UUID provided is in an invalid format".
To fix your command, you should remove the spaces after the commas in the selector. Try this command:
/effect @a[x=0,y=0,z=0,r=0] 4 10 3
Pictures about "Effecting a player within a certain radius of coordinates far away from the command block"



How do you use the distance command block?
Range 2 is the range a player want for a command block under a floor. Keep in mind that it will produce a globe shaped trigger area (rather than a cube), so a range of 2 makes an approximately 5\xd75\xd75 area and a range of 1 makes a 3\xd73\xd73 area (more like a + pattern with an extra block above and below the center).Do command blocks have a range?
2. Type the CommandHow do you test a player for a radius in Minecraft?
Using the effect command in Minecraft In order to give an effect, the syntax is: "/effect give <targets> <effect> [seconds] [amplifier] [hideParticles]". In order to remove an effect, it is: "/effect clear <targets> [effect]". The target tag refers to the username of the player.Spawn Protection / Anti-Griefing System | Minecraft Tutorial 1.15 Command
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ron Lach, Andrea Piacquadio, SHVETS production, Victoria Borodinova