Guest User

Untitled

a guest
Mar 31st, 2020
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1.  
  2. // Made by Lezappen#7587
  3. // Discord: https://discord.gg/M8eypZg
  4. // Thanks for the support ;)
  5.  
  6.  
  7. // Put is in the chat for only you to see
  8. LOG("&6The automine script is running")
  9.  
  10. // Direction to look when in the cobble gen.
  11. LOOK(NORTH,0,0)
  12.  
  13. // ping in ms
  14. set(#ping,80)
  15.  
  16. // Label name of the label to display cobblestone info
  17. &labelname = "LABEL 440"
  18.  
  19. // Amount of cobblestone to mine before crafting
  20. #duration=20
  21.  
  22. // Craft on full inventory?
  23. SET(fullinvcraft,True)
  24.  
  25. // Do you want the player to sprint?
  26. SET(psprint,false)
  27.  
  28. // Do you want to drop crafted items in hoppers or use the echest?
  29. SET(dropstuff,false)
  30.  
  31. // Automatically send back to lobby in order to prevent ghost blocks
  32. SET(@autoreload,true)
  33. @&lobbycommand="/lobby"
  34.  
  35. // Auto restart delay in minutes
  36. @#autorestartdelay=20
  37.  
  38. // Crafting slot in the gui to remove items
  39. #craftslot=23
  40.  
  41. // VIP crafting slots
  42. &vipslots="16,25,34"
  43.  
  44. // Failsafe
  45. // Set autorestart to false to disable auto restart
  46. SET(@autorestart,True)
  47. // If you change the file names, change them here too
  48. SET(@&hypixelscript,"HypixelAutomine.txt")
  49. SET(@&hypixelfailsafe,"HypixelFailsafe.txt")
  50. SET(@&hypixelreload,"HypixelReload.txt")
  51. // ignore this
  52. UNSET(@&tasks[])
  53. PUSH(@&tasks[],%KEYID%)
  54. SET(@#hypixelsafey,%YPOS%)
  55. UNSET(@&commands[])
  56. // Set a commands to warp back to your start location for when the script restarts (leave them empty to disable).
  57. @&commands[0]="/play skyblock"
  58. @&commands[1]="/warp island"
  59. // @&commands[2]="/tell me hello lol"
  60. // Delay between commands in seconds:
  61. @#cmddelay=6
  62.  
  63. EXEC(%@&hypixelfailsafe%,"hypixelfailsafe")
  64. if(@autoreload)
  65. EXEC(%@&hypixelreload%,"hypixelreload",1)
  66. PUSH(@&tasks[],"hypixelreload")
  67. endif
  68. if(MODULENEI)
  69. LOG("&7[&3Autominer&7] &7NEI module &apresent");
  70. if(dropstuff)
  71. LOG("&7[&3Autominer&7] &7Dropping crafted items on the floor");
  72. else
  73. LOG("&7[&3Autominer&7] &7Items will be stored in the echest");
  74. endif
  75. else
  76. LOG("&7[&3Autominer&7] &7NEI module &cmissing");
  77. if(dropstuff)
  78. LOG("&7[&3Autominer&7] &7Dropping crafted items on the floor");
  79. else
  80. LOG("&7[&3Autominer&7] &4Cannot run the script without the NEI module!");
  81. endif
  82. endif
  83. if(fullinvcraft)
  84. LOG("&7[&3Autominer&7] &7Crafting items on full inventory detection");
  85. else
  86. LOG("&7[&3Autominer&7] &7Crafting items on #duration end");
  87. endif
  88. #recipe[]=SPLIT(",","10,11,12,19,20")
  89. &c="cobblestone"
  90. &cregex="(lCOMMON).*Name:.*Cobblestone"
  91. &cregex2="(lUNCOMMON).*Name:.*Cobblestone"
  92. inc(#ping,%#ping%)
  93. DO()
  94. SET(@#cobblestone,0)
  95. SET(@fullinventory,false)
  96. LOOK(,-90,0.5)
  97. set(craftcobble,false)
  98. SETLABEL(%&labelname%,"Cobblestone: %%",@#cobblestone)
  99. if(psprint)
  100. KEYDOWN(sprint)
  101. endif
  102. SET(@lookloop,true)
  103. EXEC("HypixelLookloop.txt","hypixellookloop")
  104. PUSH(@&tasks[],"hypixellookloop")
  105. DO()
  106. // RANDOM(#variation,100,200)
  107. if(fullinvcraft)
  108. if(@fullinventory)
  109. SET(craftcobble,true)
  110. SET(@fullinventory,false)
  111. endif
  112. else
  113. if(@#cobblestone>#duration)
  114. SET(craftcobble,true)
  115. endif
  116. endif
  117.  
  118.  
  119. KEY(attack)
  120. KEYDOWN(forward)
  121. DO(10)
  122. // IF(%HITID%=="cobblestone")
  123. KEY(attack)
  124. INC(@#cobblestone)
  125. // ENDIF
  126. // RANDOM(#variation,1,8)
  127. // wait(%#variation%ms)
  128. if(#ypos!=%YPOS%)
  129. // wait(1t)
  130. LOOK(,-90,0)
  131. endif
  132. LOOP
  133. UNTIL(craftcobble)
  134. SET(@lookloop,false)
  135. set(craftcobble,false)
  136.  
  137. KEYUP(forward)
  138. if(psprint)
  139. KEYUP(sprint)
  140. endif
  141. #amt=(@#cobblestone/64/5)
  142. wait(20t)
  143. gui("inventory")
  144. PICK("nether_star")
  145. key(use)
  146. wait(%#ping%ms)
  147. wait(20t)
  148. LOOK(,0,0.5)
  149. PICK("golden_pickaxe")
  150. slotclick(31,l,false)
  151. wait(%#ping%ms)
  152. wait(20t)
  153. SET(#counter,0)
  154.  
  155. #vipslots[]=SPLIT(",",%&vipslots%)
  156. FOREACH(#vipslots[],#vipslot)
  157. getslotitem(%#vipslot%,&vipitem)
  158. if(&vipitem=="cobblestone")
  159. #cobbleicon=%#vipslot%
  160. endif
  161. NEXT
  162. getslotitem(%#cobbleicon%,&vipitem)
  163. // #fiver=0
  164. if(%&vipitem%=="cobblestone")
  165.  
  166. // set(#invslot,0)
  167. // For(#invslot,54,88)
  168. // getslotitem(%#invslot%,&mat,#stacksize,#datavar,&matnbt)
  169. // ifmatches(%&matnbt%,%&cregex%)
  170. // INC(#fiver,1)
  171. // if(#fiver=5)
  172. // SLOTCLICK(16,l,false)
  173. // #fiver=0
  174. // endif
  175. // endif
  176. //NEXT
  177.  
  178. // alternative
  179. do(12)
  180. SLOTCLICK(%#cobbleicon%,l,false)
  181. if(dropstuff)
  182. wait(3t)
  183. SLOTCLICK(-999,l,false)
  184. wait(3t)
  185. endif
  186. wait(4t)
  187. LOOP
  188. wait(40t)
  189.  
  190. // Drop cobblestone in the inventory
  191. //if(dropstuff)
  192. // #invstart=(%CONTAINERSLOTS%-36)
  193. // #invend=(%CONTAINERSLOTS%-1)
  194. // For(#invslot,%#invstart%,%#invend%)
  195. // getslotitem(%#invslot%,&cob)
  196. // if(&cob==%&c%)
  197. // SLOTCLICK(%#invslot%,l,false)
  198. // wait(3t)
  199. // SLOTCLICK(-999,l,false)
  200. // wait(3t)
  201. // endif
  202. // next
  203. //endif
  204. else
  205.  
  206. do(2)
  207. set(#invslot,0)
  208. For(#invslot,54,88)
  209. getslotitem(%#invslot%,&it,#stacksize,#datavar,&nbt)
  210. ifmatches(%&nbt%,%&cregex%)
  211. FOREACH(#recipe[],#rslot)
  212. getslotitem(%#rslot%,&ritem)
  213. getslotitem(%#craftslot%,&item)
  214. if(%&item%==%&c%)
  215. wait(200ms)
  216. if(dropstuff)
  217. SLOTCLICK(%#craftslot%,l,false)
  218. wait(3t)
  219. SLOTCLICK(-999,l,false)
  220. wait(3t)
  221. else
  222. SLOTCLICK(%#craftslot%,l,true)
  223. wait(1t)
  224. endif
  225. wait(200ms)
  226. else
  227. if(%&ritem%=="air")
  228. if(#stacksize>63)
  229. SLOTCLICK(%#invslot%,l,false)
  230. wait(1t)
  231. SLOTCLICK(%#rslot%,l,false)
  232. wait(1t)
  233. BREAK
  234. endif
  235. endif
  236. endif
  237.  
  238. NEXT
  239. endif
  240.  
  241. NEXT
  242. loop
  243. endif
  244.  
  245. gui()
  246. if(dropstuff)
  247. wait(%#ping%ms)
  248. wait(40t)
  249. endif
  250. if(MODULENEI)
  251. if(dropstuff)
  252. else
  253. echo(/enderchest)
  254. wait(20t)
  255. #echeststart=(%CONTAINERSLOTS%-36)
  256. #echestend=(%CONTAINERSLOTS%-1)
  257.  
  258. For(#echestslot,%#echeststart%,%#echestend%)
  259. getslotitem(%#echestslot%,&item,#stacksize,#datavar,&nbt)
  260. ifmatches(%&nbt%,%&cregex2%)
  261. slotclick(%#echestslot%,l,true)
  262. endif
  263. next
  264.  
  265.  
  266. gui()
  267. endif
  268. wait(%#ping%ms)
  269. wait(20t)
  270. endif
  271. UNSET(@#cobblestone)
  272. PICK("golden_pickaxe")
  273. WAIT(40t)
  274. LOOP
  275.  
  276.  
  277. // Credits:
  278. // Made by Lezappen#7587
  279. // Discord: https://discord.gg/M8eypZg
  280. // Youtube: https://www.youtube.com/channel/UCIPGEO89HvJBFQ01M56Yqcw
Add Comment
Please, Sign In to add comment