Advertisement
Susceptance

turtle_goto

Sep 15th, 2022 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. os.loadAPI("turtlelib.lua")
  2.  
  3. local tArgs = { ... }
  4. if #tArgs < 3 then
  5. print("provide destination coords!")
  6. return
  7. end
  8.  
  9. targetPos = {}
  10. targetPos["x"] = tArgs[1]
  11. targetPos["y"] = tArgs[2]
  12. targetPos["z"] = tArgs[3]
  13.  
  14. currentPos = turtlelib.GetPos(nil)
  15. turtlelib.Goto(targetPos, currentPos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement