Does anyone know a command that recognizes where you are and then does something? It is version 1.15.2
/ execute if entity @a [x = x_coordinate_here, y = y_koordinate_here, z = z_koordinate_here, distance = .1] run YOUR_COMMAND
Thank you.
Can this be done with a whole area?
Think if you specify a radius around the command block in the square brackets instead of the coordinates.
There's your area within a (defined by you) radius around the command block.
It looks like this, for example: [r = 5]
You can of course specify any number instead of 5 as a radius.
The number at "distance:." is the radius around the point. Give e.g. 10, then you have a 10 block radius area around the specified point. (You must leave the two dots in front of the number, these mean something like "WITHIN the distance")
Distance is the radius around the point.
OK thanks.
I know that with r and not with distance lol
Can that be both