How do I calculate the center in Minecraft?

We
6

How do I calculate the center of a point in Minecraft based on the 2 coordinates?

Can someone possibly calculate this?

Coordinate A at the bottom -363 4 -395

Coordinate B in the air: 278 255 295 (278 4 295 at the bottom)

X = -363 = one direction

Y = 4 = height

Z = -395 = other direction

We

If you have a server you can use Worldedit (// center [ID])

En

Or just install WorldEdit for SP.

We

Jo

ta

Do you look here: https://fersch.de/vorlage?nr=Abstand2punkte3&nrform=

Or watch the video:

Al
1

So we have two points P1 and P2.

P1 = [-363, 4, -395]
P2 = [278, 255, 295]

Center point M:
X = (-363 + 278) / 2 = -42.5
Y = (4 + 255) / 2 = 129.5
Z = (-395 + 295) / 2 = -50

So the middle is at

X: -42.5
Y: 129.5
Z: 50.0

Al
-2

You can also easily calculate it - it's not that hard