top of page

Java Coding Class: X Y Z coordinates

Updated: Aug 6, 2021

Hi everyone! Recently a lot of people in my class have been asking me "how do I do this command but in a different place?" or something like that. Every command in minecraft that allows you to change the position of something uses X Y Z coordinates. Sometimes commands don't make it obvious. For example in the summon command you can choose where to summon the entity, but it's not obvious where you can choose to set it's location. The X Y Z system is based around a 3D environment, and is able to pinpoint any location on a 3D scale, no matter how small the object is. That is why the X Y Z system is so abundant in minecraft commands. This is something that is taught in plane geometry, and it is a little bit confusing but eventually you will get the hang of it.

Each letter represents an axis, or 'line'.