I'm trying to make it so lightning strikes the mob I hit with the sword. I've tried every code I could find online and all I get is errors I can't fix or it simply doesn't work.
I'm using Eclipse and 1.7.10 version of Forge. The coding I have so far for the sword without the lightning looks like this:
package cyberrocky.lsm.item;
import net.minecraft.item.Item;
import net.minecraft.item.ItemSword;
public class ItemLightningSword extends ItemSword {
public ItemLightningSword(ToolMaterial material) {
super(material);
}
}