Advertisement
k_goos

Xp Turtle

Apr 28th, 2013
200
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x = peripheral.wrap("right")
  2. x.setAutoCollect(true)
  3.  
  4. while true do
  5. lvl = x.getLevels()
  6. print("My lvl is: "..lvl)
  7. while lvl >= 30 do
  8. x.enchant(30)
  9. turtle.dropUp()
  10. turtle.suckDown()
  11. count = turtle.getItemCount(1)
  12. if count ~= 0 then
  13. turtle.dropDown(count - 1)
  14. else
  15. print("no more books")
  16. break
  17. end
  18. lvl = x.getLevels()
  19. end
  20. sleep(5)
  21. end
Advertisement
RAW Paste Data Copied
Advertisement