Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --1:z+ 2:x- 3:z- 4:x+
- --Functii
- function mergi(fata)
- if fata==1 then
- turtle.forward()
- else
- turtle.down()
- end
- end
- function sapa(fata)
- if fata==1 then
- turtle.dig()
- else
- turtle.digDown()
- end
- end
- function mergi_coord(X_dorit, Y_dorit, Z_dorit, prioritate_Y)
- --Mergi pe X
- if my_X>X_dorit then
- end
- end
- function turn(poz)
- if poz==heading then
- return
- end
- if poz==heading-1 then
- turtle.turnLeft()
- end
- if poz==heading+1 then
- turtle.turnRight()
- else
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- function vino_acasa()
- --vino pe X
- end
- function load_coord()
- --load home
- local home_file = fs.open("home.lua", "r")
- home_X=file.readLine()
- home_Y=file.readLine()
- home_Z=file.readLine()
- print(home_X)
- print(home_Y)
- print(home_Z)
- end
- load_coord()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement