Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

Исходник Minced 1.16.5 leaked

  • Автор темы Автор темы xolizer
  • Дата начала Дата начала
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
говно и не уверен что тот билд даже, минсед сам по себе чит норм но блять что ты слил билд который 3 года назад был?


жвыажв:
Expand Collapse Copy
package ru.minced.client.modules.impl.combat;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.NonFinal;
import net.minecraft.block.Blocks;
import net.minecraft.client.entity.player.RemoteClientPlayerEntity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.UseAction;
import net.minecraft.network.play.client.CPlayerDiggingPacket;
import net.minecraft.network.play.client.CPlayerTryUseItemPacket;
import net.minecraft.potion.Effects;
import net.minecraft.util.Direction;
import net.minecraft.util.Hand;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import net.minecraft.util.text.TextFormatting;
import ru.minced.Minced;
import ru.minced.api.systems.Singleton;
import ru.minced.api.systems.attackaura.*;
import ru.minced.api.systems.event.EventHandler;
import ru.minced.api.systems.event.events.impl.player.*;
import ru.minced.api.utilities.chat.ChatUtility;
import ru.minced.api.utilities.math.MathUtility;
import ru.minced.api.utilities.player.PlayerUtility;
import ru.minced.api.utilities.servers.ServerUtility;
import ru.minced.api.utilities.settings.impl.*;
import ru.minced.api.utilities.targetesp.animation.rotation.RotationAnimation;
import ru.minced.api.utilities.timer.TimerUtility;
import ru.minced.client.modules.Module;
import ru.minced.client.modules.api.Category;
import ru.minced.client.modules.api.ModuleInfo;
import ru.minced.client.modules.impl.movement.Speed;

@ModuleInfo(name = "Attack Aura", description = "Автоматически бьет Entity", category = Category.COMBAT)
public class AttackAura extends Module {
    public static final Singleton<AttackAura> INSTANCE = Singleton.create(() -> Module.link(AttackAura.class));
    private final TargetSelector targetSelector = new TargetSelector();

    @Getter
    private LivingEntity target;
    @Getter
    @Setter
    private Vector2f rotationVector = new Vector2f(0, 0);
    private final TabSetting tab = new TabSetting("Вкладка", this, "Main Settings", "Main Settings", "Rotation Settings");

    // Rotation Settings
    public final ModeSetting rotation = new ModeSetting("Ротация", this, "Default", () -> tab.is("Rotation Settings"), "Default", "Snap", "New", "Builder");
    public final BooleanSetting spookyTime = new BooleanSetting("Универсальная", this, () -> tab.is("Rotation Settings") && rotation.is("New"));
    public final BooleanSetting smoothNew = new BooleanSetting("Плавная", this, () -> tab.is("Rotation Settings") && !spookyTime.isEnabled() && rotation.is("New"));

    // Builder Rotation Settings
    public final BooleanSetting smooth = new BooleanSetting("Smooth", this, () -> tab.is("Rotation Settings") && rotation.is("Builder"));
    public final ModeSetting smoothMode = new ModeSetting("Smooth Mode", this, "Interpolation", () -> tab.is("Rotation Settings") && rotation.is("Builder") && smooth.isEnabled(), "Interpolation", "AI");
    public final BooleanSetting smoothRandomSpeed = new BooleanSetting("Smooth Random Speed", this, () -> tab.is("Rotation Settings") && smooth.isEnabled() && rotation.is("Builder"));

    public final SliderSetting smoothSpeedMin = new SliderSetting("Smooth Speed", this,
            2.0F, 1, 20, 0.01F, () -> tab.is("Rotation Settings") && smooth.isEnabled() && rotation.is("Builder"));
    public final SliderSetting smoothSpeedMax = new SliderSetting("Smooth Speed Max", this,
            2.0F, 1, 20, 0.01F, () -> tab.is("Rotation Settings") && smooth.isEnabled() && rotation.is("Builder") && smoothRandomSpeed.isEnabled());

    public final BooleanSetting randomization = new BooleanSetting("Randomization", this, () -> tab.is("Rotation Settings") && rotation.is("Builder"));
    public final ModeSetting randomizationMode = new ModeSetting("Randomization Mode", this, "Simple", () -> rotation.is("Builder") && tab.is("Rotation Settings") && randomization.isEnabled(), "Simple", "AI");

    public final BooleanSetting reverseRotate = new BooleanSetting("Reverse Rotate", this, () -> tab.is("Rotation Settings") && rotation.is("Builder"));

    // Main Settings
    private final MultiBoxSetting targetType = new MultiBoxSetting("Таргеты", this, () -> tab.is("Main Settings"),
            "Players",
            "Mobs",
            "Animals",
            "Friends");

    private final ModeSetting moveFix = new ModeSetting("Коррекция", this, "Нет", () -> tab.is("Main Settings"), "Нет", "Свободная", "Сфокусированная", "Полная");

    @Getter
    private final SliderSetting maxDistance = new SliderSetting("Дистанция", this,
            3.05F, 2.5F, 6.0F, 0.01F, () -> tab.is("Main Settings"));
    @Getter
    private final SliderSetting maxPreDistance = new SliderSetting("Пре-Дистанция", this,
            0.3F, 0.0F, 6, 0.1F, () -> tab.is("Main Settings"));

    private final BooleanSetting unpressShield = new BooleanSetting("Отжимать щит", this, () -> tab.is("Main Settings"));
    private final BooleanSetting noAttackEat = new BooleanSetting("Не бить если кушаешь", this, () -> tab.is("Main Settings"));
    public final BooleanSetting randomFd = new BooleanSetting("Рандомная дистанция падения", this, () -> tab.is("Main Settings"));
    private final BooleanSetting resolver = new BooleanSetting("Резольвер", this, () -> tab.is("Main Settings"));
    private final BooleanSetting rayTrace = new BooleanSetting("Проверка наводки на Entity", this, () -> tab.is("Main Settings"));
    private final BooleanSetting rayTraceRet = new BooleanSetting("100% Accuracy", this, () -> tab.is("Main Settings") && rayTrace.isEnabled());

    public final BooleanSetting backtrack = new BooleanSetting("Бить в BackTrack", this, () -> tab.is("Main Settings"));
    public final BooleanSetting legitSprint = new BooleanSetting("Легит спринт", this, () -> tab.is("Main Settings"));
    public final ModeSetting sprintSpeed = new ModeSetting("Сброс Спринта", this, "Новый", () -> tab.is("Main Settings") && legitSprint.isEnabled(), "Новый", "Старый");

    private final BooleanSetting breakShield = new BooleanSetting("Ломать Щит", this, () -> tab.is("Main Settings"));
    public final BooleanSetting onlyCriticals = new BooleanSetting("Бить критами", this, () -> tab.is("Main Settings"));
    public final BooleanSetting spaceOnly = new BooleanSetting("Крит, только в прыжке", this, () -> tab.is("Main Settings") && onlyCriticals.isEnabled());

    private float snapTicks;
    private boolean hasResetRotation = true;
    private boolean hasTarget = false;
    public boolean lookingAtTarget = false;
    private boolean shield;

    public boolean critTick = false;

    @NonFinal
    @Getter @Setter int fdCount;
    @Getter
    int attacks;
    public final TimerUtility attackTimer = new TimerUtility();
    final TimerUtility disableTimer = new TimerUtility();
    public boolean hitTick = false;

    @EventHandler
    public void onUpdateEventzzz(EventTick event) {
        if (mc.player == null || mc.world == null) {
            critTick = false;
            return;
        }
        critTick = HitUtility.INSTANCE.get().canHit(onlyCriticals.isEnabled(), spaceOnly.isEnabled());
    }

    @EventHandler
    public void onUpdateEvent(EventUpdate event) {
        target = updateTarget();
        if (target != null) {
            resolvePlayers();
            updateAttack();
            restorePlayers();
            hasResetRotation = false;
            hasTarget = true;
        } else {
            if (!hasResetRotation) {
                if (shouldReverseRotate() || (rotation.is("New") && !smoothNew.isEnabled())) {
                    Minced.getInstance().getReverseRotate().resetRotation(this.rotationVector);
                }
                this.rotationVector = new Vector2f(mc.player.rotationYaw, mc.player.rotationPitch);
                lookingAtTarget = false;
                hasResetRotation = true;
            }
            hasTarget = false;
        }
    }

    private void updateAttack() {
        final HitUtility hitUtility = HitUtility.INSTANCE.get();
        boolean isFalling = critTick;
        boolean isElytraFlying = mc.player.isElytraFlying();

        if (rotation.is("Snap") && !isElytraFlying) {
            if (isFalling) {
                attackTarget(hitUtility);
                snapTicks = 2;
            }

            if (snapTicks > 0 && this.target.getDistance(mc.player) < this.maxDistance.getValue()) {
                updateRotations(false);
                snapTicks--;
            } else {
                this.rotationVector = new Vector2f(mc.player.rotationYaw, mc.player.rotationPitch);
            }
        } else if (rotation.is("Default") || rotation.is("Builder") || rotation.is("New") || isElytraFlying) {
            if (isFalling) {
                attackTarget(hitUtility);
            }
            updateRotations(false);
        }
    }

    public Vector2f correctRotation(Vector2f rotationVector) {
        float yaw = MathHelper.wrapDegrees(rotationVector.x);
        float pitch = Math.max(-90, Math.min(90, rotationVector.y));

        float gcd = RotateUtility.INSTANCE.get().getGCDValue();
        yaw -= yaw % gcd;
        pitch -= pitch % gcd;

        return new Vector2f(yaw, pitch);
    }

    private void updateRotations(boolean attack) {
        if (attack && !rotation.is("Builder")) return;
        
        RotateUtility rotateUtility = RotateUtility.INSTANCE.get();
        Vector2f rotations = rotateUtility.getRotations(target, true, maxDistance.getValue());

        if (rotation.is("New")) {
            rotations.y = rotateUtility.rotation.getRotation().y;
            rotations.x = rotateUtility.rotation.getRotation().x;
        } else {
            if (rotation.is("Builder") && randomization.isEnabled()) {
                if (randomizationMode.is("AI")) {
                    rotations = rotateUtility.randomRotate(rotations, this.rotationVector, this.target);
                } else if (randomizationMode.is("Simple")) {
                    rotations = rotateUtility.randomRotate(rotations);
                }
            } else if (rotation.is("Default")) {
                rotations = rotateUtility.randomRotate(rotations);
            }

            boolean shouldFixGcd = true;
            if (rotation.is("Builder") && smooth.isEnabled()) {
                double mul = Math.random() * 26;
                float randVal = smoothRandomSpeed.isEnabled() ? MathUtility.random(smoothSpeedMin.getValue(), smoothSpeedMax.getValue()) : smoothSpeedMin.getValue();
                if (smoothMode.is("AI")) {
                    float smoothFactor = (float) (randVal + mul);
                    rotations = rotateUtility.smoothRotateNew(this.rotationVector, rotations, smoothFactor);
                    shouldFixGcd = false;
                } else if (smoothMode.is("Interpolation")) {
                    rotations = rotateUtility.smoothRotate(rotationVector, rotations, randVal);
                }
            }

            if (shouldFixGcd) {
                rotations = correctRotation(rotations);
            }
        }

        rotationVector = rotations;

        lookingAtTarget = !this.rayTrace.isEnabled()|| RayTraceUtility.rayTraceWithBlock(maxDistance.getValue(), this.rotationVector.x, this.rotationVector.y, mc.player, target);
    }

    private boolean canHit(HitUtility hitUtility) {
        if (!lookingAtTarget) return false;

        if (this.rayTrace.isEnabled() && !RayTraceUtility.rayTraceWithBlock(getMaxDistance().getValue(), this.rotationVector.x, this.rotationVector.y, mc.player, target)) {
            if (rayTraceRet.isEnabled()) {
                return false;
            }
        }

        ElytraTarget elytraTarget = ElytraTarget.INSTANCE.get();
        RotateUtility rotateUtility = RotateUtility.INSTANCE.get();

        if (elytraTarget.shouldTarget(target, true)) {
            Vector3d targetVec = rotateUtility.getTargetVec();
            if (targetVec == null) return false;

            final String attackMode = elytraTarget.getWhenAttack().getCurrentMode();
            final double currentDistance = mc.player.getPositionVec().distanceTo(targetVec);

            if ((attackMode.equals("Когда дистанция") && currentDistance > elytraTarget.getAttackDistance().getValue())
                    || (attackMode.equals("Когда в хитбоксе") && !mc.player.getBoundingBox().intersects(AxisAlignedBB.fromVector(targetVec)))
                    || (attackMode.equals("Обычно") && target.getDistance(mc.player) > maxDistance.getValue())) {
                return false;
            }
        } else if (target.getDistance(mc.player) > maxDistance.getValue()) {
            return false;
        }

        return hitUtility.preHit(target, legitSprint.isEnabled() ? HitUtility.SprintReset.LEGIT : HitUtility.SprintReset.PACKET, breakShield.isEnabled());
    }

    private void attackTarget(HitUtility hitUtility) {
        if (noAttackEat.isEnabled() && mc.player.isHandActive() && !mc.player.isBlocking()) return;

        if (!canHit(hitUtility)) return;
        hitTick = true;
        updateRotations(true);
        attacks++;
        attackTimer.reset();

        shield = mc.player.isHandActive() && mc.player.getActiveItemStack().getItem().getUseAction(mc.player.getActiveItemStack()) == UseAction.BLOCK && unpressShield.isEnabled();
        if (shield) {
            mc.playerController.onStoppedUsingItem(mc.player);
        }

        hitUtility.upHitCooldown();

        mc.playerController.attackEntity(mc.player, this.target);
        mc.player.swingArm(Hand.MAIN_HAND);
        hitTick = false;
        if (mc.player.fallDistance > 0.08f) {
            fdCount = 0;
        } else {
            fdCount++;
        }

        hitUtility.postHit();
    }

    private void resolvePlayers() {
        if (resolver.isEnabled()) {
            for (PlayerEntity player : mc.world.getPlayers()) {
                if (player instanceof RemoteClientPlayerEntity) {
                    ((RemoteClientPlayerEntity) player).resolve();
                }
            }
        }
    }

    private void restorePlayers() {
        if (resolver.isEnabled()) {
            for (PlayerEntity player : mc.world.getPlayers()) {
                if (player instanceof RemoteClientPlayerEntity) {
                    ((RemoteClientPlayerEntity) player).releaseResolver();
                }
            }
        }
    }

    @EventHandler
    public void onMotion(EventMotion event) {
        if (target != null) {
            event.setYaw(rotationVector.x);
            event.setPitch(rotationVector.y);

            boolean visualRotation = !rotation.is("Snap") && !Minced.getInstance().isDeveloper();
            Vector2f visRot = visualRotation ? RotateUtility.INSTANCE.get().get(target.getPositionVec().add(0, target.getEyeHeight() / 2, 0)) :
                    rotationVector;

            mc.player.renderYawOffset = visRot.x;
            mc.player.rotationYawHead = visRot.x;
            mc.player.rotationPitchHead = visRot.y;
        }
    }

    @EventHandler
    public void onFixMove(EventFixMove event) {
        if (moveFix.is("Нет")) return;
        if (target != null) {
            event.setYaw(rotationVector.x);
            event.setPitch(rotationVector.y);
        }
    }

    @EventHandler
    public void onInput(EventInput event) {
        boolean shouldFix = moveFix.is("Полная") || Minced.getInstance().getModuleManager().get(Speed.class).isEnabled() || moveFix.is("Свободная") || rotation.is("Snap") || mc.player.isElytraFlying();
        if (moveFix.is("Нет")) return;
        if (!shouldFix) return;

        if (target != null) {
            float yaw = (rotation.is("Snap") && !mc.player.isElytraFlying()) || (moveFix.is("Свободная") && !mc.player.isElytraFlying())
                    ? mc.player.rotationYaw
                    : RotateUtility.INSTANCE.get().get(target.getPositionVec()).x;
            event.setYaw(this.rotationVector.x, yaw);
        }
    }

    @EventHandler
    public void onJump(EventJump event) {
        if (moveFix.is("Нет")) return;
        if (target != null) {
            event.setYaw(rotationVector.x);
        }
    }

    private float getPreDistance() {
        return ElytraTarget.INSTANCE.get().shouldTarget(mc.player, false) ? 32 : maxPreDistance.getValue();
    }

    private LivingEntity updateTarget() {
        TargetSelector.EntityFilter filter = new TargetSelector.EntityFilter(targetType);
        if (mc.world != null) targetSelector.searchTargets(mc.world.getAllEntities(), maxDistance.getValue() + this.getPreDistance());
        targetSelector.validateTarget(filter::isValid);
        return targetSelector.getCurrentTarget();
    }

    @Override
    public void onEnable() {
        lookingAtTarget = false;
        RotateUtility.INSTANCE.get().onEnable();
        super.onEnable();
    }

    @Override
    public void onDisable() {
        disableTimer.reset();
        lookingAtTarget = false;
        critTick = false;
        hitTick = false;
        if (hasTarget) {
            if (shouldReverseRotate() || (rotation.is("New") && !smoothNew.isEnabled())) {
                Minced.getInstance().getReverseRotate().resetRotation(this.rotationVector);
                this.rotationVector = new Vector2f(mc.player.rotationYaw, mc.player.rotationPitch);
            }
        }

        targetSelector.releaseTarget();
        target = null;

        super.onDisable();
    }

    public boolean shouldReverseRotate() {
        if (rotation.is("Builder") && reverseRotate.isEnabled()) return true;
        return false;
    }
}

Я не уверен чтобы это была ласт версия или хотя бы за месяц...
 
Версия за август
1762961137764.png

Билд с мая, это билд, который был у етк. Билду 6 месяцев.

Етк ещё тогда заратили, но слили почему то от какой то обиды, только сейчас)
Буквально, после его ухода был сделан 2.0 рекод, так как сидеть дальше на базе, которую етк писал со всем говнокодом было невозможно.
 
Назад
Сверху Снизу