Advertisement
Sanwi

Vine Bot 3

Apr 5th, 2015
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. $${
  2. // http://i.imgur.com/OgnANA5.jpg
  3.  
  4. volume(0);
  5.  
  6. #south = 4144;
  7. #north = 4103;
  8. #minfood = 17;
  9.  
  10. #wait = 200;
  11.  
  12. pick(shears);
  13.  
  14. #y_anchor = %YPOS%
  15. do;
  16. //Eat
  17. look(0,90);
  18. if(%HUNGER% < %#minfood%);
  19. &foods[] = split(" ",$$<foods.txt>);
  20. foreach(&foods,&cfood);
  21. pick("%&cfood%");
  22. next;
  23. wait(%#wait%ms);
  24. do(150);
  25. key(use);
  26. loop;
  27. endif;
  28.  
  29. keyup(back);
  30. keydown(forward);
  31. look(west);
  32. if(%ZPOS%!=#north);
  33. // crouch, look north, and attack until north end of farm is reached
  34. do;
  35. #cx=%ZPOS%;
  36. do;
  37. // Disconnect if we've fallen in the water
  38. if(#y_anchor != %YPOS%);
  39. disconnect();
  40. endif;
  41. pick("shears");
  42. if(%ITEM% = "shears");
  43. keydown(right);
  44. keydown(sneak);
  45. look(west);
  46. key(attack);
  47. key(use);
  48.  
  49. else;
  50. $$<get_shears.txt>
  51. wait(%#wait%ms);
  52. pick("shears");
  53. wait(%#wait%ms);
  54. endif;
  55. until(%#cx%!=%ZPOS%);
  56. until(%ZPOS% = #north);
  57. wait(200ms);
  58. keyup(left);
  59. endif;
  60.  
  61. if(%ZPOS% !=#south);
  62. keyup(forward);
  63. keydown(back);
  64. // crouch, look east, and attack until south end of farm is reached
  65. do;
  66. #cx=%ZPOS%;
  67. do;
  68. // Disconnect if we've fallen in the water
  69. if(#y_anchor != %YPOS%);
  70. disconnect();
  71. endif;
  72. pick("shears");
  73. if(%ITEM% = "shears");
  74. keydown(right);
  75. keydown(sneak);
  76. look(east);
  77. key(attack);
  78. key(use);
  79. else;
  80. $$<get_shears.txt>
  81. wait(%#wait%ms);
  82. pick("shears");
  83. endif;
  84. until(%#cx%!=%ZPOS%);
  85. until(%ZPOS% = #south);
  86. wait(200ms);
  87. keyup(right);
  88. endif;
  89. loop;
  90.  
  91. stop();
  92. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement