Исходник TriggerBot Funtime Разьеб | 2.0 exp

Начинающий
Статус
Оффлайн
Регистрация
20 Сен 2024
Сообщения
44
Реакции[?]
0
Поинты[?]
0

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

Короче опездалы триггер бот умный , доводит голову фт обходит , сброс спринта умны , Рандом движения + таймер при повороте ( есть строки чат gpt )
кто пишет /del идите нахуй
Java:
package hui.clowed.features.impl.combat;

import hui.clowed.events.Event;
import hui.clowed.events.impl.player.EventInput;
import hui.clowed.events.impl.player.EventInteractEntity;
import hui.clowed.events.impl.player.EventMotion;
import hui.clowed.events.impl.player.EventUpdate;
import hui.clowed.features.api.Category;
import hui.clowed.features.api.Feature;
import hui.clowed.features.api.FeatureInfo;
import hui.clowed.features.impl.player.AutoPotion;
import hui.clowed.features.settings.impl.BooleanSetting;
import hui.clowed.features.settings.impl.CustomIntegerSetting;
import hui.clowed.managers.Manager;
import hui.clowed.utils.math.GCDUtils;
import hui.clowed.utils.math.RayTraceUtils;
import hui.clowed.utils.movement.MovementUtils;
import net.minecraft.entity.Entity;

import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.network.play.client.CEntityActionPacket;
import net.minecraft.potion.Effects;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.EntityRayTraceResult;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.vector.Vector3d;
import hui.clowed.events.Event;
import hui.clowed.events.impl.player.EventInput;
import hui.clowed.events.impl.player.EventInteractEntity;
import hui.clowed.events.impl.player.EventMotion;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

import hui.clowed.events.impl.player.EventUpdate;
import hui.clowed.features.api.Category;
import hui.clowed.features.api.Feature;
import hui.clowed.features.api.FeatureInfo;
import hui.clowed.features.impl.player.AutoPotion;
import hui.clowed.features.settings.impl.BooleanSetting;
import hui.clowed.features.settings.impl.ModeSetting;
import hui.clowed.features.settings.impl.MultiBoxSetting;
import hui.clowed.features.settings.impl.SliderSetting;
import hui.clowed.managers.Manager;
import hui.clowed.utils.math.GCDUtils;
import hui.clowed.utils.math.RayTraceUtils;
import hui.clowed.utils.movement.MovementUtils;
import hui.clowed.utils.world.InventoryUtils;
import lombok.Getter;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.item.ArmorStandEntity;
import net.minecraft.entity.merchant.villager.VillagerEntity;
import net.minecraft.entity.monster.MonsterEntity;
import net.minecraft.entity.passive.AnimalEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CEntityActionPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.potion.Effects;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;

import static hui.clowed.features.impl.combat.Aura.target;

@FeatureInfo(name = "LegitAura", desc = "Автоматически бьет сущностей при наводке", category = Category.Combat)
public class TriggerBot extends Feature {

private final BooleanSetting onlyCritical = new BooleanSetting("Только криты", true);
private final BooleanSetting onlySpaceCritical = new BooleanSetting("Только с пробелом", false).setVisible(onlyCritical::get);
private final BooleanSetting resetSprint = new BooleanSetting("Сбросить спринт", true);
private final CustomIntegerSetting aimDistance = new CustomIntegerSetting("Дистанция доводки", 7, 1, 10); // Максимальная дистанция для доводки

    private long cpsLimit = 0;
private final List<BooleanSetting> settings;
private Vector2f rotation;

public TriggerBot() {
settings = Arrays.asList(onlyCritical, onlySpaceCritical, resetSprint); // Не должно вызывать ошибок
        addSettings(new BooleanSetting(aimDistance));
addSettings(settings.toArray(new BooleanSetting[0])); // Добавляем настройки в интерфейс
    }
[USER=1367676]@override[/USER]
    public void onEvent(Event event) {
if (event instanceof EventInteractEntity entity) {
if (target != null) entity.setCancel(true);
}
if (event instanceof EventInput eventInput) {
if (settings.get(1) && event.get()) MovementUtils.fixMovement(eventInput, Manager.FEATURE_MANAGER.getFeature(AutoPotion.class).isActivePotion ? mc.player.rotationYaw : rotation.x);
}
if (event instanceof EventUpdate) {
onUpdate();
}
if (event instanceof EventMotion eventMotion) {
onMotion(eventMotion);
}
}

private void onUpdate() {
if (!(target != null && isValidTarget(target))) target = findTarget();

if (target == null || Manager.FEATURE_MANAGER.getFeature(AutoPotion.class).isActivePotion) {
cpsLimit = System.currentTimeMillis();
reset();
return;
}

switch (rotationMode.get()) {
case "Обычный" -> {
isRotated = false;

if (shouldAttack() && (mc.player.isElytraFlying() || RayTraceUtils.getMouseOver(target, rotation.x, rotation.y, attackDistance.getValue().floatValue()) == target)) attackTarget();

if (!isRotated) updateRotation();
}

}
}
[USER=1367676]@override[/USER]
    public void onEvent(Event event) {
if (event instanceof EventUpdate) {
if (mc.objectMouseOver.getType() == RayTraceResult.Type.ENTITY && canAttack() && cpsLimit <= System.currentTimeMillis()) {
Entity target = ((EntityRayTraceResult) mc.objectMouseOver).getEntity();
if (target != null) {
// Проверка на необходимость доводки
                    if (shouldAimAt(target)) {
aimAt(target);
}
attackTarget();
}
}
}
}

private boolean shouldAimAt(Entity target) {
double distance = mc.player.getDistance(target);
if (distance > aimDistance.get()) {
return false; // Если цель слишком далеко, не доводим
        }
// Добавьте логику проверки, например, проверка угла
        return true; // Находится в пределах допустимой дистанции
    }

private void aimAt(Entity target) {
AtomicBoolean isRotated = new AtomicBoolean(true);

Vector3d targetVector;
Vector3d playerPos = mc.player.getPositionVec();
Vector3d targetPos = target.getPositionVec().add(0, target.getEyeHeight(), 0);
Vector3d direction = targetPos.subtract(playerPos).normalize();


float targetYaw = (float) Math.toDegrees(Math.atan2(direction.z, direction.x)) - 90.0F;


float deltaPitch = bind;
float deltaYaw = MathHelper.wrapDegrees(targetYaw - mc.player.rotationYaw);
mc.player.rotationYaw += deltaYaw * 1.56534F;
float newYaw = rotation.x + deltaYaw;
float newPitch = MathHelper.clamp(rotation.y + deltaPitch, -90, 90);
float clampedYaw = Math.min(Math.max(Math.abs(deltaYaw), 1), 180 );
float clampedPitch = Math.min(Math.max(Math.abs(deltaPitch), 1), 90 );

if (Math.abs(clampedYaw - newYaw) <= 3) clampedYaw = newYaw + 3.1f;

clampedPitch /= 3f;

newYaw = rotation.x + (deltaYaw > 0 ? clampedYaw : -clampedYaw);
newPitch = MathHelper.clamp(rotation.y + (deltaPitch > 0 ? clampedPitch : -clampedPitch), -90, 90);

newYaw -= (newYaw - rotation.x) % GCDUtils.getGCDValue();
newPitch -= (newPitch - rotation.y) % GCDUtils.getGCDValue();

rotation = new Vector2f(newYaw, newPitch);
newYaw = clampedYaw;

float randomOffset = (float) (Math.random() * 8.3333232 - 4.4554);
mc.player.rotationYaw += randomOffset;
}

private void attackTarget() {
if (mc.player.isHandActive() && onlyCritical.get()) return;
if (onlySpaceCritical.get() && mc.player.isBlocking()) {
mc.playerController.onStoppedUsingItem(mc.player);
}

if (resetSprint.get() && mc.player.serverSprintState && mc.gameSettings.keyBindForward.isKeyDown()) {
mc.player.setSprinting(false);
mc.gameSettings.keyBindSprint.setPressed(false);
mc.player.connection.sendPacketWithoutEvent(new CEntityActionPacket(mc.player, CEntityActionPacket.Action.STOP_SPRINTING));
}


if (resetSprint.get() && mc.player.serverSprintState && mc.gameSettings.keyBindForward.isKeyDown()) {
mc.player.setSprinting(false);
mc.gameSettings.keyBindSprint.setPressed(false);
}

cpsLimit = System.currentTimeMillis() + 540; // Обновляем лимит на удары
        Manager.FEATURE_MANAGER.getFeature(Criticals.class).cancelCrit = true;
Manager.FEATURE_MANAGER.getFeature(Criticals.class).doCrit();
mc.playerController.attackEntity(mc.player, ((EntityRayTraceResult) mc.objectMouseOver).getEntity());
Manager.FEATURE_MANAGER.getFeature(Criticals.class).cancelCrit = false;
mc.player.swingArm(Hand.MAIN_HAND);

// Если цель игрок, проверяем настройки для сломанных щитов
        {
}

// Восстанавливаем спринт, если был сброшен

    }

private boolean canAttack() {
boolean onSpace = onlySpaceCritical.get() && mc.player.isOnGround() && !mc.gameSettings.keyBindJump.isKeyDown();
boolean reasonForAttack = mc.player.isPotionActive(Effects.LEVITATION) || mc.player.isPotionActive(Effects.BLINDNESS) ||
mc.player.isPotionActive(Effects.SLOW_FALLING) || mc.player.isOnLadder() ||
(mc.player.isInWater() && mc.player.areEyesInFluid(FluidTags.WATER)) ||
(mc.player.isInLava() && mc.player.areEyesInFluid(FluidTags.LAVA)) ||
mc.player.isPassenger() || mc.player.abilities.isFlying || mc.player.isElytraFlying();

if (mc.player.getCooledAttackStrength(1.5f) < 0.93f) return false;
if (!reasonForAttack && onlyCritical.get()) return onSpace || (!mc.player.isOnGround() && mc.player.fallDistance > 0);

return true;

}
}
 
Начинающий
Статус
Оффлайн
Регистрация
9 Апр 2024
Сообщения
17
Реакции[?]
0
Поинты[?]
0
Короче опездалы триггер бот умный , доводит голову фт обходит , сброс спринта умны , Рандом движения + таймер при повороте ( есть строки чат gpt )
кто пишет /del идите нахуй
Java:
package hui.clowed.features.impl.combat;

import hui.clowed.events.Event;
import hui.clowed.events.impl.player.EventInput;
import hui.clowed.events.impl.player.EventInteractEntity;
import hui.clowed.events.impl.player.EventMotion;
import hui.clowed.events.impl.player.EventUpdate;
import hui.clowed.features.api.Category;
import hui.clowed.features.api.Feature;
import hui.clowed.features.api.FeatureInfo;
import hui.clowed.features.impl.player.AutoPotion;
import hui.clowed.features.settings.impl.BooleanSetting;
import hui.clowed.features.settings.impl.CustomIntegerSetting;
import hui.clowed.managers.Manager;
import hui.clowed.utils.math.GCDUtils;
import hui.clowed.utils.math.RayTraceUtils;
import hui.clowed.utils.movement.MovementUtils;
import net.minecraft.entity.Entity;

import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.network.play.client.CEntityActionPacket;
import net.minecraft.potion.Effects;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.EntityRayTraceResult;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.vector.Vector3d;
import hui.clowed.events.Event;
import hui.clowed.events.impl.player.EventInput;
import hui.clowed.events.impl.player.EventInteractEntity;
import hui.clowed.events.impl.player.EventMotion;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

import hui.clowed.events.impl.player.EventUpdate;
import hui.clowed.features.api.Category;
import hui.clowed.features.api.Feature;
import hui.clowed.features.api.FeatureInfo;
import hui.clowed.features.impl.player.AutoPotion;
import hui.clowed.features.settings.impl.BooleanSetting;
import hui.clowed.features.settings.impl.ModeSetting;
import hui.clowed.features.settings.impl.MultiBoxSetting;
import hui.clowed.features.settings.impl.SliderSetting;
import hui.clowed.managers.Manager;
import hui.clowed.utils.math.GCDUtils;
import hui.clowed.utils.math.RayTraceUtils;
import hui.clowed.utils.movement.MovementUtils;
import hui.clowed.utils.world.InventoryUtils;
import lombok.Getter;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.item.ArmorStandEntity;
import net.minecraft.entity.merchant.villager.VillagerEntity;
import net.minecraft.entity.monster.MonsterEntity;
import net.minecraft.entity.passive.AnimalEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CEntityActionPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.potion.Effects;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;

import static hui.clowed.features.impl.combat.Aura.target;

@FeatureInfo(name = "LegitAura", desc = "Автоматически бьет сущностей при наводке", category = Category.Combat)
public class TriggerBot extends Feature {

private final BooleanSetting onlyCritical = new BooleanSetting("Только криты", true);
private final BooleanSetting onlySpaceCritical = new BooleanSetting("Только с пробелом", false).setVisible(onlyCritical::get);
private final BooleanSetting resetSprint = new BooleanSetting("Сбросить спринт", true);
private final CustomIntegerSetting aimDistance = new CustomIntegerSetting("Дистанция доводки", 7, 1, 10); // Максимальная дистанция для доводки

    private long cpsLimit = 0;
private final List<BooleanSetting> settings;
private Vector2f rotation;

public TriggerBot() {
settings = Arrays.asList(onlyCritical, onlySpaceCritical, resetSprint); // Не должно вызывать ошибок
        addSettings(new BooleanSetting(aimDistance));
addSettings(settings.toArray(new BooleanSetting[0])); // Добавляем настройки в интерфейс
    }
[USER=1367676]@override[/USER]
    public void onEvent(Event event) {
if (event instanceof EventInteractEntity entity) {
if (target != null) entity.setCancel(true);
}
if (event instanceof EventInput eventInput) {
if (settings.get(1) && event.get()) MovementUtils.fixMovement(eventInput, Manager.FEATURE_MANAGER.getFeature(AutoPotion.class).isActivePotion ? mc.player.rotationYaw : rotation.x);
}
if (event instanceof EventUpdate) {
onUpdate();
}
if (event instanceof EventMotion eventMotion) {
onMotion(eventMotion);
}
}

private void onUpdate() {
if (!(target != null && isValidTarget(target))) target = findTarget();

if (target == null || Manager.FEATURE_MANAGER.getFeature(AutoPotion.class).isActivePotion) {
cpsLimit = System.currentTimeMillis();
reset();
return;
}

switch (rotationMode.get()) {
case "Обычный" -> {
isRotated = false;

if (shouldAttack() && (mc.player.isElytraFlying() || RayTraceUtils.getMouseOver(target, rotation.x, rotation.y, attackDistance.getValue().floatValue()) == target)) attackTarget();

if (!isRotated) updateRotation();
}

}
}
[USER=1367676]@override[/USER]
    public void onEvent(Event event) {
if (event instanceof EventUpdate) {
if (mc.objectMouseOver.getType() == RayTraceResult.Type.ENTITY && canAttack() && cpsLimit <= System.currentTimeMillis()) {
Entity target = ((EntityRayTraceResult) mc.objectMouseOver).getEntity();
if (target != null) {
// Проверка на необходимость доводки
                    if (shouldAimAt(target)) {
aimAt(target);
}
attackTarget();
}
}
}
}

private boolean shouldAimAt(Entity target) {
double distance = mc.player.getDistance(target);
if (distance > aimDistance.get()) {
return false; // Если цель слишком далеко, не доводим
        }
// Добавьте логику проверки, например, проверка угла
        return true; // Находится в пределах допустимой дистанции
    }

private void aimAt(Entity target) {
AtomicBoolean isRotated = new AtomicBoolean(true);

Vector3d targetVector;
Vector3d playerPos = mc.player.getPositionVec();
Vector3d targetPos = target.getPositionVec().add(0, target.getEyeHeight(), 0);
Vector3d direction = targetPos.subtract(playerPos).normalize();


float targetYaw = (float) Math.toDegrees(Math.atan2(direction.z, direction.x)) - 90.0F;


float deltaPitch = bind;
float deltaYaw = MathHelper.wrapDegrees(targetYaw - mc.player.rotationYaw);
mc.player.rotationYaw += deltaYaw * 1.56534F;
float newYaw = rotation.x + deltaYaw;
float newPitch = MathHelper.clamp(rotation.y + deltaPitch, -90, 90);
float clampedYaw = Math.min(Math.max(Math.abs(deltaYaw), 1), 180 );
float clampedPitch = Math.min(Math.max(Math.abs(deltaPitch), 1), 90 );

if (Math.abs(clampedYaw - newYaw) <= 3) clampedYaw = newYaw + 3.1f;

clampedPitch /= 3f;

newYaw = rotation.x + (deltaYaw > 0 ? clampedYaw : -clampedYaw);
newPitch = MathHelper.clamp(rotation.y + (deltaPitch > 0 ? clampedPitch : -clampedPitch), -90, 90);

newYaw -= (newYaw - rotation.x) % GCDUtils.getGCDValue();
newPitch -= (newPitch - rotation.y) % GCDUtils.getGCDValue();

rotation = new Vector2f(newYaw, newPitch);
newYaw = clampedYaw;

float randomOffset = (float) (Math.random() * 8.3333232 - 4.4554);
mc.player.rotationYaw += randomOffset;
}

private void attackTarget() {
if (mc.player.isHandActive() && onlyCritical.get()) return;
if (onlySpaceCritical.get() && mc.player.isBlocking()) {
mc.playerController.onStoppedUsingItem(mc.player);
}

if (resetSprint.get() && mc.player.serverSprintState && mc.gameSettings.keyBindForward.isKeyDown()) {
mc.player.setSprinting(false);
mc.gameSettings.keyBindSprint.setPressed(false);
mc.player.connection.sendPacketWithoutEvent(new CEntityActionPacket(mc.player, CEntityActionPacket.Action.STOP_SPRINTING));
}


if (resetSprint.get() && mc.player.serverSprintState && mc.gameSettings.keyBindForward.isKeyDown()) {
mc.player.setSprinting(false);
mc.gameSettings.keyBindSprint.setPressed(false);
}

cpsLimit = System.currentTimeMillis() + 540; // Обновляем лимит на удары
        Manager.FEATURE_MANAGER.getFeature(Criticals.class).cancelCrit = true;
Manager.FEATURE_MANAGER.getFeature(Criticals.class).doCrit();
mc.playerController.attackEntity(mc.player, ((EntityRayTraceResult) mc.objectMouseOver).getEntity());
Manager.FEATURE_MANAGER.getFeature(Criticals.class).cancelCrit = false;
mc.player.swingArm(Hand.MAIN_HAND);

// Если цель игрок, проверяем настройки для сломанных щитов
        {
}

// Восстанавливаем спринт, если был сброшен

    }

private boolean canAttack() {
boolean onSpace = onlySpaceCritical.get() && mc.player.isOnGround() && !mc.gameSettings.keyBindJump.isKeyDown();
boolean reasonForAttack = mc.player.isPotionActive(Effects.LEVITATION) || mc.player.isPotionActive(Effects.BLINDNESS) ||
mc.player.isPotionActive(Effects.SLOW_FALLING) || mc.player.isOnLadder() ||
(mc.player.isInWater() && mc.player.areEyesInFluid(FluidTags.WATER)) ||
(mc.player.isInLava() && mc.player.areEyesInFluid(FluidTags.LAVA)) ||
mc.player.isPassenger() || mc.player.abilities.isFlying || mc.player.isElytraFlying();

if (mc.player.getCooledAttackStrength(1.5f) < 0.93f) return false;
if (!reasonForAttack && onlyCritical.get()) return onSpace || (!mc.player.isOnGround() && mc.player.fallDistance > 0);

return true;

}
}
это для 3.1 -_-
 
Начинающий
Статус
Оффлайн
Регистрация
17 Ноя 2023
Сообщения
114
Реакции[?]
1
Поинты[?]
1K
Короче опездалы триггер бот умный , доводит голову фт обходит , сброс спринта умны , Рандом движения + таймер при повороте ( есть строки чат gpt )
кто пишет /del идите нахуй
Java:
package hui.clowed.features.impl.combat;

import hui.clowed.events.Event;
import hui.clowed.events.impl.player.EventInput;
import hui.clowed.events.impl.player.EventInteractEntity;
import hui.clowed.events.impl.player.EventMotion;
import hui.clowed.events.impl.player.EventUpdate;
import hui.clowed.features.api.Category;
import hui.clowed.features.api.Feature;
import hui.clowed.features.api.FeatureInfo;
import hui.clowed.features.impl.player.AutoPotion;
import hui.clowed.features.settings.impl.BooleanSetting;
import hui.clowed.features.settings.impl.CustomIntegerSetting;
import hui.clowed.managers.Manager;
import hui.clowed.utils.math.GCDUtils;
import hui.clowed.utils.math.RayTraceUtils;
import hui.clowed.utils.movement.MovementUtils;
import net.minecraft.entity.Entity;

import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.network.play.client.CEntityActionPacket;
import net.minecraft.potion.Effects;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.EntityRayTraceResult;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.vector.Vector3d;
import hui.clowed.events.Event;
import hui.clowed.events.impl.player.EventInput;
import hui.clowed.events.impl.player.EventInteractEntity;
import hui.clowed.events.impl.player.EventMotion;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

import hui.clowed.events.impl.player.EventUpdate;
import hui.clowed.features.api.Category;
import hui.clowed.features.api.Feature;
import hui.clowed.features.api.FeatureInfo;
import hui.clowed.features.impl.player.AutoPotion;
import hui.clowed.features.settings.impl.BooleanSetting;
import hui.clowed.features.settings.impl.ModeSetting;
import hui.clowed.features.settings.impl.MultiBoxSetting;
import hui.clowed.features.settings.impl.SliderSetting;
import hui.clowed.managers.Manager;
import hui.clowed.utils.math.GCDUtils;
import hui.clowed.utils.math.RayTraceUtils;
import hui.clowed.utils.movement.MovementUtils;
import hui.clowed.utils.world.InventoryUtils;
import lombok.Getter;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.item.ArmorStandEntity;
import net.minecraft.entity.merchant.villager.VillagerEntity;
import net.minecraft.entity.monster.MonsterEntity;
import net.minecraft.entity.passive.AnimalEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CEntityActionPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.potion.Effects;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;

import static hui.clowed.features.impl.combat.Aura.target;

@FeatureInfo(name = "LegitAura", desc = "Автоматически бьет сущностей при наводке", category = Category.Combat)
public class TriggerBot extends Feature {

private final BooleanSetting onlyCritical = new BooleanSetting("Только криты", true);
private final BooleanSetting onlySpaceCritical = new BooleanSetting("Только с пробелом", false).setVisible(onlyCritical::get);
private final BooleanSetting resetSprint = new BooleanSetting("Сбросить спринт", true);
private final CustomIntegerSetting aimDistance = new CustomIntegerSetting("Дистанция доводки", 7, 1, 10); // Максимальная дистанция для доводки

    private long cpsLimit = 0;
private final List<BooleanSetting> settings;
private Vector2f rotation;

public TriggerBot() {
settings = Arrays.asList(onlyCritical, onlySpaceCritical, resetSprint); // Не должно вызывать ошибок
        addSettings(new BooleanSetting(aimDistance));
addSettings(settings.toArray(new BooleanSetting[0])); // Добавляем настройки в интерфейс
    }
[USER=1367676]@override[/USER]
    public void onEvent(Event event) {
if (event instanceof EventInteractEntity entity) {
if (target != null) entity.setCancel(true);
}
if (event instanceof EventInput eventInput) {
if (settings.get(1) && event.get()) MovementUtils.fixMovement(eventInput, Manager.FEATURE_MANAGER.getFeature(AutoPotion.class).isActivePotion ? mc.player.rotationYaw : rotation.x);
}
if (event instanceof EventUpdate) {
onUpdate();
}
if (event instanceof EventMotion eventMotion) {
onMotion(eventMotion);
}
}

private void onUpdate() {
if (!(target != null && isValidTarget(target))) target = findTarget();

if (target == null || Manager.FEATURE_MANAGER.getFeature(AutoPotion.class).isActivePotion) {
cpsLimit = System.currentTimeMillis();
reset();
return;
}

switch (rotationMode.get()) {
case "Обычный" -> {
isRotated = false;

if (shouldAttack() && (mc.player.isElytraFlying() || RayTraceUtils.getMouseOver(target, rotation.x, rotation.y, attackDistance.getValue().floatValue()) == target)) attackTarget();

if (!isRotated) updateRotation();
}

}
}
[USER=1367676]@override[/USER]
    public void onEvent(Event event) {
if (event instanceof EventUpdate) {
if (mc.objectMouseOver.getType() == RayTraceResult.Type.ENTITY && canAttack() && cpsLimit <= System.currentTimeMillis()) {
Entity target = ((EntityRayTraceResult) mc.objectMouseOver).getEntity();
if (target != null) {
// Проверка на необходимость доводки
                    if (shouldAimAt(target)) {
aimAt(target);
}
attackTarget();
}
}
}
}

private boolean shouldAimAt(Entity target) {
double distance = mc.player.getDistance(target);
if (distance > aimDistance.get()) {
return false; // Если цель слишком далеко, не доводим
        }
// Добавьте логику проверки, например, проверка угла
        return true; // Находится в пределах допустимой дистанции
    }

private void aimAt(Entity target) {
AtomicBoolean isRotated = new AtomicBoolean(true);

Vector3d targetVector;
Vector3d playerPos = mc.player.getPositionVec();
Vector3d targetPos = target.getPositionVec().add(0, target.getEyeHeight(), 0);
Vector3d direction = targetPos.subtract(playerPos).normalize();


float targetYaw = (float) Math.toDegrees(Math.atan2(direction.z, direction.x)) - 90.0F;


float deltaPitch = bind;
float deltaYaw = MathHelper.wrapDegrees(targetYaw - mc.player.rotationYaw);
mc.player.rotationYaw += deltaYaw * 1.56534F;
float newYaw = rotation.x + deltaYaw;
float newPitch = MathHelper.clamp(rotation.y + deltaPitch, -90, 90);
float clampedYaw = Math.min(Math.max(Math.abs(deltaYaw), 1), 180 );
float clampedPitch = Math.min(Math.max(Math.abs(deltaPitch), 1), 90 );

if (Math.abs(clampedYaw - newYaw) <= 3) clampedYaw = newYaw + 3.1f;

clampedPitch /= 3f;

newYaw = rotation.x + (deltaYaw > 0 ? clampedYaw : -clampedYaw);
newPitch = MathHelper.clamp(rotation.y + (deltaPitch > 0 ? clampedPitch : -clampedPitch), -90, 90);

newYaw -= (newYaw - rotation.x) % GCDUtils.getGCDValue();
newPitch -= (newPitch - rotation.y) % GCDUtils.getGCDValue();

rotation = new Vector2f(newYaw, newPitch);
newYaw = clampedYaw;

float randomOffset = (float) (Math.random() * 8.3333232 - 4.4554);
mc.player.rotationYaw += randomOffset;
}

private void attackTarget() {
if (mc.player.isHandActive() && onlyCritical.get()) return;
if (onlySpaceCritical.get() && mc.player.isBlocking()) {
mc.playerController.onStoppedUsingItem(mc.player);
}

if (resetSprint.get() && mc.player.serverSprintState && mc.gameSettings.keyBindForward.isKeyDown()) {
mc.player.setSprinting(false);
mc.gameSettings.keyBindSprint.setPressed(false);
mc.player.connection.sendPacketWithoutEvent(new CEntityActionPacket(mc.player, CEntityActionPacket.Action.STOP_SPRINTING));
}


if (resetSprint.get() && mc.player.serverSprintState && mc.gameSettings.keyBindForward.isKeyDown()) {
mc.player.setSprinting(false);
mc.gameSettings.keyBindSprint.setPressed(false);
}

cpsLimit = System.currentTimeMillis() + 540; // Обновляем лимит на удары
        Manager.FEATURE_MANAGER.getFeature(Criticals.class).cancelCrit = true;
Manager.FEATURE_MANAGER.getFeature(Criticals.class).doCrit();
mc.playerController.attackEntity(mc.player, ((EntityRayTraceResult) mc.objectMouseOver).getEntity());
Manager.FEATURE_MANAGER.getFeature(Criticals.class).cancelCrit = false;
mc.player.swingArm(Hand.MAIN_HAND);

// Если цель игрок, проверяем настройки для сломанных щитов
        {
}

// Восстанавливаем спринт, если был сброшен

    }

private boolean canAttack() {
boolean onSpace = onlySpaceCritical.get() && mc.player.isOnGround() && !mc.gameSettings.keyBindJump.isKeyDown();
boolean reasonForAttack = mc.player.isPotionActive(Effects.LEVITATION) || mc.player.isPotionActive(Effects.BLINDNESS) ||
mc.player.isPotionActive(Effects.SLOW_FALLING) || mc.player.isOnLadder() ||
(mc.player.isInWater() && mc.player.areEyesInFluid(FluidTags.WATER)) ||
(mc.player.isInLava() && mc.player.areEyesInFluid(FluidTags.LAVA)) ||
mc.player.isPassenger() || mc.player.abilities.isFlying || mc.player.isElytraFlying();

if (mc.player.getCooledAttackStrength(1.5f) < 0.93f) return false;
if (!reasonForAttack && onlyCritical.get()) return onSpace || (!mc.player.isOnGround() && mc.player.fallDistance > 0);

return true;

}
}
exp 3.1 еще и чат гпт
 
Начинающий
Статус
Оффлайн
Регистрация
26 Фев 2024
Сообщения
387
Реакции[?]
0
Поинты[?]
0
Начинающий
Статус
Онлайн
Регистрация
29 Май 2024
Сообщения
459
Реакции[?]
2
Поинты[?]
1K

Вложения

Начинающий
Статус
Онлайн
Регистрация
19 Фев 2024
Сообщения
242
Реакции[?]
1
Поинты[?]
1K
Короче опездалы триггер бот умный , доводит голову фт обходит , сброс спринта умны , Рандом движения + таймер при повороте ( есть строки чат gpt )
кто пишет /del идите нахуй
Java:
package hui.clowed.features.impl.combat;

import hui.clowed.events.Event;
import hui.clowed.events.impl.player.EventInput;
import hui.clowed.events.impl.player.EventInteractEntity;
import hui.clowed.events.impl.player.EventMotion;
import hui.clowed.events.impl.player.EventUpdate;
import hui.clowed.features.api.Category;
import hui.clowed.features.api.Feature;
import hui.clowed.features.api.FeatureInfo;
import hui.clowed.features.impl.player.AutoPotion;
import hui.clowed.features.settings.impl.BooleanSetting;
import hui.clowed.features.settings.impl.CustomIntegerSetting;
import hui.clowed.managers.Manager;
import hui.clowed.utils.math.GCDUtils;
import hui.clowed.utils.math.RayTraceUtils;
import hui.clowed.utils.movement.MovementUtils;
import net.minecraft.entity.Entity;

import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.network.play.client.CEntityActionPacket;
import net.minecraft.potion.Effects;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.EntityRayTraceResult;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.vector.Vector3d;
import hui.clowed.events.Event;
import hui.clowed.events.impl.player.EventInput;
import hui.clowed.events.impl.player.EventInteractEntity;
import hui.clowed.events.impl.player.EventMotion;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

import hui.clowed.events.impl.player.EventUpdate;
import hui.clowed.features.api.Category;
import hui.clowed.features.api.Feature;
import hui.clowed.features.api.FeatureInfo;
import hui.clowed.features.impl.player.AutoPotion;
import hui.clowed.features.settings.impl.BooleanSetting;
import hui.clowed.features.settings.impl.ModeSetting;
import hui.clowed.features.settings.impl.MultiBoxSetting;
import hui.clowed.features.settings.impl.SliderSetting;
import hui.clowed.managers.Manager;
import hui.clowed.utils.math.GCDUtils;
import hui.clowed.utils.math.RayTraceUtils;
import hui.clowed.utils.movement.MovementUtils;
import hui.clowed.utils.world.InventoryUtils;
import lombok.Getter;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.item.ArmorStandEntity;
import net.minecraft.entity.merchant.villager.VillagerEntity;
import net.minecraft.entity.monster.MonsterEntity;
import net.minecraft.entity.passive.AnimalEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CEntityActionPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.potion.Effects;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;

import static hui.clowed.features.impl.combat.Aura.target;

@FeatureInfo(name = "LegitAura", desc = "Автоматически бьет сущностей при наводке", category = Category.Combat)
public class TriggerBot extends Feature {

private final BooleanSetting onlyCritical = new BooleanSetting("Только криты", true);
private final BooleanSetting onlySpaceCritical = new BooleanSetting("Только с пробелом", false).setVisible(onlyCritical::get);
private final BooleanSetting resetSprint = new BooleanSetting("Сбросить спринт", true);
private final CustomIntegerSetting aimDistance = new CustomIntegerSetting("Дистанция доводки", 7, 1, 10); // Максимальная дистанция для доводки

    private long cpsLimit = 0;
private final List<BooleanSetting> settings;
private Vector2f rotation;

public TriggerBot() {
settings = Arrays.asList(onlyCritical, onlySpaceCritical, resetSprint); // Не должно вызывать ошибок
        addSettings(new BooleanSetting(aimDistance));
addSettings(settings.toArray(new BooleanSetting[0])); // Добавляем настройки в интерфейс
    }
[USER=1367676]@override[/USER]
    public void onEvent(Event event) {
if (event instanceof EventInteractEntity entity) {
if (target != null) entity.setCancel(true);
}
if (event instanceof EventInput eventInput) {
if (settings.get(1) && event.get()) MovementUtils.fixMovement(eventInput, Manager.FEATURE_MANAGER.getFeature(AutoPotion.class).isActivePotion ? mc.player.rotationYaw : rotation.x);
}
if (event instanceof EventUpdate) {
onUpdate();
}
if (event instanceof EventMotion eventMotion) {
onMotion(eventMotion);
}
}

private void onUpdate() {
if (!(target != null && isValidTarget(target))) target = findTarget();

if (target == null || Manager.FEATURE_MANAGER.getFeature(AutoPotion.class).isActivePotion) {
cpsLimit = System.currentTimeMillis();
reset();
return;
}

switch (rotationMode.get()) {
case "Обычный" -> {
isRotated = false;

if (shouldAttack() && (mc.player.isElytraFlying() || RayTraceUtils.getMouseOver(target, rotation.x, rotation.y, attackDistance.getValue().floatValue()) == target)) attackTarget();

if (!isRotated) updateRotation();
}

}
}
[USER=1367676]@override[/USER]
    public void onEvent(Event event) {
if (event instanceof EventUpdate) {
if (mc.objectMouseOver.getType() == RayTraceResult.Type.ENTITY && canAttack() && cpsLimit <= System.currentTimeMillis()) {
Entity target = ((EntityRayTraceResult) mc.objectMouseOver).getEntity();
if (target != null) {
// Проверка на необходимость доводки
                    if (shouldAimAt(target)) {
aimAt(target);
}
attackTarget();
}
}
}
}

private boolean shouldAimAt(Entity target) {
double distance = mc.player.getDistance(target);
if (distance > aimDistance.get()) {
return false; // Если цель слишком далеко, не доводим
        }
// Добавьте логику проверки, например, проверка угла
        return true; // Находится в пределах допустимой дистанции
    }

private void aimAt(Entity target) {
AtomicBoolean isRotated = new AtomicBoolean(true);

Vector3d targetVector;
Vector3d playerPos = mc.player.getPositionVec();
Vector3d targetPos = target.getPositionVec().add(0, target.getEyeHeight(), 0);
Vector3d direction = targetPos.subtract(playerPos).normalize();


float targetYaw = (float) Math.toDegrees(Math.atan2(direction.z, direction.x)) - 90.0F;


float deltaPitch = bind;
float deltaYaw = MathHelper.wrapDegrees(targetYaw - mc.player.rotationYaw);
mc.player.rotationYaw += deltaYaw * 1.56534F;
float newYaw = rotation.x + deltaYaw;
float newPitch = MathHelper.clamp(rotation.y + deltaPitch, -90, 90);
float clampedYaw = Math.min(Math.max(Math.abs(deltaYaw), 1), 180 );
float clampedPitch = Math.min(Math.max(Math.abs(deltaPitch), 1), 90 );

if (Math.abs(clampedYaw - newYaw) <= 3) clampedYaw = newYaw + 3.1f;

clampedPitch /= 3f;

newYaw = rotation.x + (deltaYaw > 0 ? clampedYaw : -clampedYaw);
newPitch = MathHelper.clamp(rotation.y + (deltaPitch > 0 ? clampedPitch : -clampedPitch), -90, 90);

newYaw -= (newYaw - rotation.x) % GCDUtils.getGCDValue();
newPitch -= (newPitch - rotation.y) % GCDUtils.getGCDValue();

rotation = new Vector2f(newYaw, newPitch);
newYaw = clampedYaw;

float randomOffset = (float) (Math.random() * 8.3333232 - 4.4554);
mc.player.rotationYaw += randomOffset;
}

private void attackTarget() {
if (mc.player.isHandActive() && onlyCritical.get()) return;
if (onlySpaceCritical.get() && mc.player.isBlocking()) {
mc.playerController.onStoppedUsingItem(mc.player);
}

if (resetSprint.get() && mc.player.serverSprintState && mc.gameSettings.keyBindForward.isKeyDown()) {
mc.player.setSprinting(false);
mc.gameSettings.keyBindSprint.setPressed(false);
mc.player.connection.sendPacketWithoutEvent(new CEntityActionPacket(mc.player, CEntityActionPacket.Action.STOP_SPRINTING));
}


if (resetSprint.get() && mc.player.serverSprintState && mc.gameSettings.keyBindForward.isKeyDown()) {
mc.player.setSprinting(false);
mc.gameSettings.keyBindSprint.setPressed(false);
}

cpsLimit = System.currentTimeMillis() + 540; // Обновляем лимит на удары
        Manager.FEATURE_MANAGER.getFeature(Criticals.class).cancelCrit = true;
Manager.FEATURE_MANAGER.getFeature(Criticals.class).doCrit();
mc.playerController.attackEntity(mc.player, ((EntityRayTraceResult) mc.objectMouseOver).getEntity());
Manager.FEATURE_MANAGER.getFeature(Criticals.class).cancelCrit = false;
mc.player.swingArm(Hand.MAIN_HAND);

// Если цель игрок, проверяем настройки для сломанных щитов
        {
}

// Восстанавливаем спринт, если был сброшен

    }

private boolean canAttack() {
boolean onSpace = onlySpaceCritical.get() && mc.player.isOnGround() && !mc.gameSettings.keyBindJump.isKeyDown();
boolean reasonForAttack = mc.player.isPotionActive(Effects.LEVITATION) || mc.player.isPotionActive(Effects.BLINDNESS) ||
mc.player.isPotionActive(Effects.SLOW_FALLING) || mc.player.isOnLadder() ||
(mc.player.isInWater() && mc.player.areEyesInFluid(FluidTags.WATER)) ||
(mc.player.isInLava() && mc.player.areEyesInFluid(FluidTags.LAVA)) ||
mc.player.isPassenger() || mc.player.abilities.isFlying || mc.player.isElytraFlying();

if (mc.player.getCooledAttackStrength(1.5f) < 0.93f) return false;
if (!reasonForAttack && onlyCritical.get()) return onSpace || (!mc.player.isOnGround() && mc.player.fallDistance > 0);

return true;

}
}
/remove не очень актуально
 
Начинающий
Статус
Оффлайн
Регистрация
17 Апр 2023
Сообщения
201
Реакции[?]
2
Поинты[?]
0
Сверху Снизу