Advertisement
Guest User

Untitled

a guest
Jul 16th, 2014
893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int x, int y, int z, int par7)
  2. {
  3. if (!par3EntityPlayer.capabilities.isCreativeMode)
  4. {
  5. --par1ItemStack.stackSize;
  6. }
  7.  
  8.  
  9. if (!par2World.isRemote)
  10. {
  11. EntityLightningBolt lightning = new EntityLightningBolt(par2World, x, y+1, z);
  12. par2World.spawnEntityInWorld(lightning);
  13. }
  14. return par1ItemStack;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement