TheDarBear

autoOrient.lua

Mar 4th, 2022 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local res, data = turtle.inspectDown()
  2. if(res == true) then
  3. local nm = data.name
  4. if(nm == "create:dolomite") then
  5. print("Docked at Dolomite Station")
  6. os.loadAPI("moveApi")
  7. moveApi.savePosition(0,-1,0,52,0)
  8. elseif(nm == "botania:livingwood") then
  9. print("Docked at Livingwood Station")
  10. os.loadAPI("moveApi")
  11. moveApi.savePosition(0, -1, 15, 52, 0)
  12. end
  13. end
Add Comment
Please, Sign In to add comment