A bunch of Java and Python

15 1 4
                                    

I am really just copying and pasting old notes from my note book into here :]

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

/** Makes your Item Enchanted when it is crafted */
        public void onCreated(ItemStack item, World world, EntityPlayer player)
        {
            item.addEnchantment(Enchantment.knockback, 5);
            // Replace the "." after "Enchantment" to see options
            // The number is the Enchantment Level
        }

//  LOAD BIOME ( 2 )
        MyCreeperBiome_1 = new MyCreeperBiome(30);
        GameRegistry.addBiome(MyCreeperBiome_1);
//  DECLARE THE Flats BIOME
        public static  BiomeGenBase MyCreeperBiome_1;

------------------------

pwd= print working directory
sudo apd-get update
ls -ltr
python

RandomnessWhere stories live. Discover now