write in motionevent
if (mc.thePlayer.onGround) {
event.y += 0.003 + PlayerHelper.getWatchdogUnpatchValues()
if (mc.thePlayer.ticksExisted % 2 === 0) event.y += 0.004 + PlayerHelper.getWatchdogUnpatchValues()
event.onGround = mc.thePlayer.motionY > 0 || MathHelper.getDifference(
mc.thePlayer.posY,
mc.thePlayer.lastTickPosY
) > 0
} else if (mc.thePlayer.motionY > 0) {
event.y -= 0.0003 + PlayerHelper.getWatchdogUnpatchValues()
if (mc.thePlayer.ticksExisted % 2 === 0) event.y += 0.0004 + PlayerHelper.getWatchdogUnpatchValues()
}
need
public static double getWatchdogUnpatchValues() {
double value = 1.0 / System.currentTimeMillis();
for (int i = 0; i < master.koitoyuu.utils.helper.MathHelper.getRandom_int(4, 20); i++)
value *= 1.0 / System.currentTimeMillis();
return value;
}