Bimgo

Minecraft-Computercraft-Turtle location

Jan 19th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. -- for work, this turtle need gps stations
  2.  
  3.  print("Man I am so lost right now!")
  4.  local x, y, z = gps.locate(5)
  5.  if x == nil then
  6.    print("Nope, still lost :(")
  7.  else
  8.    print("I am at ",x," ",y," ",z)
  9.  end
Advertisement
Add Comment
Please, Sign In to add comment