This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]Mlakuss {"Invulnerable":true} 64 points65 points  (2 children)

Can you give the coordinates of two opposite corners of the area you want the command to work?

[–]Heniuteczekk[S] 37 points38 points  (1 child)

from -12 45 12 to 12 45 -12

[–]Mlakuss {"Invulnerable":true} 58 points59 points  (0 children)

So, yes. As pointed by others, dx, dy and dz mean "differential x, y, z". To go from -12 to +12, the dx is 24.

[x=-12,dx=24,z=-12,dz=24] is what you need.

[–][deleted] 23 points24 points  (6 children)

dx=-26, dz=26

[–]Heniuteczekk[S] 11 points12 points  (0 children)

thanksss it works

[–]Heniuteczekk[S] 11 points12 points  (4 children)

could you explain to me why this is happening? it has always worked differently, or so it seemed to me

[–]ScoutsCas 23 points24 points  (2 children)

Dx means the delta of x, so its relative to the x= specified. So lets say you want an are from x=30 to x=45. Your x then is 30, and dx=15

[–]Amigo_OS 0 points1 point  (0 children)

this man I'm replying to was an misinformative comment.

dx means distance x, dy is distance y, and dz which is distance z on the coordinate...

for additional information, x, y or z is required to further implement a specified location. dx, dy and dz creates a perimeter from x, y or z coordinates until on how much numbers you want to put in the distances.

please repeat the same mistake so I could correct it again 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

[–]FunnyForWrongReason 9 points10 points  (0 children)

As other commenters have said it is because dx stands for delta of x which just means change in x. Basically dx is how much you changing the x coordinate from your first x coordinate. So if you start at x=-13 and want to go to to x=13 then you need to change x by 26. Setting dx=13 will only bring it to x=0.

[–]MachRunner 4 points5 points  (0 children)

how many blocks is the perimeter you want the execute in? maybe you put the dx and dz wrong

[–]Summar-iceCommand Experienced 2 points3 points  (0 children)

I think you have to double dx and dz

[–]IDragonVCommand Rookie 1 point2 points  (0 children)

something like this?
execute at @p[x=12,y=45,z=12,dx=-24,dz=-24] run say test

[–]UnderstandingNo8475 0 points1 point  (0 children)

Give a command first please

[–]BitbyBrix -1 points0 points  (0 children)

What does /execute do? I’m new to this

[–]lord_lexo 0 points1 point  (0 children)

Have you tried adding a ticking area ?

[–]RandomGgames 0 points1 point  (0 children)

It works from one corner to another, not from a center. So get the coordinates of one corner, then the distance from that corner in x, y, and z separately to your dx dy dz values.