Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- public class PaintballItemClaymoreRed extends Item
- {
- public PaintballItemClaymoreRed(int i)
- {
- super(i);
- maxStackSize = 2;
- }
- public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
- {
- PaintballEntityClaymores paintballentityclaymores = new PaintballEntityClaymores(ModLoader.getMinecraftInstance().theWorld);
- world.playSoundAtEntity(entityplayer, "claymoreset", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 0.8F));
- if(!world.multiplayerWorld)
- {
- paintballentityclaymores.claymore_isRed = true;
- world.entityJoinedWorld(paintballentityclaymores(world, (double)i + 0.5D, (double)j + 1, (double)k + 0.5D));
- }
- itemstack.stackSize--;
- return true;
- }
- }
Add Comment
Please, Sign In to add comment