- Статус
- Оффлайн
- Регистрация
- 8 Май 2022
- Сообщения
- 734
- Реакции
- 73
- Выберите загрузчик игры
- OptiFine
Java:
@ModuleInfo(name = "GrimGlide", category = Category.MOVEMENT, description = ":/")
public class GrimGlide extends Module {
private TimerUtility ticks = new TimerUtility();
int ticksTwo = 0;
@EventHandler
public void onEvent(EventMotion event) {
if ((mc.player == null || mc.world == null) || !mc.player.isElytraFlying()) return;
ticksTwo++;
Vector3d pos = mc.player.getPositionVec();
float yaw = mc.player.rotationYaw;
double forward = 0.087;
double motion = MathUtility.getBps(mc.player, 1);
float valuePidor = ServerUtility.isReallyWorld() ? 48 : 52;
if (motion >= valuePidor) {
forward = 0f;
motion = 0;
}
double dx = -Math.sin(Math.toRadians(yaw)) * forward;
double dz = Math.cos(Math.toRadians(yaw)) * forward;
mc.player.setVelocity(dx * MathUtility.random(1.1f, 1.21f), mc.player.getMotion().y - 0.02f, dz * MathUtility.random(1.1f, 1.21f));
if (ticks.finished(50)) {
mc.player.setPosition(
pos.getX() + dx,
pos.getY(),
pos.getZ() + dz
);
ticks.reset();
}
mc.player.setVelocity(dx * MathUtility.random(1.1f, 1.21f), mc.player.getMotion().y + 0.016f, dz * MathUtility.random(1.1f, 1.21f));
}
}
SS:
Лик