Advertisement
Guest User

mirvines.txt

a guest
Jun 20th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. $${
  2.  
  3. //Tried to make formatting more reasonable
  4. //Added more pick commands so fewer vines are punched
  5. //Unbroke looking at chests
  6. //Adjusted to fit actual edges of the field
  7.  
  8. #x1=12479;//this is where the farm ends (x)
  9. #x2=12592;//this is where the farm stats (x)
  10. #z1=515;//this is where the farm starts (z)
  11. #z2=492;//this is where the farm ends (z)
  12. //yaws
  13. #north = 0;
  14. #east = 90;
  15. #south = 180;
  16. #west = 270;
  17.  
  18. #next_vine_x=12591; //x2-1
  19. #next_vine_z=500; //4th block to the left of the player (x), this represents the next row of vines
  20.  
  21. do();
  22. do();
  23. look(north);
  24. //wait(200ms);
  25. do()
  26. keydown(left);
  27. until(%XPOS%==%#next_vine_x%)
  28.  
  29. inc(#next_vine_x,-1);//setting next column of vines
  30. keyup(left);
  31. wait(200ms);
  32. //clearing 1 column of vines func ###
  33.  
  34. pick(shears);
  35.  
  36. wait(150ms)
  37. look(0,35);
  38. do(12)
  39. key(attack);
  40. loop;
  41.  
  42. pick(shears);
  43. wait(150ms)
  44. look(0,0);
  45. do(12)
  46. key(attack);
  47. loop;
  48.  
  49. pick(shears);
  50. wait(150ms)
  51. look(0,-25);
  52. do(12)
  53. key(attack);
  54. loop;
  55.  
  56. pick(shears);
  57. wait(150ms)
  58. look(0,-25);
  59. do(12)
  60. key(attack);
  61. loop;
  62.  
  63. look(0,0);
  64.  
  65. while(%XPOS%>%#x1%);
  66.  
  67. inc(#next_vine_x,+2);//resetting next vine pos
  68.  
  69. do()
  70. //looking to the other side of the farm
  71. look(south);
  72. do()
  73. keydown(left);
  74. until(%XPOS%==%#next_vine_x%);
  75. inc(#next_vine_x,+1);//setting next collmn of vines
  76. keyup(left);
  77. wait(200ms);
  78. //clearing 1 collumn of vines func ###
  79.  
  80. pick(shears);
  81. look(180,35);
  82. do(12)
  83. key(attack);
  84. loop;
  85.  
  86. pick(shears);
  87. wait(150ms)
  88. look(180,0);
  89. do(12)
  90. key(attack);
  91. loop;
  92.  
  93. pick(shears);
  94. wait(150ms)
  95. look(180,-25);
  96. do(12)
  97. key(attack);
  98. loop;
  99.  
  100. pick(shears);
  101. wait(150ms)
  102. look(180,-25);
  103. do(12)
  104. key(attack);
  105. loop;
  106.  
  107. look(180,0);
  108.  
  109. while(%XPOS%<%#x2%)
  110.  
  111. inc(#next_vine_x,-2); //resetting next vine pos
  112. //
  113.  
  114. do()
  115. keydown(forward);
  116. until(%ZPOS%==%#next_vine_z%);
  117.  
  118. keyup(forward);
  119. inc(#next_vine_z,+4);//resetting next row of vines
  120.  
  121. // Eat, eats every time we finish a row of vines
  122. &foods = "cookie rotten_flesh spider_eye fish rabbit mutton pumpkin_pie apple beef porkchop chicken poisonous_potato melon potato baked_potato cooked_chicken cooked_mutton mushroom_stew bread cooked_rabbit cooked_fished carrot cooked_porkchop cooked_beef golden_carrot golden_apple rabbit_stew"
  123. if(%HUNGER% < 5);
  124. disconnect();
  125. stop();
  126. elseif(%HUNGER% < 20);
  127. &foods[] = split(" ",%&foods%);
  128. foreach(&foods,&cfood);
  129. pick("%&cfood%");
  130. next;
  131. wait(%#wait%ms);
  132. do(100);
  133. key(use);
  134. loop;
  135. endif;
  136.  
  137. // Dump inventory
  138. log(Attempting to dump inventory);
  139. look(90,45);
  140. wait(100ms);
  141. key(use);
  142. wait(500ms);
  143. UNSAFE(0);
  144. for(#i,54,80);
  145. getslotitem(%#i%,&item);
  146. if("vine" == &item);
  147. slotclick(%#i%,1,true);
  148. wait(100ms);
  149. endif;
  150. next;
  151. ENDUNSAFE;
  152. gui();
  153.  
  154. until(%ZPOS%==%#z1%);
  155. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement