1 - 5 of 5
public ItemStack onItemRightClick(ItemStack par1ItemStack, World world, EntityPlayer par3EntityPlayer, EntityFireball fireball, ItemStack var1)
{
par1ItemStack.damageItem(100, par3EntityPlayer);
if (!world.isRemote)
{
EntityLargeFireball ef = new EntityLargeFireball(this.worldObj, this, d5, d6, d7);
ef.field_92057_e = this.explosionStrength;
double d8 = 4.0D;
Vec3 vec3 = this.getLook(2.0F);
ef.posX = this.posX + vec3.xCoord * d6 / 5F;
ef.posY = this.posY + (double)(this.height / 2.0F) + 0.5D;
ef.posZ = this.posZ + vec3.zCoord * d8;
this.worldObj.spawnEntityInWorld(ef);
this.attackCounter = -numbers.ATTACK_COUNTER_FIRE;
}
return par1ItemStack;
}1 - 5 of 5
© 2010 - 2026 Cyprezz LLC
www.planetminecraft.com
Planet Minecraft has a Progressive Web App!
get_app Install PMC APP
Already a member? Sign in
By continuing, you agree to Planet Minecraft's Terms of Use and Privacy Policy
