Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. xp = peripheral.wrap("right")
  2. xp.setAutoCollect(true)
  3.  
  4. while true do
  5. if xp.getLevels() > 30 then
  6. if turtle.getItemCount(1) > 0 then
  7. turtle.select(1)
  8. xp.enchant(30)
  9. turtle.drop()
  10. else
  11. turtle.select(2)
  12. if turtle.getItemCount(2) > 0 then
  13. while not turtle.suckUp() do
  14. sleep (1)
  15. end
  16. end
  17. turtle.transferTo(1, 1)
  18. turtle.select(1)
  19. xp.enchant(30)
  20. turtle.drop()
  21. end
  22. end
  23. sleep (60)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement