This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Apfeldstrudel's profile picture

Get turtle coords

Started by Apfeldstrudel, 22 May 2013 - 02:32 PM
Apfeldstrudel #1
Posted 22 May 2013 - 04:32 PM
Hi! The idea (if its possible and you want to add it) is to have a function that returns the turtles x,y and z coordinates. This would make mining turtles and such alot easier


Edit:gps, attatched like a wireless modem?
Kingdaro #2
Posted 22 May 2013 - 04:41 PM
This is possible by setting up a GPS system.

Even if it weren't, being able to find a turtle's position as a built-in functionality extends too far outside of the world of Minecraft itself; we know coordinates as positions in the world that are measured in blocks (or meters?). All the turtle knows is how to move and dig. It's blind, it isn't self aware, and it doesn't "think" the same wat we do, therefore being able to detect variables such as positions, player names or block IDs does not fit within the scope of the mod.

Something shouldn't be added because it makes things easier; by that logic, FTB would include a diamond generator mod. As with every other mod, you get out what you put in, and being able to type "turtle.getWorldCoords()" after crafting a relatively easily obtainable set of materials isn't very balanced.
OmegaVest #3
Posted 22 May 2013 - 04:43 PM
Or, you could use the included software to make your own GPS system. It won't cover the whole plane, which is probably what you are looking for. But, with enough resources, you can, in fact, cover most of the traversable world with gps terminals. Place them up high (like satellites) to make their ranges bigger, and reach even bedrock with little trouble, and in a fair radius.


EDIT: Damn, just too slow.
JJRcop #4
Posted 22 May 2013 - 05:04 PM
You don't even need that! [The included gps program] Just override the GPS API to instead use a stored coordinate position and rotation, and override the turtle move functions to commit to the stored position.

It's much more reliable.
Lyqyd #5
Posted 23 May 2013 - 02:25 PM
Closed.