I've been searching and searching but can't seem to find any way to give armor/tools an ability (breathing underwater, setting mobs on fire with a sword, etc.) I only found one tutorial, and the code it shows doesn't want to work...
Is there any thing wrong with this code? And if so could you please point it out?