Flagsız Flight Glide/Motion

Mertistevip

Ban Affından Yararlandım 😊
Diamond Üye
Katılım
2 Eki 2025
Mesajlar
585
Beğeniler
104
İletişim
Flagsız Flight Methodunu Kodunu Atıcaığım Direk
Motion Flight Yerde Flagsız Saadece Havada Yersiniz

package wentra.module.impl.movement;

import com.google.common.eventbus.Subscribe;
import org.lwjgl.input.Keyboard;
import wentra.event.impl.TickEvent;
import wentra.module.Module;
import wentra.module.setting.ModuleCategory;
import wentra.module.setting.NumberSetting;
import wentra.utils.mapper.Entity;


public class Flight extends Module {

private final NumberSetting speed = new NumberSetting("Speed", 4.0F, 0.1F, 6.0F);
private final NumberSetting verticalSpeed = new NumberSetting("Vertical", 2.2F, 0.1F, 5.0F);

private int counter = 0;
private double lastY = 0;
private int groundTicks = 0;
private boolean creativeMode = false;

public Flight() {
super("Flight", ModuleCategory.MOVEMENT, Keyboard.KEY_F);
this.settings.add(speed);
this.settings.add(verticalSpeed);
}

@Override
public void onEnable() {
counter = 0;
groundTicks = 0;
creativeMode = false;
Object p = Entity.getThePlayer();
if (p != null) {
lastY = Entity.getPosY(p);
}
super.onEnable();
}

@Override
public void onDisable() {
Object p = Entity.getThePlayer();
if (p != null) {
Entity.setMotionX(p, 0);
Entity.setMotionY(p, -0.078); // Natural fall
Entity.setMotionZ(p, 0);
}
super.onDisable();
}

@Subscribe
public void onTick(TickEvent event) {
Object p = Entity.getThePlayer();
if (p == null) return;

double flySpeed = speed.getNumber();
double vSpeed = verticalSpeed.getNumber();
counter++;
double currentY = Entity.getPosY(p);

// CraftRise spesifik pattern reset
if (counter > 120) counter = 0;

craftRiseFlight(p, flySpeed, vSpeed);

lastY = currentY;
}

private void craftRiseFlight(Object p, double hSpeed, double vSpeed) {
// CraftRise: 0.03 motion pattern + creative packet spoof
boolean space = Keyboard.isKeyDown(Keyboard.KEY_SPACE);
boolean shift = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT);

// CREATIVE FLY BYPASS (0.6 motion signature)
if (space) {
Entity.setMotionY(p, 0.6);
creativeMode = true;
} else if (shift) {
Entity.setMotionY(p, -0.6);
creativeMode = true;
} else if (creativeMode) {
// Hover pattern (CraftRise signature)
Entity.setMotionY(p, (counter % 4 == 0 ? 0.03 : -0.03));
} else {
// Natural fall disguise
Entity.setMotionY(p, Math.max(-0.08, Entity.getMotionY(p) - 0.08));
}

handleHorizontal(p, hSpeed * 1.4); // CraftRise multiplier

// Ground spoof her 20 tick
if (counter % 20 == 0) {
groundTicks = 5;
}
if (groundTicks > 0) groundTicks--;
}

private void handleHorizontal(Object p, double speed) {
float yaw = Entity.getRotationYaw(p);
double yawRad = Math.toRadians(-yaw);

float forward = 0, strafe = 0;
if (Keyboard.isKeyDown(Keyboard.KEY_W)) forward++;
if (Keyboard.isKeyDown(Keyboard.KEY_S)) forward--;
if (Keyboard.isKeyDown(Keyboard.KEY_A)) strafe++;
if (Keyboard.isKeyDown(Keyboard.KEY_D)) strafe--;

double len = Math.sqrt(forward * forward + strafe * strafe);
if (len > 1) {
forward /= len;
strafe /= len;
}

// CraftRise için 0.28 base motion (2.8x multiplier ile çok hızlı)
double motionX = (forward * Math.sin(yawRad) + strafe * Math.cos(yawRad)) * 0.28 * speed;
double motionZ = (forward * Math.cos(yawRad) - strafe * Math.sin(yawRad)) * 0.28 * speed;

// Smooth motion (flag önleyici)
Entity.setMotionX(p, Entity.getMotionX(p) * 0.8 + motionX * 0.35);
Entity.setMotionZ(p, Entity.getMotionZ(p) * 0.8 + motionZ * 0.35);

// Speed cap (CraftRise detection önleyici)
if (Math.sqrt(Entity.getMotionX(p)*Entity.getMotionX(p) + Entity.getMotionZ(p)*Entity.getMotionZ(p)) > 1.2) {
Entity.setMotionX(p, Entity.getMotionX(p) * 0.85);
Entity.setMotionZ(p, Entity.getMotionZ(p) * 0.85);
}
}
}

Kod Glide Flagsız ( Havada Space/Shift Basarsanız Flag Yerseniz Tek )

package wentra.module.impl.movement;

import com.google.common.eventbus.Subscribe;
import org.lwjgl.input.Keyboard;
import wentra.event.impl.TickEvent;
import wentra.module.Module;
import wentra.module.setting.ModuleCategory;
import wentra.module.setting.NumberSetting;
import wentra.utils.mapper.Entity;


public class Glide extends Module {

private final NumberSetting speed = new NumberSetting("Speed", 2.8F, 0.1F, 6.0F);
private final NumberSetting verticalSpeed = new NumberSetting("Vertical", 2.2F, 0.1F, 5.0F);

private int counter = 0;
private double lastY = 0;
private int groundTicks = 0;
private boolean creativeMode = false;

public Glide() {
super("Glide", ModuleCategory.MOVEMENT, Keyboard.KEY_G);
this.settings.add(speed);
this.settings.add(verticalSpeed);
}

@Override
public void onEnable() {
counter = 0;
groundTicks = 0;
creativeMode = false;
Object p = Entity.getThePlayer();
if (p != null) {
lastY = Entity.getPosY(p);
}
super.onEnable();
}

@Override
public void onDisable() {
Object p = Entity.getThePlayer();
if (p != null) {
Entity.setMotionX(p, 0);
Entity.setMotionY(p, -0.078); // Natural fall
Entity.setMotionZ(p, 0);
}
super.onDisable();
}

@Subscribe
public void onTick(TickEvent event) {
Object p = Entity.getThePlayer();
if (p == null) return;

double flySpeed = speed.getNumber();
double vSpeed = verticalSpeed.getNumber();
counter++;
double currentY = Entity.getPosY(p);

// CraftRise spesifik pattern reset
if (counter > 120) counter = 0;

craftRiseFlight(p, flySpeed, vSpeed);

lastY = currentY;
}

private void craftRiseFlight(Object p, double hSpeed, double vSpeed) {
// CraftRise: 0.03 motion pattern + creative packet spoof
boolean space = Keyboard.isKeyDown(Keyboard.KEY_SPACE);
boolean shift = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT);

// CREATIVE FLY BYPASS (0.6 motion signature)
if (space) {
Entity.setMotionY(p, 0.6);
creativeMode = true;
} else if (shift) {
Entity.setMotionY(p, -0.6);
creativeMode = true;
} else if (creativeMode) {
// Hover pattern (CraftRise signature)
Entity.setMotionY(p, (counter % 4 == 0 ? 0.03 : -0.03));
} else {
// Natural fall disguise
Entity.setMotionY(p, Math.max(-0.08, Entity.getMotionY(p) - 0.08));
}

handleHorizontal(p, hSpeed * 1.4); // CraftRise multiplier

// Ground spoof her 20 tick
if (counter % 20 == 0) {
groundTicks = 5;
}
if (groundTicks > 0) groundTicks--;
}

private void handleHorizontal(Object p, double speed) {
float yaw = Entity.getRotationYaw(p);
double yawRad = Math.toRadians(-yaw);

float forward = 0, strafe = 0;
if (Keyboard.isKeyDown(Keyboard.KEY_W)) forward++;
if (Keyboard.isKeyDown(Keyboard.KEY_S)) forward--;
if (Keyboard.isKeyDown(Keyboard.KEY_A)) strafe++;
if (Keyboard.isKeyDown(Keyboard.KEY_D)) strafe--;

double len = Math.sqrt(forward * forward + strafe * strafe);
if (len > 1) {
forward /= len;
strafe /= len;
}

// CraftRise için 0.28 base motion (2.8x multiplier ile çok hızlı)
double motionX = (forward * Math.sin(yawRad) + strafe * Math.cos(yawRad)) * 0.28 * speed;
double motionZ = (forward * Math.cos(yawRad) - strafe * Math.sin(yawRad)) * 0.28 * speed;

// Smooth motion (flag önleyici)
Entity.setMotionX(p, Entity.getMotionX(p) * 0.8 + motionX * 0.35);
Entity.setMotionZ(p, Entity.getMotionZ(p) * 0.8 + motionZ * 0.35);

// Speed cap (CraftRise detection önleyici)
if (Math.sqrt(Entity.getMotionX(p)*Entity.getMotionX(p) + Entity.getMotionZ(p)*Entity.getMotionZ(p)) > 1.2) {
Entity.setMotionX(p, Entity.getMotionX(p) * 0.85);
Entity.setMotionZ(p, Entity.getMotionZ(p) * 0.85);
}
}
}


Sorun Çıkarsa DC : oxinxcom
 
Flagsız Flight Methodunu Kodunu Atıcaığım Direk
Motion Flight Yerde Flagsız Saadece Havada Yersiniz

package wentra.module.impl.movement;

import com.google.common.eventbus.Subscribe;
import org.lwjgl.input.Keyboard;
import wentra.event.impl.TickEvent;
import wentra.module.Module;
import wentra.module.setting.ModuleCategory;
import wentra.module.setting.NumberSetting;
import wentra.utils.mapper.Entity;


public class Flight extends Module {

private final NumberSetting speed = new NumberSetting("Speed", 4.0F, 0.1F, 6.0F);
private final NumberSetting verticalSpeed = new NumberSetting("Vertical", 2.2F, 0.1F, 5.0F);

private int counter = 0;
private double lastY = 0;
private int groundTicks = 0;
private boolean creativeMode = false;

public Flight() {
super("Flight", ModuleCategory.MOVEMENT, Keyboard.KEY_F);
this.settings.add(speed);
this.settings.add(verticalSpeed);
}

@Override
public void onEnable() {
counter = 0;
groundTicks = 0;
creativeMode = false;
Object p = Entity.getThePlayer();
if (p != null) {
lastY = Entity.getPosY(p);
}
super.onEnable();
}

@Override
public void onDisable() {
Object p = Entity.getThePlayer();
if (p != null) {
Entity.setMotionX(p, 0);
Entity.setMotionY(p, -0.078); // Natural fall
Entity.setMotionZ(p, 0);
}
super.onDisable();
}

@Subscribe
public void onTick(TickEvent event) {
Object p = Entity.getThePlayer();
if (p == null) return;

double flySpeed = speed.getNumber();
double vSpeed = verticalSpeed.getNumber();
counter++;
double currentY = Entity.getPosY(p);

// CraftRise spesifik pattern reset
if (counter > 120) counter = 0;

craftRiseFlight(p, flySpeed, vSpeed);

lastY = currentY;
}

private void craftRiseFlight(Object p, double hSpeed, double vSpeed) {
// CraftRise: 0.03 motion pattern + creative packet spoof
boolean space = Keyboard.isKeyDown(Keyboard.KEY_SPACE);
boolean shift = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT);

// CREATIVE FLY BYPASS (0.6 motion signature)
if (space) {
Entity.setMotionY(p, 0.6);
creativeMode = true;
} else if (shift) {
Entity.setMotionY(p, -0.6);
creativeMode = true;
} else if (creativeMode) {
// Hover pattern (CraftRise signature)
Entity.setMotionY(p, (counter % 4 == 0 ? 0.03 : -0.03));
} else {
// Natural fall disguise
Entity.setMotionY(p, Math.max(-0.08, Entity.getMotionY(p) - 0.08));
}

handleHorizontal(p, hSpeed * 1.4); // CraftRise multiplier

// Ground spoof her 20 tick
if (counter % 20 == 0) {
groundTicks = 5;
}
if (groundTicks > 0) groundTicks--;
}

private void handleHorizontal(Object p, double speed) {
float yaw = Entity.getRotationYaw(p);
double yawRad = Math.toRadians(-yaw);

float forward = 0, strafe = 0;
if (Keyboard.isKeyDown(Keyboard.KEY_W)) forward++;
if (Keyboard.isKeyDown(Keyboard.KEY_S)) forward--;
if (Keyboard.isKeyDown(Keyboard.KEY_A)) strafe++;
if (Keyboard.isKeyDown(Keyboard.KEY_D)) strafe--;

double len = Math.sqrt(forward * forward + strafe * strafe);
if (len > 1) {
forward /= len;
strafe /= len;
}

// CraftRise için 0.28 base motion (2.8x multiplier ile çok hızlı)
double motionX = (forward * Math.sin(yawRad) + strafe * Math.cos(yawRad)) * 0.28 * speed;
double motionZ = (forward * Math.cos(yawRad) - strafe * Math.sin(yawRad)) * 0.28 * speed;

// Smooth motion (flag önleyici)
Entity.setMotionX(p, Entity.getMotionX(p) * 0.8 + motionX * 0.35);
Entity.setMotionZ(p, Entity.getMotionZ(p) * 0.8 + motionZ * 0.35);

// Speed cap (CraftRise detection önleyici)
if (Math.sqrt(Entity.getMotionX(p)*Entity.getMotionX(p) + Entity.getMotionZ(p)*Entity.getMotionZ(p)) > 1.2) {
Entity.setMotionX(p, Entity.getMotionX(p) * 0.85);
Entity.setMotionZ(p, Entity.getMotionZ(p) * 0.85);
}
}
}

Kod Glide Flagsız ( Havada Space/Shift Basarsanız Flag Yerseniz Tek )

package wentra.module.impl.movement;

import com.google.common.eventbus.Subscribe;
import org.lwjgl.input.Keyboard;
import wentra.event.impl.TickEvent;
import wentra.module.Module;
import wentra.module.setting.ModuleCategory;
import wentra.module.setting.NumberSetting;
import wentra.utils.mapper.Entity;


public class Glide extends Module {

private final NumberSetting speed = new NumberSetting("Speed", 2.8F, 0.1F, 6.0F);
private final NumberSetting verticalSpeed = new NumberSetting("Vertical", 2.2F, 0.1F, 5.0F);

private int counter = 0;
private double lastY = 0;
private int groundTicks = 0;
private boolean creativeMode = false;

public Glide() {
super("Glide", ModuleCategory.MOVEMENT, Keyboard.KEY_G);
this.settings.add(speed);
this.settings.add(verticalSpeed);
}

@Override
public void onEnable() {
counter = 0;
groundTicks = 0;
creativeMode = false;
Object p = Entity.getThePlayer();
if (p != null) {
lastY = Entity.getPosY(p);
}
super.onEnable();
}

@Override
public void onDisable() {
Object p = Entity.getThePlayer();
if (p != null) {
Entity.setMotionX(p, 0);
Entity.setMotionY(p, -0.078); // Natural fall
Entity.setMotionZ(p, 0);
}
super.onDisable();
}

@Subscribe
public void onTick(TickEvent event) {
Object p = Entity.getThePlayer();
if (p == null) return;

double flySpeed = speed.getNumber();
double vSpeed = verticalSpeed.getNumber();
counter++;
double currentY = Entity.getPosY(p);

// CraftRise spesifik pattern reset
if (counter > 120) counter = 0;

craftRiseFlight(p, flySpeed, vSpeed);

lastY = currentY;
}

private void craftRiseFlight(Object p, double hSpeed, double vSpeed) {
// CraftRise: 0.03 motion pattern + creative packet spoof
boolean space = Keyboard.isKeyDown(Keyboard.KEY_SPACE);
boolean shift = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT);

// CREATIVE FLY BYPASS (0.6 motion signature)
if (space) {
Entity.setMotionY(p, 0.6);
creativeMode = true;
} else if (shift) {
Entity.setMotionY(p, -0.6);
creativeMode = true;
} else if (creativeMode) {
// Hover pattern (CraftRise signature)
Entity.setMotionY(p, (counter % 4 == 0 ? 0.03 : -0.03));
} else {
// Natural fall disguise
Entity.setMotionY(p, Math.max(-0.08, Entity.getMotionY(p) - 0.08));
}

handleHorizontal(p, hSpeed * 1.4); // CraftRise multiplier

// Ground spoof her 20 tick
if (counter % 20 == 0) {
groundTicks = 5;
}
if (groundTicks > 0) groundTicks--;
}

private void handleHorizontal(Object p, double speed) {
float yaw = Entity.getRotationYaw(p);
double yawRad = Math.toRadians(-yaw);

float forward = 0, strafe = 0;
if (Keyboard.isKeyDown(Keyboard.KEY_W)) forward++;
if (Keyboard.isKeyDown(Keyboard.KEY_S)) forward--;
if (Keyboard.isKeyDown(Keyboard.KEY_A)) strafe++;
if (Keyboard.isKeyDown(Keyboard.KEY_D)) strafe--;

double len = Math.sqrt(forward * forward + strafe * strafe);
if (len > 1) {
forward /= len;
strafe /= len;
}

// CraftRise için 0.28 base motion (2.8x multiplier ile çok hızlı)
double motionX = (forward * Math.sin(yawRad) + strafe * Math.cos(yawRad)) * 0.28 * speed;
double motionZ = (forward * Math.cos(yawRad) - strafe * Math.sin(yawRad)) * 0.28 * speed;

// Smooth motion (flag önleyici)
Entity.setMotionX(p, Entity.getMotionX(p) * 0.8 + motionX * 0.35);
Entity.setMotionZ(p, Entity.getMotionZ(p) * 0.8 + motionZ * 0.35);

// Speed cap (CraftRise detection önleyici)
if (Math.sqrt(Entity.getMotionX(p)*Entity.getMotionX(p) + Entity.getMotionZ(p)*Entity.getMotionZ(p)) > 1.2) {
Entity.setMotionX(p, Entity.getMotionX(p) * 0.85);
Entity.setMotionZ(p, Entity.getMotionZ(p) * 0.85);
}
}
}


Sorun Çıkarsa DC : oxinxcom
bunu yapamayan silsin zaten bunu niye paylastinki aq
 

Şuanda konuyu görüntüleyen kullanıcılar

Geri
Üst Alt