Minecraft execute command 1.15.2 if player with tag near run clone?

kn
2

How can I make an execute command in 1.15.2 which, as soon as you activate the command block with a button, sees whether a player with tag jan is at most 7 blocks nearby and then executes a clone command?

Cr

Why don't you just do the following command?

/ execute as @p [tag = jan, distance = .7] run clone x1 y1 z1 x2 y2 z2 x3 y3 z

this execute command does exactly what you want. When running, he checks for a player with the day jan who is a maximum of 7 blocks away. And then implements the clone command

kn

Thank you