if(%DURABILITY% = 50); log(&3This sword's a bit rusty.);
if(%DURABILITY% = 50); STOP(Button ID);
Couple of notes:
-For some reason, this code doesn't work with just one if statement, probably a bug.
-You can find out the button ID by going into said buttons customisation window. It should have it's name just above the text entry field. For example for the up key it'd have <UP>. Enter the ID without the < >
-If you're using the new onscreen buttons, the buttons will be given the ID <BUTTON ###>. Enter just the 3 digit number not the 'button' bit.
-I recommend you hold this in a text file so it's easier to maintain.
Quote from TheKillerMunk
Any possibilities of making a complete auto X by X mining/clearing script for use on servers?
Like if I want to create a big 100x100 underground room all I have to do is run the script -> afk -> and win.
Of course with a chance of burning up alive in lava. (But I have fly on the server I'm gonna use such a script for)
It's possible, but it'd be very lengthy. Off the top of my head it'd have to contain at least a couple of for loops and query checks.