SHARE
TWEET

Untitled

a guest Jul 16th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --1:z+  2:x-   3:z-  4:x+
  2.  
  3.  
  4.  
  5. --Functii
  6. function mergi(fata)
  7.     if fata==1 then
  8.         turtle.forward()
  9.     else
  10.         turtle.down()
  11.     end
  12. end
  13. function sapa(fata)
  14.     if fata==1 then
  15.         turtle.dig()
  16.     else
  17.         turtle.digDown()
  18.     end
  19. end
  20. function mergi_coord(X_dorit, Y_dorit, Z_dorit, prioritate_Y)
  21.     --Mergi pe X
  22.     if my_X>X_dorit then
  23.        
  24.     end
  25. end
  26. function turn(poz)
  27.     if poz==heading then
  28.         return
  29.     end
  30.     if poz==heading-1 then
  31.         turtle.turnLeft()
  32.     end
  33.     if poz==heading+1 then
  34.         turtle.turnRight()
  35.     else
  36.         turtle.turnRight()
  37.         turtle.turnRight()
  38.     end
  39. end
  40.  
  41. function vino_acasa()
  42.     --vino pe X
  43. end
  44. function load_coord()
  45.     --load home
  46.     local home_file = fs.open("home.lua", "r")
  47.     home_X=home_file.readLine()
  48.     home_Y=home_file.readLine()
  49.     home_Z=home_file.readLine()
  50.     print(home_X)
  51.     print(home_Y)
  52.     print(home_Z)
  53. end
  54.  
  55. load_coord()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top