Minecraft – /execute with Delta coordinates not working properly

minecraft-commandsminecraft-java-edition

I'm trying to make player detection in a certain area via delta coordinates (x, y, z – dx, dy, dz) but I can't seem to get it to work properly. The command will result in the player being affected inside the area and/or along a certain axis (y or z) (in one or both directions).

This is the command I'm using:

*/execute @p[x=736,y=56,z=42,dx=754,dy=56,dz=60] ~ ~ ~

This results in detection from x=736,y=56,z=42 and further along the positive axes of x and z.

Best Answer

delta is the size of the area, not a second set of coordinates. Use dx=1, dy=1 and dz=1 instead.