@SideOnly(Side.CLIENT) protected void onHit(RayTraceResult hit) { Vec3d sideHit; if (hit.typeOfHit.equals(RayTraceResult.Type.BLOCK)) { sideHit = new Vec3d(hit.sideHit.getDirectionVec()); } else { if (hit.typeOfHit.equals(RayTraceResult.Type.ENTITY)) { if (hit.entityHit instanceof EntityLivingBase) { EntityFXGenericAnimatedParticle blood = new EntityFXGenericAnimatedParticle(world, hit.hitVec.x + rand.nextDouble() * 0.4 - 0.2, hit.hitVec.y + rand.nextDouble() * 0.4 - 0.2, hit.hitVec.z + rand.nextDouble() * 0.4 - 0.2, 6f + rand.nextFloat() * 2, RenderParticlesHandler.blood);