question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Minecraft "local" coordinates

See original GitHub issue

In 1.13, Minecraft has added Local coordinates, which is a third coordinate system (in addition to relative and absolute coordinates). It uses caret (^) notation, is centered on the player’s head, and rotates with the head! Here is the wiki’s 1-line explanation:

For caret notation, they are along axes originating in the center of the target’s head and pointing leftwards, upwards, and forwards, respectively, changing with the head’s rotation.

A few examples:

  • ^0 ^0 ^0 is the player’s head
  • ^3 ^0 ^0 means 3 blocks to the left of the player’s left “ear”
  • ^0 ^0 ^5 means 5 blocks “forward” in the direction the player is currently looking

In my opinion, the best use of this is to change the default position to a block that says “In front of me” and have that map to something like ^0 ^0 ^5. That way, beginners don’t have to learn relative and absolute coordinates to start placing stuff in an intuitive way. They could do things like “Place [dirt] [in front of me]” and that would make the block appear in a visible location no matter their position and orientation. Major win!

Wiki paragraph on caret notation 5-minute explanation video And the good stuff… example of what you can do with this

Cowboom is in the past. This is the end game.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Jaqstercommented, Apr 2, 2020

So great to see you on our repos Guillaume!!! We miss you 😃

0reactions
abchatracommented, Aug 21, 2020

Next minecraft sync meeting?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Local coordinates (aka caret notation) - Minecraft: Java Edition
To me local means it's position and orientation relative to the executor of a given command. In the case of a player this...
Read more >
Coordinates - Minecraft Wiki - Fandom
Coordinates numerically represent a location in a dimension. ... or relative to the command source, using relative world coordinates or local coordinates.
Read more >
Minecraft Snapshot 18w02a
If you use a local coordinate in a command, it comes from your feet by default. That means that ^ ^ ^ is...
Read more >
How to use ^^^ coordinate systems for motion nbt - Arqade
For the position, you can use the NBT tag " Pos ", because that can be read with data get . The rest...
Read more >
How to Enable Coordinates on Your Minecraft Bedrock Server
In console, run the command gamerule showcoordinates true . Show Coordinates Command; You will now be able to see coordinates in-game as shown...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found