Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int x, int y, int z, int par7)
- {
- if (!par3EntityPlayer.capabilities.isCreativeMode)
- {
- --par1ItemStack.stackSize;
- }
- if (!par2World.isRemote)
- {
- EntityLightningBolt lightning = new EntityLightningBolt(par2World, x, y+1, z);
- par2World.spawnEntityInWorld(lightning);
- }
- return par1ItemStack;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement