Advertisement
ronaldo1e

Testje

Jan 20th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local Pos = {...}
  2. masterServer = 0
  3. dnsServer = 1
  4. ID = os.getID()
  5. label = os.getLabel
  6. Pos.X, Pos.Y, Pos.Z = gps.locate()
  7. if turtle then
  8.     turtle.forward()
  9.     X, Y, Z = gps.locate()
  10.     if X>Pos.X then
  11.         Pos.O = 1
  12.     elseif X<Pos.X then
  13.         Pos.O = 3
  14.     elseif Z>Pos.Z then
  15.         Pos.O = 2
  16.     elseif Z<Pos.Z then
  17.         Pos.O = 0
  18.     end
  19.     turtle.back()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement