77

5 0 0
                                    

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);
    }

"

101 Minecraft Facts!!! Where stories live. Discover now