Advertisement
Guest User

tttexample

a guest
Aug 21st, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. --EXAMPLE
  2. --Use of Turtle Tube Transport API
  3. --(ttt)
  4. --by default the ttt API requires also
  5. --having the tst API installed
  6. --credit for the  tst API ACTUALLY goes
  7. --to Lyqyd at CC Scripts
  8. --See TTTREADME for help
  9. os.loadAPI("ttt")
  10. tst.setLocation(x,y,z,dir)
  11. turtle.select(16)
  12. turtle.refuel(1)
  13. if (ttt.startTube()) then
  14.   term.clear()
  15.   term.setCursorPos(1,1)
  16.   print("All done tubing. Ready for more")
  17.   term.setCursorPos(2,2)
  18.   print("Location: ")
  19.   print(tst.getLocation())
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement