Source Free SRC Strafe Elytra Boost SunRise For Minecraft

CrazyTrap

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Jul 18, 2023
Messages
707
Reaction score
3
Attention, all Minecraft enthusiasts and dedicated players! Your search for the ultimate Minecraft source ends here! Introducing "Strafe elytra boost SunRise" the most exceptional and sought-after resource that will undoubtedly elevate your gaming experience to new heights. We, as passionate players ourselves, deeply comprehend the significance of having reliable and effective tools to enhance your gameplay in this blocky universe.

In this exclusive thread, we take immense pride in presenting to you the carefully curated "Minecraft Cheat Sources" section. Within this esteemed collection, you will find a diverse array of top-notch resources, all available for free download. Our team of experts has tirelessly tested each source to ensure its quality and reliability, leaving you with the peace of mind to delve into the game without any worries.

i

Strafe Elytra Boost SunRise:​

Code:
package toffifree.toffi.game.module.impl.Movement;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.MobEffects;
import net.minecraft.item.ItemStack;
import toffifree.toffi.game.event.EventTarget;
import toffifree.toffi.game.event.events.impl.player.EventMove;
import toffifree.toffi.game.event.events.impl.player.EventPreMotion;
import toffifree.toffi.game.event.events.impl.player.EventUpdate;
import toffifree.toffi.game.module.Module;
import toffifree.toffi.game.ui.settings.impl.BooleanSetting;
import toffifree.toffi.game.ui.settings.impl.ListSetting;
import toffifree.toffi.game.ui.settings.impl.NumberSetting;
import toffifree.toffi.game.utils.Helper;
import toffifree.toffi.game.utils.math.TimerHelper;
import toffifree.toffi.game.utils.movement.MoveUtility;
import toffifree.toffi.game.utils.movement.MovementUtils;
import toffifree.toffi.game.utils.otherutils.EventMotion;
import toffifree.toffi.game.module.impl.ModuleCategory;
import net.minecraft.init.Items;
import net.minecraft.inventory.ClickType;
import net.minecraft.network.play.client.CPacketEntityAction;

import java.util.Random;

public class Strafe extends Module {
    public ListSetting mode = new ListSetting("Обход:", "Matrix", "Matrix");
    private float waterTicks = 0;
    public BooleanSetting elytra = new BooleanSetting("Ускорение с элитрой", false);
    public NumberSetting speed2 = new NumberSetting("Скорость", 0.8f, 0.3f, 0.9f, 0.1f, () -> elytra.getCurrentValue());

    TimerHelper timerUtility = new TimerHelper();
    public static double oldSpeed, contextFriction;
    public static boolean needSwap, prevSprint, needSprintState;
    public static int counter, noSlowTicks;
    private int ticks;
    public Strafe() {
        super("Strafe", ModuleCategory.Movement);
        addSettings(mode, elytra, speed2);
    }

    @EventTarget
    public void e(EventMotion e) {
        if (mode.currentMode.equals("Matrix")) {
            if (waterTicks > 0) return;
            if (MoveUtility.isMoving() && MoveUtility.getMotion() <= 0.239385188) {
                if (!e.isOnGround()) {
                    MoveUtility.setStrafe(MoveUtility.reason(false) || mc.player.isHandActive()
                            ? MoveUtility.getMotion() - 0.00001f : 0.245f - (new Random().nextFloat() * 0.000001f));
                }
            }
        }
    }

        @EventTarget
    public void f(EventUpdate f) {
            if (!elytra.getCurrentValue()) return;
            int elytra = getHotbarSlotOfItem();

            if (Helper.mc.player.isInWater() || Helper.mc.player.isInLava() || waterTicks > 0 || elytra == -1 || Helper.mc.player.isInWeb)
                return;
            if (Helper.mc.player.fallDistance != 0 && Helper.mc.player.fallDistance < 0.1 && Helper.mc.player.motionY < -0.1) {
                if (elytra != -2) {
                    Helper.mc.playerController.windowClick(0, elytra, 1, ClickType.PICKUP, Helper.mc.player);
                    Helper.mc.playerController.windowClick(0, 6, 1, ClickType.PICKUP, Helper.mc.player);
                }
                Helper.mc.getConnection().sendPacket(new CPacketEntityAction(Helper.mc.player, CPacketEntityAction.Action.START_FALL_FLYING));
                Helper.mc.getConnection().sendPacket(new CPacketEntityAction(Helper.mc.player, CPacketEntityAction.Action.START_FALL_FLYING));

                if (elytra != -2) {
                    Helper.mc.playerController.windowClick(0, 6, 1, ClickType.PICKUP, Helper.mc.player);
                    Helper.mc.playerController.windowClick(0, elytra, 1, ClickType.PICKUP, Helper.mc.player);
                }
            }
        }

    @EventTarget
    public void h(EventPreMotion eventPreMotion) {
        int elytraSlot = getHotbarSlotOfItem();


        if (elytra.getCurrentValue() && elytraSlot != -1) {

            if (MoveUtility.isMoving() && !Helper.mc.player.onGround && Helper.mc.player.fallDistance >= 0.1) {
                MoveUtility.setMotion(speed2.getCurrentValue());
            }
        }
    }

    @Override
    public void onEnable() {
        oldSpeed = 0;
        super.onEnable();
    }

    public boolean strafes() {

        if (Helper.mc.player == null)
            return false;
        if (Helper.mc.player.isSneaking()) {
            return false;
        }
        if (Helper.mc.player.isInLava()) {
            return false;
        }
        if (Helper.mc.player.capabilities.isFlying) {
            return false;
        }
        return true;
    }

    public static double calculateSpeed(EventMove move) {
        Minecraft mc = Minecraft.getMinecraft();
        boolean fromGround = mc.player.onGround;
        boolean toGround = mc.player.onGround;
        boolean jump = mc.player.motionZ > 0;
        float speedAttributes = getAIMoveSpeed(mc.player);
        float n6 = mc.player.isPotionActive(MobEffects.JUMP_BOOST) && mc.player.isHandActive() ? 0.88f : (float) (oldSpeed > 0.32 && mc.player.isHandActive() ? 0.88 : 0.91F);
        float n7 = (float) (0.16277135908603668 / Math.pow(n6, 3.01));
        float n8;
        if (fromGround) {
            n8 = speedAttributes * n7;
            if (jump) {
                n8 += 0.2f;
            }
        } else {
            n8 = 0.0255f;
        }
        boolean noslow = false;
        double max2 = oldSpeed + n8;
        double max = 0.0;
        if (mc.player.isHandActive() && !jump) {
            double n10 = oldSpeed + n8 * 0.25;
            double motionY2 = mc.player.motionY;
            if (motionY2 != 0.0 && Math.abs(motionY2) < 0.08) {
                n10 += 0.055;
            }
            if (max2 > (max = Math.max(0.043, n10))) {
                noslow = true;
                ++noSlowTicks;
            } else {
                noSlowTicks = Math.max(noSlowTicks - 1, 0);
            }
        } else {
            noSlowTicks = 0;
        }
        if (noSlowTicks > 3) {
            max2 = max - 0.019;
        } else {
            max2 = Math.max(noslow ? 0 : 0.25, max2) - (counter++ % 2 == 0 ? 0.001 : 0.002);
        }
        contextFriction = n6;
        if (!toGround && !fromGround) {
            needSwap = true;
        } else {
            prevSprint = false;
        }
        if (toGround && fromGround) {
            needSprintState = false;
        }
        return max2;
    }

    public static void postMove(double horizontal) {
        oldSpeed = horizontal * contextFriction;
    }

    public static float getAIMoveSpeed(EntityPlayer contextPlayer) {
        boolean prevSprinting = contextPlayer.isSprinting();
        contextPlayer.setSprinting(false);
        float speed = contextPlayer.getAIMoveSpeed() * 1.3f;
        contextPlayer.setSprinting(prevSprinting);
        return speed;
    }

    private int getHotbarSlotOfItem() {
        for (ItemStack stack : Helper.mc.player.getArmorInventoryList()) {
            if (stack.getItem() == Items.ELYTRA) {
                return -2;
            }
        }
        int slot = -1;
        for (int i = 0; i < 36; i++) {
            ItemStack s = Helper.mc.player.inventory.getStackInSlot(i);
            if (s.getItem() == Items.ELYTRA) {
                slot = i;
                break;
            }
        }
        if (slot < 9 && slot != -1) {
            slot = slot + 36;
        }
        return slot;
    }
}
 
Top