Advertisement
pogof

xpfarm_pracuj

Nov 17th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. --program by pogof
  2. --www.pogof.cz
  3. --www.youtube.com/smitegamescz
  4.  
  5. a=peripheral.wrap("right")
  6. a.setAutoCollect(true)
  7.  
  8. function uhli()
  9. if turtle.getFuelLevel() < 22 then
  10. turtle.turnLeft()
  11. turtle.select(16)
  12. turtle.suck()
  13. turtle.refuel(64)
  14. turtle.turnRight()
  15. turtle.select(1)
  16. end
  17. end
  18.  
  19. function knihy()
  20. if a.getLevels() > 30 then
  21. turtle.turnRight()
  22. turtle.suck()
  23. c=turtle.getItemCount(1)
  24. turtle.drop(c-1)
  25. turtle.turnLeft()
  26. for b=1, 10 do
  27. turtle.back()
  28. end
  29. turtle.down()
  30. a.enchant(30)
  31. turtle.drop()
  32. turtle.up()
  33. for d=1, 10 do
  34. turtle.forward()
  35. end
  36. end
  37. end
  38.  
  39. function kill()
  40. for e=0, 100 do
  41. turtle.attack()
  42. end
  43. for f=1, 12 do
  44. turtle.select(f)
  45. turtle.dropDown()
  46. end
  47. turtle.select(1)
  48. end
  49.  
  50. while true do
  51. kill()
  52. uhli()
  53. write("pocet LVL: ")
  54. print(a.getLevels())
  55. knihy()
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement