Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Made by Lezappen#7587
- // Discord: https://discord.gg/M8eypZg
- // Thanks for the support ;)
- // Put is in the chat for only you to see
- LOG("&6The automine script is running")
- // Direction to look when in the cobble gen.
- LOOK(NORTH,0,0)
- // ping in ms
- set(#ping,80)
- // Label name of the label to display cobblestone info
- &labelname = "LABEL 440"
- // Amount of cobblestone to mine before crafting
- #duration=20
- // Craft on full inventory?
- SET(fullinvcraft,True)
- // Do you want the player to sprint?
- SET(psprint,false)
- // Do you want to drop crafted items in hoppers or use the echest?
- SET(dropstuff,false)
- // Automatically send back to lobby in order to prevent ghost blocks
- SET(@autoreload,true)
- @&lobbycommand="/lobby"
- // Auto restart delay in minutes
- @#autorestartdelay=20
- // Crafting slot in the gui to remove items
- #craftslot=23
- // VIP crafting slots
- &vipslots="16,25,34"
- // Failsafe
- // Set autorestart to false to disable auto restart
- SET(@autorestart,True)
- // If you change the file names, change them here too
- SET(@&hypixelscript,"HypixelAutomine.txt")
- SET(@&hypixelfailsafe,"HypixelFailsafe.txt")
- SET(@&hypixelreload,"HypixelReload.txt")
- // ignore this
- UNSET(@&tasks[])
- PUSH(@&tasks[],%KEYID%)
- SET(@#hypixelsafey,%YPOS%)
- UNSET(@&commands[])
- // Set a commands to warp back to your start location for when the script restarts (leave them empty to disable).
- @&commands[0]="/play skyblock"
- @&commands[1]="/warp island"
- // @&commands[2]="/tell me hello lol"
- // Delay between commands in seconds:
- @#cmddelay=6
- EXEC(%@&hypixelfailsafe%,"hypixelfailsafe")
- if(@autoreload)
- EXEC(%@&hypixelreload%,"hypixelreload",1)
- PUSH(@&tasks[],"hypixelreload")
- endif
- if(MODULENEI)
- LOG("&7[&3Autominer&7] &7NEI module &apresent");
- if(dropstuff)
- LOG("&7[&3Autominer&7] &7Dropping crafted items on the floor");
- else
- LOG("&7[&3Autominer&7] &7Items will be stored in the echest");
- endif
- else
- LOG("&7[&3Autominer&7] &7NEI module &cmissing");
- if(dropstuff)
- LOG("&7[&3Autominer&7] &7Dropping crafted items on the floor");
- else
- LOG("&7[&3Autominer&7] &4Cannot run the script without the NEI module!");
- endif
- endif
- if(fullinvcraft)
- LOG("&7[&3Autominer&7] &7Crafting items on full inventory detection");
- else
- LOG("&7[&3Autominer&7] &7Crafting items on #duration end");
- endif
- #recipe[]=SPLIT(",","10,11,12,19,20")
- &c="cobblestone"
- &cregex="(lCOMMON).*Name:.*Cobblestone"
- &cregex2="(lUNCOMMON).*Name:.*Cobblestone"
- inc(#ping,%#ping%)
- DO()
- SET(@#cobblestone,0)
- SET(@fullinventory,false)
- LOOK(,-90,0.5)
- set(craftcobble,false)
- SETLABEL(%&labelname%,"Cobblestone: %%",@#cobblestone)
- if(psprint)
- KEYDOWN(sprint)
- endif
- SET(@lookloop,true)
- EXEC("HypixelLookloop.txt","hypixellookloop")
- PUSH(@&tasks[],"hypixellookloop")
- DO()
- // RANDOM(#variation,100,200)
- if(fullinvcraft)
- if(@fullinventory)
- SET(craftcobble,true)
- SET(@fullinventory,false)
- endif
- else
- if(@#cobblestone>#duration)
- SET(craftcobble,true)
- endif
- endif
- KEY(attack)
- KEYDOWN(forward)
- DO(10)
- // IF(%HITID%=="cobblestone")
- KEY(attack)
- INC(@#cobblestone)
- // ENDIF
- // RANDOM(#variation,1,8)
- // wait(%#variation%ms)
- if(#ypos!=%YPOS%)
- // wait(1t)
- LOOK(,-90,0)
- endif
- LOOP
- UNTIL(craftcobble)
- SET(@lookloop,false)
- set(craftcobble,false)
- KEYUP(forward)
- if(psprint)
- KEYUP(sprint)
- endif
- #amt=(@#cobblestone/64/5)
- wait(20t)
- gui("inventory")
- PICK("nether_star")
- key(use)
- wait(%#ping%ms)
- wait(20t)
- LOOK(,0,0.5)
- PICK("golden_pickaxe")
- slotclick(31,l,false)
- wait(%#ping%ms)
- wait(20t)
- SET(#counter,0)
- #vipslots[]=SPLIT(",",%&vipslots%)
- FOREACH(#vipslots[],#vipslot)
- getslotitem(%#vipslot%,&vipitem)
- if(&vipitem=="cobblestone")
- #cobbleicon=%#vipslot%
- endif
- NEXT
- getslotitem(%#cobbleicon%,&vipitem)
- // #fiver=0
- if(%&vipitem%=="cobblestone")
- // set(#invslot,0)
- // For(#invslot,54,88)
- // getslotitem(%#invslot%,&mat,#stacksize,#datavar,&matnbt)
- // ifmatches(%&matnbt%,%&cregex%)
- // INC(#fiver,1)
- // if(#fiver=5)
- // SLOTCLICK(16,l,false)
- // #fiver=0
- // endif
- // endif
- //NEXT
- // alternative
- do(12)
- SLOTCLICK(%#cobbleicon%,l,false)
- if(dropstuff)
- wait(3t)
- SLOTCLICK(-999,l,false)
- wait(3t)
- endif
- wait(4t)
- LOOP
- wait(40t)
- // Drop cobblestone in the inventory
- //if(dropstuff)
- // #invstart=(%CONTAINERSLOTS%-36)
- // #invend=(%CONTAINERSLOTS%-1)
- // For(#invslot,%#invstart%,%#invend%)
- // getslotitem(%#invslot%,&cob)
- // if(&cob==%&c%)
- // SLOTCLICK(%#invslot%,l,false)
- // wait(3t)
- // SLOTCLICK(-999,l,false)
- // wait(3t)
- // endif
- // next
- //endif
- else
- do(2)
- set(#invslot,0)
- For(#invslot,54,88)
- getslotitem(%#invslot%,&it,#stacksize,#datavar,&nbt)
- ifmatches(%&nbt%,%&cregex%)
- FOREACH(#recipe[],#rslot)
- getslotitem(%#rslot%,&ritem)
- getslotitem(%#craftslot%,&item)
- if(%&item%==%&c%)
- wait(200ms)
- if(dropstuff)
- SLOTCLICK(%#craftslot%,l,false)
- wait(3t)
- SLOTCLICK(-999,l,false)
- wait(3t)
- else
- SLOTCLICK(%#craftslot%,l,true)
- wait(1t)
- endif
- wait(200ms)
- else
- if(%&ritem%=="air")
- if(#stacksize>63)
- SLOTCLICK(%#invslot%,l,false)
- wait(1t)
- SLOTCLICK(%#rslot%,l,false)
- wait(1t)
- BREAK
- endif
- endif
- endif
- NEXT
- endif
- NEXT
- loop
- endif
- gui()
- if(dropstuff)
- wait(%#ping%ms)
- wait(40t)
- endif
- if(MODULENEI)
- if(dropstuff)
- else
- echo(/enderchest)
- wait(20t)
- #echeststart=(%CONTAINERSLOTS%-36)
- #echestend=(%CONTAINERSLOTS%-1)
- For(#echestslot,%#echeststart%,%#echestend%)
- getslotitem(%#echestslot%,&item,#stacksize,#datavar,&nbt)
- ifmatches(%&nbt%,%&cregex2%)
- slotclick(%#echestslot%,l,true)
- endif
- next
- gui()
- endif
- wait(%#ping%ms)
- wait(20t)
- endif
- UNSET(@#cobblestone)
- PICK("golden_pickaxe")
- WAIT(40t)
- LOOP
- // Credits:
- // Made by Lezappen#7587
- // Discord: https://discord.gg/M8eypZg
- // Youtube: https://www.youtube.com/channel/UCIPGEO89HvJBFQ01M56Yqcw
Add Comment
Please, Sign In to add comment