Source Free Src BackTrack For Minecraft

CrazyTrap

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Jul 18, 2023
Messages
707
Reaction score
3
Unleash your imagination and expand your Minecraft horizons with our handpicked selection of resources, designed to enrich your gameplay in unimaginable ways. Whether you're a builder, explorer, or adventurer, our sources have something special in store for you. Embrace the excitement and take your Minecraft experience to new heights today!

1645394451_36-phonoteka-org-p-fon-mainkraft-dlya-stima-52.png

BackTrack:​

Code:
package incest.tusky.game.module.impl.combat;



import incest.tusky.game.module.Module;

import incest.tusky.game.setting.impl.NumberSetting;

import incest.tusky.game.util.render.RenderUtil;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.network.Packet;

import net.minecraft.util.Vec3;



import java.util.ArrayDeque;

import java.util.ArrayList;

import java.util.Deque;

import java.util.List;



public class BackTrack extends Module {




    public static EntityLivingBase target;

    public static List<Vec3> pastPositions = new ArrayList<>();

    public static List<Vec3> forwardPositions = new ArrayList<>();

    public static List<Vec3> positions = new ArrayList<>();

    private final Deque<Packet<?>> packets = new ArrayDeque<>();



    private final NumberSetting amount = new NumberSetting("Amount", this, 20, 1, 100, 1);

    private final NumberSetting forward = new NumberSetting("Forward", this, 20, 1, 100, 1);



    private int ticks;



    @Override

    public void onPreMotion(final PreMotionEvent event) {

        if (mc.thePlayer.ticksExisted < 5) {

            onDisable();

            return;

        }



        if (target == null) return;



        pastPositions.add(new Vec3(target.posX, target.posY, target.posZ));



        final double deltaX = (target.posX - target.lastTickPosX) * 2;

        final double deltaZ = (target.posZ - target.lastTickPosZ) * 2;



        forwardPositions.clear();

        int i = 0;

        while (forward.getValue() > forwardPositions.size()) {

            i++;

            forwardPositions.add(new Vec3(target.posX + deltaX * i, target.posY, target.posZ + deltaZ * i));

        }



        while (pastPositions.size() > (int) amount.getValue()) {

            pastPositions.remove(0);

        }



        positions.clear();

        positions.addAll(forwardPositions);

        positions.addAll(pastPositions);



        ticks++;

    }



    @Override

    public void onRender3DEvent(final Render3DEvent event) {

        if (target != null && !positions.isEmpty()) RenderUtil.renderBreadCrumbs(positions);

    }



    @Override

    public void onAttackEvent(final AttackEvent event) {

        if (event.getTarget() instanceof EntityPlayer) target = (EntityLivingBase) event.getTarget();

        ticks = 0;

    }



    @Override

    protected void onDisable() {

        target = null;

        positions.clear();

        pastPositions.clear();

        forwardPositions.clear();

        packets.clear();

    }



    @Override

    public void onPacketSend(final PacketSendEvent event) {



        /*

        if (target == null) return;
Packet p = event.getPacket();
packets.add(p);
event.setCancelled(true);
if ((int) amount.getValue() <= pastPositions.size()) {
for (final Packet thisPacket : packets) sendPacketNoEvent(thisPacket);
pastPositions.clear();
packets.clear();
        }*/

    }



}
 
Top