For those who are into programming, this is the code necessary to equip your sword with lightning abilities!
Keep in mind that this could have changed since I last used it.
"
/** Adds Lightning Power to your Sword */
public boolean hitEntity(ItemStack item, EntityLivingBase target, EntityLivingBase player)
{
target.worldObj.addWeatherEffect(new EntityLightningBolt(target.worldObj, target.posX, target.posY, target.posZ));
return super.hitEntity(item, target, player);
}"
YOU ARE READING
101 Minecraft Facts!!!
Não FicçãoWant to learn more about your favorite game?! well, wehoo, here's a book just for that!