Advertisement
Guest User

carrot

a guest
Mar 30th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. #starty = %YPOS%;
  2. #startz=%ZPOS%;
  3. #startx=%XPOS%;
  4. #lastx=%XPOS%;
  5. #count=0;
  6. SET(reseting, false);
  7. SET(side, false);
  8. LOOK(180,90,1);
  9. KEYDOWN(forward);
  10. wait(120ms);
  11. do;
  12. if(%#count%=99);
  13. keyup(forward);
  14. #count=0;
  15. LOOK(270, 90, 1);
  16. keydown(forward);
  17. SET(reseting);
  18. endif;
  19. if(reseting);
  20. if(%XPOS%=-12932); // change to the x of the very last row.
  21. keyup(forward);
  22. wait(1t);
  23. SET(reseting, false);
  24. EXEC("CFarm.txt", "new_farm");
  25. STOP();
  26.  
  27. endif;
  28. next;
  29. endif;
  30. if(%YPOS%!=%#starty%);
  31. if(checky=true);
  32. checky=false;
  33. #lastz=%ZPOS%;
  34. endif;
  35. if(%ZPOS%!=%#lastz%);
  36. pick("diamond_pickaxe");
  37. key(attack);
  38. wait(1t);
  39. pick("carrot");
  40. wait(1t);
  41. key(use);
  42. #lastz=%ZPOS%;
  43. endif;
  44. endif;
  45. if((%YPOS%=%#starty%)&&(checky=false));
  46. checky=true;
  47. KEYUP(forward);
  48. keyup(back);
  49. wait(1t);
  50. look(+0,-90,.5);
  51. key(use);
  52. wait(1t);
  53. for(#g,20,53);
  54. GETSLOTITEM(%#g%,&k);
  55. if(%&k%=="carrot");
  56. SLOTCLICK(%#g%,"l",true);
  57. wait(2t);
  58. endif;
  59. next;
  60. press(e);
  61. wait(1t);
  62. IF(side);
  63. do;
  64. keydown(right);
  65. until(%#lastx%!=%XPOS%);
  66. keyup(right);
  67. #lastx=%XPOS%;
  68. look(SOUTH);
  69. wait(1t);
  70. LOOK(+0,90,1);
  71. wait(1t);
  72. SET(SIDE, FALSE);
  73. INC(#count, 1);
  74. ELSE;
  75. do;
  76. keydown(left);
  77. until(%#lastx%!=%XPOS%);
  78. keyup(left);
  79. #lastx=%XPOS%;
  80. look(NORTH);
  81. wait(1t);
  82. LOOK(+0,90,1);
  83. wait(1t);
  84. SET(SIDE);
  85. INC(#count, 1);
  86. endif;
  87. keydown(forward);
  88. endif;
  89. loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement