I am trying to make a mod that detects if an emerald is in your hotbar, if it is it automatically switches to it and then right clicks with it. How would I go about doing this?!??
PS I am COMPLETE NOOB and this will be my first mod.
PPS I DO NOT speak Java.