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

Effecting a player within a certain radius of coordinates far away from the command block - Three Men Standing with Cloudy Sky Background

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"

Effecting a player within a certain radius of coordinates far away from the command block - Low angle of young male sportsman in professional uniform sitting on sports seat of basketball court and spinning ball while looking away
Effecting a player within a certain radius of coordinates far away from the command block - From above of crop concentrated player in uniform choosing trajectory of stone movement while playing curling on ice rink
Effecting a player within a certain radius of coordinates far away from the command block - Dreamy woman lying on floor near vinyl record player



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 Command
  • Test if Players are within 10 blocks. In this example, we will test to see if there are any players within a 10 block radius with the following command: /testfor @a[r=10] ...
  • Test if Mooshrooms are within 50 blocks. ...
  • Test if Nearest Player is at Level 20 experience.


  • How 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