Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. public class PaintballItemClaymoreRed extends Item
  4. {
  5.  
  6. public PaintballItemClaymoreRed(int i)
  7. {
  8. super(i);
  9. maxStackSize = 2;
  10. }
  11.  
  12. public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
  13. {
  14. PaintballEntityClaymores paintballentityclaymores = new PaintballEntityClaymores(ModLoader.getMinecraftInstance().theWorld);
  15. world.playSoundAtEntity(entityplayer, "claymoreset", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 0.8F));
  16. if(!world.multiplayerWorld)
  17. {
  18. paintballentityclaymores.claymore_isRed = true;
  19. world.entityJoinedWorld(paintballentityclaymores(world, (double)i + 0.5D, (double)j + 1, (double)k + 0.5D));
  20. }
  21. itemstack.stackSize--;
  22. return true;
  23. }
  24. }
Add Comment
Please, Sign In to add comment