This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
0
Quote from 3man7»Just found a tutorial here that uses the onUpdate method. Works great for me @Override public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5) { super.onUpdate(stack, world, entity, par4, par5); EntityPlayer player = (EntityPlayer) entity; ItemStack equipped = player.getCurrentEquippedItem(); if(equipped == stack) { player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 5, 0)); } } Credit goes to
@Override public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5) { super.onUpdate(stack, world, entity, par4, par5); EntityPlayer player = (EntityPlayer) entity; ItemStack equipped = player.getCurrentEquippedItem(); if(equipped == stack) { player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 5, 0)); } }
What program is this?
0
What program is this?