How is diagonal block distance measured in minecraft?

//ads -- adsterra.com -- native banner
?>
For example, let's say you start at point A. You move 5 blocks north and 12 blocks east and arrive at point B. Is it 13 because of the Pythagorean theory, or is it measured some other way? Does this work with vertical distances too? The reason I'm asking this is because I'm having trouble with my mob trap in the sky and im trying to figure out the distances i can still move while having the spawner work.
Pictures about "How is diagonal block distance measured in minecraft?"



How do you find the distance of a diagonal in Minecraft?
Imperial/U.S customary unitsBlocksLength (approx.)1 block\u2248 3 feet\u2248 36 inches1 pixel1\u204428,160 miles0.2 feet3 more rowsWhat is one block distance in Minecraft?
The value of the Distance from block can be reported in millimeters (mm) or inches. The units of millimeters (mm) or inches will appear in the Monitor Console.What units does the distance from block use?
It has been well established that the length of the sides of one solid block in Minecraft is 1m, making its volume 1m\xb3. This is supported by Gamepedia. The height of the player is 1.8 blocks, thus 1.80 meters. The wiki also mentions voxels, which is kind of like a 3D pixel.What is Minecraft 1.18 Simulation Distance
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ono Kosuki, Yehor Andrukhovych, Karolina Grabowska, Monstera