SHARE
TWEET

Untitled

a guest Jul 17th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package narutoStellar.objects.items.jutsus;
  2.  
  3. import narutoStellar.objects.items.JutsuBase;
  4. import net.minecraft.entity.Entity;
  5. import net.minecraft.entity.player.EntityPlayer;
  6. import net.minecraft.item.ItemStack;
  7. import net.minecraft.potion.Potion;
  8. import net.minecraft.potion.PotionEffect;
  9. import net.minecraft.world.World;
  10. public class DrunkenFist extends JutsuBase {
  11.  
  12.    
  13.     public DrunkenFist(String name) {
  14.     super(name);
  15.        
  16.     }
  17.     public int cooldown = 0;
  18.    
  19.     @Override
  20.     public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {
  21.    
  22.         if (cooldown > 60);
  23.         player.addPotionEffect(new PotionEffect(Potion.damageBoost.getId(), 20, 2));
  24.         player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2));
  25.         player.addPotionEffect(new PotionEffect(Potion.confusion.getId(), 20, 2));
  26.         cooldown = 0;
  27.         return itemStack;
  28.        
  29.            
  30.        
  31.     }
  32.     @Override
  33.     public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5) {
  34.             super.onUpdate(stack, world, entity, par4, par5);
  35.                     EntityPlayer player = (EntityPlayer) entity;
  36.                     player.getCurrentEquippedItem();
  37.                 if(cooldown > 60);
  38.                     cooldown = 0;
  39.                
  40.                 cooldown++;
  41.                
  42.                
  43.            
  44.                
  45.     }
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top