Advertisement
endertr1ks

test fonction

Aug 3rd, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local orientation = 0
  2. local axex = 0
  3. local axay = 0
  4.  
  5. function forward()
  6. turtle.dig()
  7. turtle.forward()
  8.     if orientation == 0 then
  9.     axex = axex + 1
  10.     elseif orientation == 1 then
  11.     axey = axey + 1
  12.     elseif orientation == 2 then
  13.     axex = axex - 1
  14.     elseif orientation == 3 then
  15.     axey = axey - 1
  16.     end
  17. turtle.digUp()
  18. end
  19.  
  20. while axex ~= 10 do
  21. forward()
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement