Created
April 10, 2018 19:19
-
-
Save brecert/52aa3d4b47c2190186a28f2e8c5ccb25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$${ | |
&blocks = "(chest|trapped_chest|dispenser|dropper|hopper|.*_shulker_box)" | |
IFMATCHES("%HITID%",%&blocks%) | |
KEY(use) | |
WAIT(5t) | |
IF(%GUI% = "NONE") | |
POPUPMESSAGE("&4Couldn't open the %HITID%!"); | |
STOP | |
ENDIF | |
#invsize = %CONTAINERSLOTS% - 36 | |
LOG(%#invsize%); | |
DO($$[amount]) | |
IF(%DURABILITY% < 7); | |
ECHO(/repair) | |
STOP; | |
ENDIF; | |
#firstinv = 9 | |
SLOTCLICK(%#firstinv%,left,false); | |
SLOTCLICK(0,right,false); | |
SLOTCLICK(%#firstinv%,left,false); | |
wait(5t) | |
#firstinv = 10 | |
SLOTCLICK(%#firstinv%,left,false); | |
SLOTCLICK(1,right,false); | |
SLOTCLICK(%#firstinv%,left,false); | |
PRESS(ESCAPE); | |
WAIT(1t); | |
PICK(golden_axe); | |
KEY(ATTACK); | |
WAIT(2t) | |
KEY(use) | |
//IF(%GUI% = "NONE") | |
//POPUPMESSAGE("&4Couldn't open the %HITID%!"); | |
//STOP | |
//ENDIF | |
WAIT(5t) | |
SLOTCLICK(0,left,true); | |
LOOP; | |
ENDIF; | |
ENDIF; | |
}$$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment