В

Начинающий
Статус
Оффлайн
Регистрация
29 Июн 2023
Сообщения
191
Реакции[?]
3
Поинты[?]
7K
сливаю вам пасту экспы 3.1 который делает какая та мололетка лет 12 по ему писклювому голосу так что вот ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.
сылка на скачку
Пожалуйста, авторизуйтесь для просмотра ссылки.
 
Начинающий
Статус
Оффлайн
Регистрация
20 Апр 2021
Сообщения
1,261
Реакции[?]
27
Поинты[?]
40K
сливаю вам пасту экспы 3.1 который делает какая та мололетка лет 12 по ему писклювому голосу так что вот ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.
сылка на скачку
Пожалуйста, авторизуйтесь для просмотра ссылки.
поздравляю с 69 сообщениями, юху
1722262203545.png
а так тема хуйня.
 
Read Only
Статус
Оффлайн
Регистрация
19 Июл 2024
Сообщения
207
Реакции[?]
0
Поинты[?]
0

Вложения

minced client
Read Only
Статус
Оффлайн
Регистрация
8 Май 2022
Сообщения
616
Реакции[?]
61
Поинты[?]
2K
сливаю вам пасту экспы 3.1 который делает какая та мололетка лет 12 по ему писклювому голосу так что вот ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.
сылка на скачку
Пожалуйста, авторизуйтесь для просмотра ссылки.
Дефолт паста югейма и экспы)))0
 
Начинающий
Статус
Оффлайн
Регистрация
25 Фев 2024
Сообщения
475
Реакции[?]
0
Поинты[?]
0
сливаю вам пасту экспы 3.1 который делает какая та мололетка лет 12 по ему писклювому голосу так что вот ss -
Пожалуйста, авторизуйтесь для просмотра ссылки.
сылка на скачку
Пожалуйста, авторизуйтесь для просмотра ссылки.
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package im.expensive.functions.impl.combat;

import com.google.common.eventbus.Subscribe;
import im.expensive.Expensive;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventInput;
import im.expensive.events.EventMotion;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.Setting;
import im.expensive.functions.settings.impl.BooleanSetting;
import im.expensive.functions.settings.impl.ModeListSetting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.SensUtils;
import im.expensive.utils.math.StopWatch;
import im.expensive.utils.player.InventoryUtil;
import im.expensive.utils.player.MouseUtil;
import im.expensive.utils.player.MoveUtils;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.client.multiplayer.PlayerController;
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.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.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceContext;
import net.minecraft.util.math.RayTraceContext.BlockMode;
import net.minecraft.util.math.RayTraceContext.FluidMode;
import net.minecraft.util.math.RayTraceResult.Type;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import net.optifine.CustomColors;

@FunctionRegister(
name = "Aura",
type = Category.Combat
)
public class Aura extends Function {
private final ModeSetting type = new ModeSetting("Тип", "HVH", new String[]{"HVH", "FT new", "Holyworld"});
private final SliderSetting attackRange = new SliderSetting("Дистанция аттаки", 3.0F, 1.0F, 6.0F, 0.1F);
final ModeListSetting targets = new ModeListSetting("Таргеты", new BooleanSetting[]{new BooleanSetting("Игроки", true), new BooleanSetting("Голые", true), new BooleanSetting("Мобы", false), new BooleanSetting("Животные", false), new BooleanSetting("Друзья", false), new BooleanSetting("Голые невидимки", true), new BooleanSetting("Невидимки", true)});
final ModeListSetting options = new ModeListSetting("Опции", new BooleanSetting[]{new BooleanSetting("Только криты", true), new BooleanSetting("Ломать щит", true), new BooleanSetting("Отжимать щит", true), new BooleanSetting("Ускорять ротацию при атаке", false), new BooleanSetting("Синхронизировать атаку с ТПС", false), new BooleanSetting("Фокусировать одну цель", true), new BooleanSetting("Коррекция движения", true), new BooleanSetting("Бить через стены", false)});
final ModeSetting correctionType = new ModeSetting("Тип коррекции", "Незаметный", new String[]{"Незаметный", "Сфокусированный"});
private final StopWatch stopWatch = new StopWatch();
private Vector2f rotateVector = new Vector2f(0.0F, 0.0F);
private LivingEntity target;
private Entity selected;
int ticks = 0;
boolean isRotated;
final AutoPotion autoPotion;
float lastYaw;
float lastPitch;
static char[] ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾;

public Aura(AutoPotion var1) {
this.autoPotion = var1;
this.addSettings(new Setting[]{this.type, this.attackRange, this.targets, this.options, this.correctionType});
}

@Subscribe
public void onInput(EventInput var1) {
if ((Boolean)this.options.getValueByName("Коррекция движения").get() && this.correctionType.is("Незаметная") && this.target != null) {
Minecraft var10000 = mc;
if (Minecraft.player != null) {
MoveUtils.fixMovement(var1, this.rotateVector.x);
}
}
}

@Subscribe
public void onUpdate(EventUpdate var1) {
if ((Boolean)this.options.getValueByName("Фокусировать одну цель").get() && (this.target == null || !this.isValid(this.target)) || !(Boolean)this.options.getValueByName("Фокусировать одну цель").get()) {
this.updateTarget();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("Снапы")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("AuraSquad")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

}

@Subscribe
private void onWalking(EventMotion var1) {
if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
float var2 = this.rotateVector.x;
float var3 = this.rotateVector.y;
var1.setYaw(var2);
var1.setPitch(var3);
Minecraft var10000 = mc;
Minecraft.player.rotationYawHead = var2;
var10000 = mc;
Minecraft.player.renderYawOffset = var2;
var10000 = mc;
Minecraft.player.rotationPitchHead = var3;
}

}

private void updateTarget() {
ArrayList var1 = new ArrayList();
Minecraft var10000 = mc;
Iterator var2 = Minecraft.world.getAllEntities().iterator();

while(var2.hasNext()) {
Entity var3 = (Entity)var2.next();
if (var3 instanceof LivingEntity var4) {
if (this.isValid(var4)) {
var1.add(var4);
}
}
}

if (var1.isEmpty()) {
this.target = null;
} else if (var1.size() == 1) {
this.target = (LivingEntity)var1.get(0);
} else {
var1.sort(Comparator.comparingDouble(this::lambda$updateTarget$0).thenComparing(this::lambda$updateTarget$1).thenComparing(Aura::lambda$updateTarget$2));
this.target = (LivingEntity)var1.get(0);
}

}

private double gaussianRandom(double var1, double var3) {
return var1 + CustomColors.random.nextGaussian() * var3;
}

private void updateRotation(boolean var1, float var2, float var3) {
Vector3d var10000 = this.target.getPositionVec();
Minecraft var10002 = mc;
double var25 = Minecraft.player.getPosYEye() - this.target.getPosY();
double var10004 = (double)this.target.getHeight();
Minecraft var10005 = mc;
var10000 = var10000.add(0.0, MathHelper.clamp(var25, 0.0, var10004 * (Minecraft.player.getDistanceEyePos(this.target) / (double)(Float)this.attackRange.get())), 0.0);
Minecraft var10001 = mc;
Vector3d var4 = var10000.subtract(Minecraft.player.getEyePosition(1.0F));
this.isRotated = true;
float var5 = (float)MathHelper.wrapDegrees(Math.toDegrees(Math.atan2(var4.z, var4.x)) - 90.0);
float var6 = (float)(-Math.toDegrees(Math.atan2(var4.y, Math.hypot(var4.x, var4.z))));
float var7 = MathHelper.wrapDegrees(var5 - this.rotateVector.x);
float var8 = MathHelper.wrapDegrees(var6 - this.rotateVector.y);
int var9 = (int)var7;
float var12 = 0.0F;
float var13 = 0.0F;
float var10;
float var11;
float var19;
float var20;
float var21;
Minecraft var24;
switch ((String)this.type.get()) {
case "FT new":
var10 = Math.min(Math.max(Math.abs(var7), 1.14F), var2);
var11 = Math.min(Math.max(Math.abs(var8), 1.14F), var3);
if (var1 && this.selected != this.target && (Boolean)this.options.getValueByName("Ускорять ротацию").get()) {
var11 = Math.max(Math.abs(var8), 1.0F);
} else {
var11 /= 3.0F;
}

var10 *= 1.8F;
var12 = (float)this.gaussianRandom(0.0, (double)(var10 / 7.6F));
if (Math.abs(var10 - this.lastYaw) <= 3.0F) {
var10 = this.lastYaw + 2.8F;
}

var13 = (float)this.gaussianRandom(-0.5, 0.5);
float var14 = (float)this.gaussianRandom(-0.5, 0.5);
float var15 = (float)this.gaussianRandom(0.0, 0.8999999761581421) + var13;
float var16 = (float)this.gaussianRandom(0.0, -0.8999999761581421) + var14;
float var17 = (float)(Math.sin((double)(System.currentTimeMillis() % 1000L) / 1000.0 * Math.PI * 2.0) * 1.5);
float var18 = 0.78F;
var19 = this.rotateVector.x + (var7 > 0.0F ? (var10 + var15 + var17) * var18 : -(var10 + var15 + var17) * var18);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? (var11 + var16 + var12) * var18 : -(var11 + var16 + var12) * var18), -89.0F, 89.0F);
var21 = SensUtils.getGCDValue();
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "Holyworld":
var2 *= 100.0F;
var3 *= 100.0F;
var10 = Math.min(Math.max(Math.abs(var7), 1.0F), var2 * 1.5F);
var11 = Math.min(Math.max(Math.abs(var8), 1.0F), var3 * 1.5F);
if (Math.abs(var10 - this.lastYaw) <= 0.1F) {
var10 = this.lastYaw + 0.1F;
}

var19 = this.rotateVector.x + (var7 > 0.0F ? var10 : -var10);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? var11 : -var11), -90.0F, 90.0F);
var21 = SensUtils.getGCDValue() / 10.0F;
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "HVH":
var10 = this.rotateVector.x + (float)var9;
var11 = MathHelper.clamp(this.rotateVector.y + var8, -90.0F, 90.0F);
var12 = SensUtils.getGCDValue();
var10 -= (var10 - this.rotateVector.x) % var12;
var11 -= (var11 - this.rotateVector.y) % var12;
this.rotateVector = new Vector2f(var10, var11);
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var10;
}
}

}

private void updateAttack() {
this.selected = MouseUtil.getMouseOver(this.target, this.rotateVector.x, this.rotateVector.y, (double)(Float)this.attackRange.get());
if ((Boolean)this.options.getValueByName("Ускорять ротацию при атаке").get()) {
this.updateRotation(true, 60.0F, 35.0F);
}

Minecraft var10000;
if (this.selected == null || this.selected != this.target) {
var10000 = mc;
if (!Minecraft.player.isElytraFlying()) {
return;
}
}

if ((Boolean)this.options.getValueByName("Бить через стены").get() || this.isPathClear(this.target)) {
var10000 = mc;
Minecraft var10001;
if (Minecraft.player.isBlocking() && (Boolean)this.options.getValueByName("Отжимать щит").get()) {
var10001 = mc;
mc.playerController.onStoppedUsingItem(Minecraft.player);
}

this.stopWatch.setLastMS(500L);
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, this.target);
var10000 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
LivingEntity var1 = this.target;
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if ((Boolean)this.options.getValueByName("Ломать щит").get()) {
this.breakShieldPlayer(var2);
}
}
}

}

private boolean shouldPlayerFalling() {
Minecraft var10000;
boolean var3;
label46: {
label45: {
var10000 = mc;
if (Minecraft.player.isInWater()) {
var10000 = mc;
if (Minecraft.player.areEyesInFluid(FluidTags.WATER)) {
break label45;
}
}

var10000 = mc;
if (!Minecraft.player.isInLava()) {
var10000 = mc;
if (!Minecraft.player.isOnLadder()) {
var10000 = mc;
if (!Minecraft.player.isPassenger()) {
var10000 = mc;
if (!Minecraft.player.abilities.isFlying) {
var3 = false;
break label46;
}
}
}
}
}

var3 = true;
}

boolean var1 = var3;
var10000 = mc;
float var2 = Minecraft.player.getCooledAttackStrength((Boolean)this.options.getValueByName("Синхронизировать атаку с ТПС").get() ? Expensive.getInstance().getTpsCalc().getAdjustTicks() : 1.5F);
if (var2 < 0.92F) {
return true;
} else if (!var1 && (Boolean)this.options.getValueByName("Только криты").get()) {
var10000 = mc;
if (!Minecraft.player.isOnGround()) {
var10000 = mc;
if (Minecraft.player.fallDistance > 0.0F) {
var3 = true;
return var3;
}
}

var3 = false;
return var3;
} else {
return false;
}
}

private boolean isValid(LivingEntity var1) {
if (var1 instanceof ClientPlayerEntity) {
return true;
} else if (var1.ticksExisted < 3) {
return true;
} else {
Minecraft var10000 = mc;
if (Minecraft.player.getDistanceEyePos(var1) > (double)(Float)this.attackRange.get()) {
return true;
} else {
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if (AntiBot.isBot(var1)) {
return true;
}

if (!(Boolean)this.targets.getValueByName("Друзья").get() && FriendStorage.isFriend(var2.getName().getString())) {
return true;
}

String var3 = var2.getName().getString();
Minecraft var10001 = mc;
if (var3.equalsIgnoreCase(Minecraft.player.getName().getString())) {
return true;
}
}

if (var1 instanceof PlayerEntity && !(Boolean)this.targets.getValueByName("Игроки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые невидимки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && !(Boolean)this.targets.getValueByName("Невидимки").get()) {
return true;
} else if (var1 instanceof MonsterEntity && !(Boolean)this.targets.getValueByName("Мобы").get()) {
return true;
} else if (var1 instanceof AnimalEntity && !(Boolean)this.targets.getValueByName("Животные").get()) {
return true;
} else {
return !var1.isInvulnerable() && var1.isAlive() && !(var1 instanceof ArmorStandEntity);
}
}
}
}

private void breakShieldPlayer(PlayerEntity var1) {
if (var1.isBlocking()) {
int var2 = InventoryUtil.getInstance().getAxeInInventory(true);
int var3 = InventoryUtil.getInstance().getAxeInInventory(false);
Minecraft var10001;
Minecraft var10003;
Minecraft var5;
if (var3 == -1 && var2 != -1) {
int var4 = InventoryUtil.getInstance().findBestSlotInHotBar();
Minecraft var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
PlayerController var10000 = mc.playerController;
int var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var4));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
var10000 = mc.playerController;
var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
}

if (var3 != -1) {
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var3));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
}
}

}

private static int ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(int var4, int i) {
return 0;
}

private boolean isPathClear(LivingEntity var1) {
Minecraft var10000 = mc;
Vector3d var4 = Minecraft.player.getPositionVec();
Minecraft var10002 = mc;
Vector3d var2 = var4.add(0.0, (double)Minecraft.player.getEyeHeight(), 0.0);
Vector3d var3 = var1.getPositionVec().add(0.0, (double)var1.getEyeHeight(), 0.0);
var10000 = mc;
Minecraft var10007 = mc;
return Minecraft.world.rayTraceBlocks(new RayTraceContext(var2, var3, BlockMode.COLLIDER, FluidMode.NONE, Minecraft.player)).getType() == Type.MISS;
}

private void reset() {
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
Minecraft var10000 = mc;
Minecraft.player.rotationYawOffset = -2.14748365E9F;
}

Minecraft var10003 = mc;
Minecraft var10004 = mc;
this.rotateVector = new Vector2f(Minecraft.player.rotationYaw, Minecraft.player.rotationPitch);
}

public boolean onEnable() {
super.onEnable();
this.reset();
this.target = null;
return false;
}

public void onDisable() {
super.onDisable();
this.reset();
this.stopWatch.setLastMS(0L);
this.target = null;
}

private double getEntityArmor(PlayerEntity var1) {
double var2 = 0.0;

for(int var4 = 0; var4 < 4; var4 += 5064) {
ItemStack var5 = (ItemStack)var1.inventory.armorInventory.get(var4);
if (var5.getItem() instanceof ArmorItem) {
var2 += this.getProtectionLvl(var5);
}

var4 -= 5063;
}

return var2;
}

private double getProtectionLvl(ItemStack var1) {
Item var2 = var1.getItem();
if (var2 instanceof ArmorItem var3) {
double var4 = (double)var3.getDamageReduceAmount();
if (var1.isEnchanted()) {
var4 += (double)EnchantmentHelper.getEnchantmentLevel(Enchantments.PROTECTION, var1) * 0.25;
}

return var4;
} else {
return 0.0;
}
}

private double getEntityHealth(LivingEntity var1) {
if (var1 instanceof PlayerEntity var2) {
return (double)(var2.getHealth() + var2.getAbsorptionAmount()) * (this.getEntityArmor(var2) / 20.0);
} else {
return (double)(var1.getHealth() + var1.getAbsorptionAmount());
}
}

public ModeSetting getType() {
return this.type;
}

public ModeListSetting getOptions() {
return this.options;
}

public StopWatch getStopWatch() {
return this.stopWatch;
}

public LivingEntity getTarget() {
return this.target;
}

private static int lambda$updateTarget$2(Object var0, Object var1) {
Minecraft var10000 = mc;
double var2 = (double)Minecraft.player.getDistance((LivingEntity)var0);
var10000 = mc;
double var4 = (double)Minecraft.player.getDistance((LivingEntity)var1);
return Double.compare(var2, var4);
}

private int lambda$updateTarget$1(Object var1, Object var2) {
double var3 = this.getEntityHealth((LivingEntity)var1);
double var5 = this.getEntityHealth((LivingEntity)var2);
return Double.compare(var3, var5);
}

private double lambda$updateTarget$0(Object var1) {
if (var1 instanceof PlayerEntity var2) {
return -this.getEntityArmor(var2);
} else if (var1 instanceof LivingEntity var3) {
return (double)(-var3.getTotalArmorValue());
} else {
return 0.0;
}
}

private static String 憖桿敻妬檕僈氲淹恑暯承冭壔崦漺冸揬浳便幑佈奨汻戣漇妛峰檈嫮瀙氀棰悳朴氡委墣湅旋浾墍(int var0, int var1, String var2, int var3, int var4) {
StringBuilder var5 = new StringBuilder();
int var6 = 0;
char[] var10;
int var9 = (var10 = var2.toCharArray()).length;

for(int var8 = 0; var8 < var9; var8 -= 25542) {
char var7 = var10[var8];
var5.append((char)(var7 ^ ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾[var6 % ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾.length] ^ var0 ^ ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var3, var6) ^ var1 ^ var4));
var6 += 6317;
var6 -= 6316;
var8 += 25543;
}

return var5.toString();
}

static {
char[] var10001;
var10001 = "}\u001b\u001a@\bARR;\u0014I\u0013[P_\u0000\u0019]9梳暙倖击灲檷凵宕撤浬啮渙壔婋札匇乚塞檴喞判寷塠岞嗊塋懖枛拜埿匥寨娣烧泞槷坌乜棉憣歏俨渚吝嶤桼檘妗噼圇幰泘揼墵汧喅墝潾亄偯梑峛崟俩拯案捌撲匯孡堷厙侂忶峓今愫悁卼峲彙哼啸夀擿叴沏儇极刉湢塟政刟宖伏孷媨槆烅叺".toCharArray();
int var10003 = var10001.length;
char[] var10002 = var10001;
int var1 = var10003;
int var0 = 0;

while(true) {
char[] var4 = var10002;
int var2 = var1;
var10001 = var4;
var10003 = var2;
var10002 = var10001;
var1 = var10003;
if (var10003 <= var0) {
String var5 = (new String(var10002)).intern();
boolean var3 = true;
ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾 = var5.toCharArray();
return;
}

char var10005 = var10002[var0];
byte var10006;
switch (var0 % 7) {
case 0 -> var10006 = 62;
case 1 -> var10006 = 116;
case 2 -> var10006 = 118;
case 3 -> var10006 = 47;
case 4 -> var10006 = 102;
case 5 -> var10006 = 40;
default -> var10006 = 51;
}

var10002[var0] = (char)(var10005 ^ var10006);
var0 += 27280;
var0 -= 27279;
}
}
}

что с килкой делать ? 624 строка в килке return; и в нем ошибка без него все в ошибках 1722270488013.png
 
Начинающий
Статус
Оффлайн
Регистрация
13 Сен 2023
Сообщения
145
Реакции[?]
1
Поинты[?]
1K
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package im.expensive.functions.impl.combat;

import com.google.common.eventbus.Subscribe;
import im.expensive.Expensive;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventInput;
import im.expensive.events.EventMotion;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.Setting;
import im.expensive.functions.settings.impl.BooleanSetting;
import im.expensive.functions.settings.impl.ModeListSetting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.SensUtils;
import im.expensive.utils.math.StopWatch;
import im.expensive.utils.player.InventoryUtil;
import im.expensive.utils.player.MouseUtil;
import im.expensive.utils.player.MoveUtils;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.client.multiplayer.PlayerController;
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.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.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceContext;
import net.minecraft.util.math.RayTraceContext.BlockMode;
import net.minecraft.util.math.RayTraceContext.FluidMode;
import net.minecraft.util.math.RayTraceResult.Type;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import net.optifine.CustomColors;

@FunctionRegister(
name = "Aura",
type = Category.Combat
)
public class Aura extends Function {
private final ModeSetting type = new ModeSetting("Тип", "HVH", new String[]{"HVH", "FT new", "Holyworld"});
private final SliderSetting attackRange = new SliderSetting("Дистанция аттаки", 3.0F, 1.0F, 6.0F, 0.1F);
final ModeListSetting targets = new ModeListSetting("Таргеты", new BooleanSetting[]{new BooleanSetting("Игроки", true), new BooleanSetting("Голые", true), new BooleanSetting("Мобы", false), new BooleanSetting("Животные", false), new BooleanSetting("Друзья", false), new BooleanSetting("Голые невидимки", true), new BooleanSetting("Невидимки", true)});
final ModeListSetting options = new ModeListSetting("Опции", new BooleanSetting[]{new BooleanSetting("Только криты", true), new BooleanSetting("Ломать щит", true), new BooleanSetting("Отжимать щит", true), new BooleanSetting("Ускорять ротацию при атаке", false), new BooleanSetting("Синхронизировать атаку с ТПС", false), new BooleanSetting("Фокусировать одну цель", true), new BooleanSetting("Коррекция движения", true), new BooleanSetting("Бить через стены", false)});
final ModeSetting correctionType = new ModeSetting("Тип коррекции", "Незаметный", new String[]{"Незаметный", "Сфокусированный"});
private final StopWatch stopWatch = new StopWatch();
private Vector2f rotateVector = new Vector2f(0.0F, 0.0F);
private LivingEntity target;
private Entity selected;
int ticks = 0;
boolean isRotated;
final AutoPotion autoPotion;
float lastYaw;
float lastPitch;
static char[] ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾;

public Aura(AutoPotion var1) {
this.autoPotion = var1;
this.addSettings(new Setting[]{this.type, this.attackRange, this.targets, this.options, this.correctionType});
}

@Subscribe
public void onInput(EventInput var1) {
if ((Boolean)this.options.getValueByName("Коррекция движения").get() && this.correctionType.is("Незаметная") && this.target != null) {
Minecraft var10000 = mc;
if (Minecraft.player != null) {
MoveUtils.fixMovement(var1, this.rotateVector.x);
}
}
}

@Subscribe
public void onUpdate(EventUpdate var1) {
if ((Boolean)this.options.getValueByName("Фокусировать одну цель").get() && (this.target == null || !this.isValid(this.target)) || !(Boolean)this.options.getValueByName("Фокусировать одну цель").get()) {
this.updateTarget();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("Снапы")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("AuraSquad")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

}

@Subscribe
private void onWalking(EventMotion var1) {
if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
float var2 = this.rotateVector.x;
float var3 = this.rotateVector.y;
var1.setYaw(var2);
var1.setPitch(var3);
Minecraft var10000 = mc;
Minecraft.player.rotationYawHead = var2;
var10000 = mc;
Minecraft.player.renderYawOffset = var2;
var10000 = mc;
Minecraft.player.rotationPitchHead = var3;
}

}

private void updateTarget() {
ArrayList var1 = new ArrayList();
Minecraft var10000 = mc;
Iterator var2 = Minecraft.world.getAllEntities().iterator();

while(var2.hasNext()) {
Entity var3 = (Entity)var2.next();
if (var3 instanceof LivingEntity var4) {
if (this.isValid(var4)) {
var1.add(var4);
}
}
}

if (var1.isEmpty()) {
this.target = null;
} else if (var1.size() == 1) {
this.target = (LivingEntity)var1.get(0);
} else {
var1.sort(Comparator.comparingDouble(this::lambda$updateTarget$0).thenComparing(this::lambda$updateTarget$1).thenComparing(Aura::lambda$updateTarget$2));
this.target = (LivingEntity)var1.get(0);
}

}

private double gaussianRandom(double var1, double var3) {
return var1 + CustomColors.random.nextGaussian() * var3;
}

private void updateRotation(boolean var1, float var2, float var3) {
Vector3d var10000 = this.target.getPositionVec();
Minecraft var10002 = mc;
double var25 = Minecraft.player.getPosYEye() - this.target.getPosY();
double var10004 = (double)this.target.getHeight();
Minecraft var10005 = mc;
var10000 = var10000.add(0.0, MathHelper.clamp(var25, 0.0, var10004 * (Minecraft.player.getDistanceEyePos(this.target) / (double)(Float)this.attackRange.get())), 0.0);
Minecraft var10001 = mc;
Vector3d var4 = var10000.subtract(Minecraft.player.getEyePosition(1.0F));
this.isRotated = true;
float var5 = (float)MathHelper.wrapDegrees(Math.toDegrees(Math.atan2(var4.z, var4.x)) - 90.0);
float var6 = (float)(-Math.toDegrees(Math.atan2(var4.y, Math.hypot(var4.x, var4.z))));
float var7 = MathHelper.wrapDegrees(var5 - this.rotateVector.x);
float var8 = MathHelper.wrapDegrees(var6 - this.rotateVector.y);
int var9 = (int)var7;
float var12 = 0.0F;
float var13 = 0.0F;
float var10;
float var11;
float var19;
float var20;
float var21;
Minecraft var24;
switch ((String)this.type.get()) {
case "FT new":
var10 = Math.min(Math.max(Math.abs(var7), 1.14F), var2);
var11 = Math.min(Math.max(Math.abs(var8), 1.14F), var3);
if (var1 && this.selected != this.target && (Boolean)this.options.getValueByName("Ускорять ротацию").get()) {
var11 = Math.max(Math.abs(var8), 1.0F);
} else {
var11 /= 3.0F;
}

var10 *= 1.8F;
var12 = (float)this.gaussianRandom(0.0, (double)(var10 / 7.6F));
if (Math.abs(var10 - this.lastYaw) <= 3.0F) {
var10 = this.lastYaw + 2.8F;
}

var13 = (float)this.gaussianRandom(-0.5, 0.5);
float var14 = (float)this.gaussianRandom(-0.5, 0.5);
float var15 = (float)this.gaussianRandom(0.0, 0.8999999761581421) + var13;
float var16 = (float)this.gaussianRandom(0.0, -0.8999999761581421) + var14;
float var17 = (float)(Math.sin((double)(System.currentTimeMillis() % 1000L) / 1000.0 * Math.PI * 2.0) * 1.5);
float var18 = 0.78F;
var19 = this.rotateVector.x + (var7 > 0.0F ? (var10 + var15 + var17) * var18 : -(var10 + var15 + var17) * var18);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? (var11 + var16 + var12) * var18 : -(var11 + var16 + var12) * var18), -89.0F, 89.0F);
var21 = SensUtils.getGCDValue();
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "Holyworld":
var2 *= 100.0F;
var3 *= 100.0F;
var10 = Math.min(Math.max(Math.abs(var7), 1.0F), var2 * 1.5F);
var11 = Math.min(Math.max(Math.abs(var8), 1.0F), var3 * 1.5F);
if (Math.abs(var10 - this.lastYaw) <= 0.1F) {
var10 = this.lastYaw + 0.1F;
}

var19 = this.rotateVector.x + (var7 > 0.0F ? var10 : -var10);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? var11 : -var11), -90.0F, 90.0F);
var21 = SensUtils.getGCDValue() / 10.0F;
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "HVH":
var10 = this.rotateVector.x + (float)var9;
var11 = MathHelper.clamp(this.rotateVector.y + var8, -90.0F, 90.0F);
var12 = SensUtils.getGCDValue();
var10 -= (var10 - this.rotateVector.x) % var12;
var11 -= (var11 - this.rotateVector.y) % var12;
this.rotateVector = new Vector2f(var10, var11);
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var10;
}
}

}

private void updateAttack() {
this.selected = MouseUtil.getMouseOver(this.target, this.rotateVector.x, this.rotateVector.y, (double)(Float)this.attackRange.get());
if ((Boolean)this.options.getValueByName("Ускорять ротацию при атаке").get()) {
this.updateRotation(true, 60.0F, 35.0F);
}

Minecraft var10000;
if (this.selected == null || this.selected != this.target) {
var10000 = mc;
if (!Minecraft.player.isElytraFlying()) {
return;
}
}

if ((Boolean)this.options.getValueByName("Бить через стены").get() || this.isPathClear(this.target)) {
var10000 = mc;
Minecraft var10001;
if (Minecraft.player.isBlocking() && (Boolean)this.options.getValueByName("Отжимать щит").get()) {
var10001 = mc;
mc.playerController.onStoppedUsingItem(Minecraft.player);
}

this.stopWatch.setLastMS(500L);
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, this.target);
var10000 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
LivingEntity var1 = this.target;
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if ((Boolean)this.options.getValueByName("Ломать щит").get()) {
this.breakShieldPlayer(var2);
}
}
}

}

private boolean shouldPlayerFalling() {
Minecraft var10000;
boolean var3;
label46: {
label45: {
var10000 = mc;
if (Minecraft.player.isInWater()) {
var10000 = mc;
if (Minecraft.player.areEyesInFluid(FluidTags.WATER)) {
break label45;
}
}

var10000 = mc;
if (!Minecraft.player.isInLava()) {
var10000 = mc;
if (!Minecraft.player.isOnLadder()) {
var10000 = mc;
if (!Minecraft.player.isPassenger()) {
var10000 = mc;
if (!Minecraft.player.abilities.isFlying) {
var3 = false;
break label46;
}
}
}
}
}

var3 = true;
}

boolean var1 = var3;
var10000 = mc;
float var2 = Minecraft.player.getCooledAttackStrength((Boolean)this.options.getValueByName("Синхронизировать атаку с ТПС").get() ? Expensive.getInstance().getTpsCalc().getAdjustTicks() : 1.5F);
if (var2 < 0.92F) {
return true;
} else if (!var1 && (Boolean)this.options.getValueByName("Только криты").get()) {
var10000 = mc;
if (!Minecraft.player.isOnGround()) {
var10000 = mc;
if (Minecraft.player.fallDistance > 0.0F) {
var3 = true;
return var3;
}
}

var3 = false;
return var3;
} else {
return false;
}
}

private boolean isValid(LivingEntity var1) {
if (var1 instanceof ClientPlayerEntity) {
return true;
} else if (var1.ticksExisted < 3) {
return true;
} else {
Minecraft var10000 = mc;
if (Minecraft.player.getDistanceEyePos(var1) > (double)(Float)this.attackRange.get()) {
return true;
} else {
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if (AntiBot.isBot(var1)) {
return true;
}

if (!(Boolean)this.targets.getValueByName("Друзья").get() && FriendStorage.isFriend(var2.getName().getString())) {
return true;
}

String var3 = var2.getName().getString();
Minecraft var10001 = mc;
if (var3.equalsIgnoreCase(Minecraft.player.getName().getString())) {
return true;
}
}

if (var1 instanceof PlayerEntity && !(Boolean)this.targets.getValueByName("Игроки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые невидимки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && !(Boolean)this.targets.getValueByName("Невидимки").get()) {
return true;
} else if (var1 instanceof MonsterEntity && !(Boolean)this.targets.getValueByName("Мобы").get()) {
return true;
} else if (var1 instanceof AnimalEntity && !(Boolean)this.targets.getValueByName("Животные").get()) {
return true;
} else {
return !var1.isInvulnerable() && var1.isAlive() && !(var1 instanceof ArmorStandEntity);
}
}
}
}

private void breakShieldPlayer(PlayerEntity var1) {
if (var1.isBlocking()) {
int var2 = InventoryUtil.getInstance().getAxeInInventory(true);
int var3 = InventoryUtil.getInstance().getAxeInInventory(false);
Minecraft var10001;
Minecraft var10003;
Minecraft var5;
if (var3 == -1 && var2 != -1) {
int var4 = InventoryUtil.getInstance().findBestSlotInHotBar();
Minecraft var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
PlayerController var10000 = mc.playerController;
int var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var4));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
var10000 = mc.playerController;
var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
}

if (var3 != -1) {
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var3));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
}
}

}

private static int ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(int var4, int i) {
return 0;
}

private boolean isPathClear(LivingEntity var1) {
Minecraft var10000 = mc;
Vector3d var4 = Minecraft.player.getPositionVec();
Minecraft var10002 = mc;
Vector3d var2 = var4.add(0.0, (double)Minecraft.player.getEyeHeight(), 0.0);
Vector3d var3 = var1.getPositionVec().add(0.0, (double)var1.getEyeHeight(), 0.0);
var10000 = mc;
Minecraft var10007 = mc;
return Minecraft.world.rayTraceBlocks(new RayTraceContext(var2, var3, BlockMode.COLLIDER, FluidMode.NONE, Minecraft.player)).getType() == Type.MISS;
}

private void reset() {
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
Minecraft var10000 = mc;
Minecraft.player.rotationYawOffset = -2.14748365E9F;
}

Minecraft var10003 = mc;
Minecraft var10004 = mc;
this.rotateVector = new Vector2f(Minecraft.player.rotationYaw, Minecraft.player.rotationPitch);
}

public boolean onEnable() {
super.onEnable();
this.reset();
this.target = null;
return false;
}

public void onDisable() {
super.onDisable();
this.reset();
this.stopWatch.setLastMS(0L);
this.target = null;
}

private double getEntityArmor(PlayerEntity var1) {
double var2 = 0.0;

for(int var4 = 0; var4 < 4; var4 += 5064) {
ItemStack var5 = (ItemStack)var1.inventory.armorInventory.get(var4);
if (var5.getItem() instanceof ArmorItem) {
var2 += this.getProtectionLvl(var5);
}

var4 -= 5063;
}

return var2;
}

private double getProtectionLvl(ItemStack var1) {
Item var2 = var1.getItem();
if (var2 instanceof ArmorItem var3) {
double var4 = (double)var3.getDamageReduceAmount();
if (var1.isEnchanted()) {
var4 += (double)EnchantmentHelper.getEnchantmentLevel(Enchantments.PROTECTION, var1) * 0.25;
}

return var4;
} else {
return 0.0;
}
}

private double getEntityHealth(LivingEntity var1) {
if (var1 instanceof PlayerEntity var2) {
return (double)(var2.getHealth() + var2.getAbsorptionAmount()) * (this.getEntityArmor(var2) / 20.0);
} else {
return (double)(var1.getHealth() + var1.getAbsorptionAmount());
}
}

public ModeSetting getType() {
return this.type;
}

public ModeListSetting getOptions() {
return this.options;
}

public StopWatch getStopWatch() {
return this.stopWatch;
}

public LivingEntity getTarget() {
return this.target;
}

private static int lambda$updateTarget$2(Object var0, Object var1) {
Minecraft var10000 = mc;
double var2 = (double)Minecraft.player.getDistance((LivingEntity)var0);
var10000 = mc;
double var4 = (double)Minecraft.player.getDistance((LivingEntity)var1);
return Double.compare(var2, var4);
}

private int lambda$updateTarget$1(Object var1, Object var2) {
double var3 = this.getEntityHealth((LivingEntity)var1);
double var5 = this.getEntityHealth((LivingEntity)var2);
return Double.compare(var3, var5);
}

private double lambda$updateTarget$0(Object var1) {
if (var1 instanceof PlayerEntity var2) {
return -this.getEntityArmor(var2);
} else if (var1 instanceof LivingEntity var3) {
return (double)(-var3.getTotalArmorValue());
} else {
return 0.0;
}
}

private static String 憖桿敻妬檕僈氲淹恑暯承冭壔崦漺冸揬浳便幑佈奨汻戣漇妛峰檈嫮瀙氀棰悳朴氡委墣湅旋浾墍(int var0, int var1, String var2, int var3, int var4) {
StringBuilder var5 = new StringBuilder();
int var6 = 0;
char[] var10;
int var9 = (var10 = var2.toCharArray()).length;

for(int var8 = 0; var8 < var9; var8 -= 25542) {
char var7 = var10[var8];
var5.append((char)(var7 ^ ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾[var6 % ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾.length] ^ var0 ^ ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var3, var6) ^ var1 ^ var4));
var6 += 6317;
var6 -= 6316;
var8 += 25543;
}

return var5.toString();
}

static {
char[] var10001;
var10001 = "}\u001b\u001a@\bARR;\u0014I\u0013[P_\u0000\u0019]9梳暙倖击灲檷凵宕撤浬啮渙壔婋札匇乚塞檴喞判寷塠岞嗊塋懖枛拜埿匥寨娣烧泞槷坌乜棉憣歏俨渚吝嶤桼檘妗噼圇幰泘揼墵汧喅墝潾亄偯梑峛崟俩拯案捌撲匯孡堷厙侂忶峓今愫悁卼峲彙哼啸夀擿叴沏儇极刉湢塟政刟宖伏孷媨槆烅叺".toCharArray();
int var10003 = var10001.length;
char[] var10002 = var10001;
int var1 = var10003;
int var0 = 0;

while(true) {
char[] var4 = var10002;
int var2 = var1;
var10001 = var4;
var10003 = var2;
var10002 = var10001;
var1 = var10003;
if (var10003 <= var0) {
String var5 = (new String(var10002)).intern();
boolean var3 = true;
ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾 = var5.toCharArray();
return;
}

char var10005 = var10002[var0];
byte var10006;
switch (var0 % 7) {
case 0 -> var10006 = 62;
case 1 -> var10006 = 116;
case 2 -> var10006 = 118;
case 3 -> var10006 = 47;
case 4 -> var10006 = 102;
case 5 -> var10006 = 40;
default -> var10006 = 51;
}

var10002[var0] = (char)(var10005 ^ var10006);
var0 += 27280;
var0 -= 27279;
}
}
}

что с килкой делать ? 624 строка в килке return; и в нем ошибка без него все в ошибках Посмотреть вложение 282285
:roflanzdarova:
 
ЧВК EB_LAN
Эксперт
Статус
Оффлайн
Регистрация
26 Янв 2021
Сообщения
1,553
Реакции[?]
519
Поинты[?]
189K
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package im.expensive.functions.impl.combat;

import com.google.common.eventbus.Subscribe;
import im.expensive.Expensive;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventInput;
import im.expensive.events.EventMotion;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.Setting;
import im.expensive.functions.settings.impl.BooleanSetting;
import im.expensive.functions.settings.impl.ModeListSetting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.SensUtils;
import im.expensive.utils.math.StopWatch;
import im.expensive.utils.player.InventoryUtil;
import im.expensive.utils.player.MouseUtil;
import im.expensive.utils.player.MoveUtils;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.client.multiplayer.PlayerController;
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.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.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceContext;
import net.minecraft.util.math.RayTraceContext.BlockMode;
import net.minecraft.util.math.RayTraceContext.FluidMode;
import net.minecraft.util.math.RayTraceResult.Type;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import net.optifine.CustomColors;

@FunctionRegister(
name = "Aura",
type = Category.Combat
)
public class Aura extends Function {
private final ModeSetting type = new ModeSetting("Тип", "HVH", new String[]{"HVH", "FT new", "Holyworld"});
private final SliderSetting attackRange = new SliderSetting("Дистанция аттаки", 3.0F, 1.0F, 6.0F, 0.1F);
final ModeListSetting targets = new ModeListSetting("Таргеты", new BooleanSetting[]{new BooleanSetting("Игроки", true), new BooleanSetting("Голые", true), new BooleanSetting("Мобы", false), new BooleanSetting("Животные", false), new BooleanSetting("Друзья", false), new BooleanSetting("Голые невидимки", true), new BooleanSetting("Невидимки", true)});
final ModeListSetting options = new ModeListSetting("Опции", new BooleanSetting[]{new BooleanSetting("Только криты", true), new BooleanSetting("Ломать щит", true), new BooleanSetting("Отжимать щит", true), new BooleanSetting("Ускорять ротацию при атаке", false), new BooleanSetting("Синхронизировать атаку с ТПС", false), new BooleanSetting("Фокусировать одну цель", true), new BooleanSetting("Коррекция движения", true), new BooleanSetting("Бить через стены", false)});
final ModeSetting correctionType = new ModeSetting("Тип коррекции", "Незаметный", new String[]{"Незаметный", "Сфокусированный"});
private final StopWatch stopWatch = new StopWatch();
private Vector2f rotateVector = new Vector2f(0.0F, 0.0F);
private LivingEntity target;
private Entity selected;
int ticks = 0;
boolean isRotated;
final AutoPotion autoPotion;
float lastYaw;
float lastPitch;
static char[] ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾;

public Aura(AutoPotion var1) {
this.autoPotion = var1;
this.addSettings(new Setting[]{this.type, this.attackRange, this.targets, this.options, this.correctionType});
}

@Subscribe
public void onInput(EventInput var1) {
if ((Boolean)this.options.getValueByName("Коррекция движения").get() && this.correctionType.is("Незаметная") && this.target != null) {
Minecraft var10000 = mc;
if (Minecraft.player != null) {
MoveUtils.fixMovement(var1, this.rotateVector.x);
}
}
}

@Subscribe
public void onUpdate(EventUpdate var1) {
if ((Boolean)this.options.getValueByName("Фокусировать одну цель").get() && (this.target == null || !this.isValid(this.target)) || !(Boolean)this.options.getValueByName("Фокусировать одну цель").get()) {
this.updateTarget();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("Снапы")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("AuraSquad")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

}

@Subscribe
private void onWalking(EventMotion var1) {
if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
float var2 = this.rotateVector.x;
float var3 = this.rotateVector.y;
var1.setYaw(var2);
var1.setPitch(var3);
Minecraft var10000 = mc;
Minecraft.player.rotationYawHead = var2;
var10000 = mc;
Minecraft.player.renderYawOffset = var2;
var10000 = mc;
Minecraft.player.rotationPitchHead = var3;
}

}

private void updateTarget() {
ArrayList var1 = new ArrayList();
Minecraft var10000 = mc;
Iterator var2 = Minecraft.world.getAllEntities().iterator();

while(var2.hasNext()) {
Entity var3 = (Entity)var2.next();
if (var3 instanceof LivingEntity var4) {
if (this.isValid(var4)) {
var1.add(var4);
}
}
}

if (var1.isEmpty()) {
this.target = null;
} else if (var1.size() == 1) {
this.target = (LivingEntity)var1.get(0);
} else {
var1.sort(Comparator.comparingDouble(this::lambda$updateTarget$0).thenComparing(this::lambda$updateTarget$1).thenComparing(Aura::lambda$updateTarget$2));
this.target = (LivingEntity)var1.get(0);
}

}

private double gaussianRandom(double var1, double var3) {
return var1 + CustomColors.random.nextGaussian() * var3;
}

private void updateRotation(boolean var1, float var2, float var3) {
Vector3d var10000 = this.target.getPositionVec();
Minecraft var10002 = mc;
double var25 = Minecraft.player.getPosYEye() - this.target.getPosY();
double var10004 = (double)this.target.getHeight();
Minecraft var10005 = mc;
var10000 = var10000.add(0.0, MathHelper.clamp(var25, 0.0, var10004 * (Minecraft.player.getDistanceEyePos(this.target) / (double)(Float)this.attackRange.get())), 0.0);
Minecraft var10001 = mc;
Vector3d var4 = var10000.subtract(Minecraft.player.getEyePosition(1.0F));
this.isRotated = true;
float var5 = (float)MathHelper.wrapDegrees(Math.toDegrees(Math.atan2(var4.z, var4.x)) - 90.0);
float var6 = (float)(-Math.toDegrees(Math.atan2(var4.y, Math.hypot(var4.x, var4.z))));
float var7 = MathHelper.wrapDegrees(var5 - this.rotateVector.x);
float var8 = MathHelper.wrapDegrees(var6 - this.rotateVector.y);
int var9 = (int)var7;
float var12 = 0.0F;
float var13 = 0.0F;
float var10;
float var11;
float var19;
float var20;
float var21;
Minecraft var24;
switch ((String)this.type.get()) {
case "FT new":
var10 = Math.min(Math.max(Math.abs(var7), 1.14F), var2);
var11 = Math.min(Math.max(Math.abs(var8), 1.14F), var3);
if (var1 && this.selected != this.target && (Boolean)this.options.getValueByName("Ускорять ротацию").get()) {
var11 = Math.max(Math.abs(var8), 1.0F);
} else {
var11 /= 3.0F;
}

var10 *= 1.8F;
var12 = (float)this.gaussianRandom(0.0, (double)(var10 / 7.6F));
if (Math.abs(var10 - this.lastYaw) <= 3.0F) {
var10 = this.lastYaw + 2.8F;
}

var13 = (float)this.gaussianRandom(-0.5, 0.5);
float var14 = (float)this.gaussianRandom(-0.5, 0.5);
float var15 = (float)this.gaussianRandom(0.0, 0.8999999761581421) + var13;
float var16 = (float)this.gaussianRandom(0.0, -0.8999999761581421) + var14;
float var17 = (float)(Math.sin((double)(System.currentTimeMillis() % 1000L) / 1000.0 * Math.PI * 2.0) * 1.5);
float var18 = 0.78F;
var19 = this.rotateVector.x + (var7 > 0.0F ? (var10 + var15 + var17) * var18 : -(var10 + var15 + var17) * var18);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? (var11 + var16 + var12) * var18 : -(var11 + var16 + var12) * var18), -89.0F, 89.0F);
var21 = SensUtils.getGCDValue();
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "Holyworld":
var2 *= 100.0F;
var3 *= 100.0F;
var10 = Math.min(Math.max(Math.abs(var7), 1.0F), var2 * 1.5F);
var11 = Math.min(Math.max(Math.abs(var8), 1.0F), var3 * 1.5F);
if (Math.abs(var10 - this.lastYaw) <= 0.1F) {
var10 = this.lastYaw + 0.1F;
}

var19 = this.rotateVector.x + (var7 > 0.0F ? var10 : -var10);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? var11 : -var11), -90.0F, 90.0F);
var21 = SensUtils.getGCDValue() / 10.0F;
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "HVH":
var10 = this.rotateVector.x + (float)var9;
var11 = MathHelper.clamp(this.rotateVector.y + var8, -90.0F, 90.0F);
var12 = SensUtils.getGCDValue();
var10 -= (var10 - this.rotateVector.x) % var12;
var11 -= (var11 - this.rotateVector.y) % var12;
this.rotateVector = new Vector2f(var10, var11);
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var10;
}
}

}

private void updateAttack() {
this.selected = MouseUtil.getMouseOver(this.target, this.rotateVector.x, this.rotateVector.y, (double)(Float)this.attackRange.get());
if ((Boolean)this.options.getValueByName("Ускорять ротацию при атаке").get()) {
this.updateRotation(true, 60.0F, 35.0F);
}

Minecraft var10000;
if (this.selected == null || this.selected != this.target) {
var10000 = mc;
if (!Minecraft.player.isElytraFlying()) {
return;
}
}

if ((Boolean)this.options.getValueByName("Бить через стены").get() || this.isPathClear(this.target)) {
var10000 = mc;
Minecraft var10001;
if (Minecraft.player.isBlocking() && (Boolean)this.options.getValueByName("Отжимать щит").get()) {
var10001 = mc;
mc.playerController.onStoppedUsingItem(Minecraft.player);
}

this.stopWatch.setLastMS(500L);
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, this.target);
var10000 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
LivingEntity var1 = this.target;
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if ((Boolean)this.options.getValueByName("Ломать щит").get()) {
this.breakShieldPlayer(var2);
}
}
}

}

private boolean shouldPlayerFalling() {
Minecraft var10000;
boolean var3;
label46: {
label45: {
var10000 = mc;
if (Minecraft.player.isInWater()) {
var10000 = mc;
if (Minecraft.player.areEyesInFluid(FluidTags.WATER)) {
break label45;
}
}

var10000 = mc;
if (!Minecraft.player.isInLava()) {
var10000 = mc;
if (!Minecraft.player.isOnLadder()) {
var10000 = mc;
if (!Minecraft.player.isPassenger()) {
var10000 = mc;
if (!Minecraft.player.abilities.isFlying) {
var3 = false;
break label46;
}
}
}
}
}

var3 = true;
}

boolean var1 = var3;
var10000 = mc;
float var2 = Minecraft.player.getCooledAttackStrength((Boolean)this.options.getValueByName("Синхронизировать атаку с ТПС").get() ? Expensive.getInstance().getTpsCalc().getAdjustTicks() : 1.5F);
if (var2 < 0.92F) {
return true;
} else if (!var1 && (Boolean)this.options.getValueByName("Только криты").get()) {
var10000 = mc;
if (!Minecraft.player.isOnGround()) {
var10000 = mc;
if (Minecraft.player.fallDistance > 0.0F) {
var3 = true;
return var3;
}
}

var3 = false;
return var3;
} else {
return false;
}
}

private boolean isValid(LivingEntity var1) {
if (var1 instanceof ClientPlayerEntity) {
return true;
} else if (var1.ticksExisted < 3) {
return true;
} else {
Minecraft var10000 = mc;
if (Minecraft.player.getDistanceEyePos(var1) > (double)(Float)this.attackRange.get()) {
return true;
} else {
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if (AntiBot.isBot(var1)) {
return true;
}

if (!(Boolean)this.targets.getValueByName("Друзья").get() && FriendStorage.isFriend(var2.getName().getString())) {
return true;
}

String var3 = var2.getName().getString();
Minecraft var10001 = mc;
if (var3.equalsIgnoreCase(Minecraft.player.getName().getString())) {
return true;
}
}

if (var1 instanceof PlayerEntity && !(Boolean)this.targets.getValueByName("Игроки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые невидимки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && !(Boolean)this.targets.getValueByName("Невидимки").get()) {
return true;
} else if (var1 instanceof MonsterEntity && !(Boolean)this.targets.getValueByName("Мобы").get()) {
return true;
} else if (var1 instanceof AnimalEntity && !(Boolean)this.targets.getValueByName("Животные").get()) {
return true;
} else {
return !var1.isInvulnerable() && var1.isAlive() && !(var1 instanceof ArmorStandEntity);
}
}
}
}

private void breakShieldPlayer(PlayerEntity var1) {
if (var1.isBlocking()) {
int var2 = InventoryUtil.getInstance().getAxeInInventory(true);
int var3 = InventoryUtil.getInstance().getAxeInInventory(false);
Minecraft var10001;
Minecraft var10003;
Minecraft var5;
if (var3 == -1 && var2 != -1) {
int var4 = InventoryUtil.getInstance().findBestSlotInHotBar();
Minecraft var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
PlayerController var10000 = mc.playerController;
int var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var4));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
var10000 = mc.playerController;
var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
}

if (var3 != -1) {
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var3));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
}
}

}

private static int ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(int var4, int i) {
return 0;
}

private boolean isPathClear(LivingEntity var1) {
Minecraft var10000 = mc;
Vector3d var4 = Minecraft.player.getPositionVec();
Minecraft var10002 = mc;
Vector3d var2 = var4.add(0.0, (double)Minecraft.player.getEyeHeight(), 0.0);
Vector3d var3 = var1.getPositionVec().add(0.0, (double)var1.getEyeHeight(), 0.0);
var10000 = mc;
Minecraft var10007 = mc;
return Minecraft.world.rayTraceBlocks(new RayTraceContext(var2, var3, BlockMode.COLLIDER, FluidMode.NONE, Minecraft.player)).getType() == Type.MISS;
}

private void reset() {
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
Minecraft var10000 = mc;
Minecraft.player.rotationYawOffset = -2.14748365E9F;
}

Minecraft var10003 = mc;
Minecraft var10004 = mc;
this.rotateVector = new Vector2f(Minecraft.player.rotationYaw, Minecraft.player.rotationPitch);
}

public boolean onEnable() {
super.onEnable();
this.reset();
this.target = null;
return false;
}

public void onDisable() {
super.onDisable();
this.reset();
this.stopWatch.setLastMS(0L);
this.target = null;
}

private double getEntityArmor(PlayerEntity var1) {
double var2 = 0.0;

for(int var4 = 0; var4 < 4; var4 += 5064) {
ItemStack var5 = (ItemStack)var1.inventory.armorInventory.get(var4);
if (var5.getItem() instanceof ArmorItem) {
var2 += this.getProtectionLvl(var5);
}

var4 -= 5063;
}

return var2;
}

private double getProtectionLvl(ItemStack var1) {
Item var2 = var1.getItem();
if (var2 instanceof ArmorItem var3) {
double var4 = (double)var3.getDamageReduceAmount();
if (var1.isEnchanted()) {
var4 += (double)EnchantmentHelper.getEnchantmentLevel(Enchantments.PROTECTION, var1) * 0.25;
}

return var4;
} else {
return 0.0;
}
}

private double getEntityHealth(LivingEntity var1) {
if (var1 instanceof PlayerEntity var2) {
return (double)(var2.getHealth() + var2.getAbsorptionAmount()) * (this.getEntityArmor(var2) / 20.0);
} else {
return (double)(var1.getHealth() + var1.getAbsorptionAmount());
}
}

public ModeSetting getType() {
return this.type;
}

public ModeListSetting getOptions() {
return this.options;
}

public StopWatch getStopWatch() {
return this.stopWatch;
}

public LivingEntity getTarget() {
return this.target;
}

private static int lambda$updateTarget$2(Object var0, Object var1) {
Minecraft var10000 = mc;
double var2 = (double)Minecraft.player.getDistance((LivingEntity)var0);
var10000 = mc;
double var4 = (double)Minecraft.player.getDistance((LivingEntity)var1);
return Double.compare(var2, var4);
}

private int lambda$updateTarget$1(Object var1, Object var2) {
double var3 = this.getEntityHealth((LivingEntity)var1);
double var5 = this.getEntityHealth((LivingEntity)var2);
return Double.compare(var3, var5);
}

private double lambda$updateTarget$0(Object var1) {
if (var1 instanceof PlayerEntity var2) {
return -this.getEntityArmor(var2);
} else if (var1 instanceof LivingEntity var3) {
return (double)(-var3.getTotalArmorValue());
} else {
return 0.0;
}
}

private static String 憖桿敻妬檕僈氲淹恑暯承冭壔崦漺冸揬浳便幑佈奨汻戣漇妛峰檈嫮瀙氀棰悳朴氡委墣湅旋浾墍(int var0, int var1, String var2, int var3, int var4) {
StringBuilder var5 = new StringBuilder();
int var6 = 0;
char[] var10;
int var9 = (var10 = var2.toCharArray()).length;

for(int var8 = 0; var8 < var9; var8 -= 25542) {
char var7 = var10[var8];
var5.append((char)(var7 ^ ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾[var6 % ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾.length] ^ var0 ^ ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var3, var6) ^ var1 ^ var4));
var6 += 6317;
var6 -= 6316;
var8 += 25543;
}

return var5.toString();
}

static {
char[] var10001;
var10001 = "}\u001b\u001a@\bARR;\u0014I\u0013[P_\u0000\u0019]9梳暙倖击灲檷凵宕撤浬啮渙壔婋札匇乚塞檴喞判寷塠岞嗊塋懖枛拜埿匥寨娣烧泞槷坌乜棉憣歏俨渚吝嶤桼檘妗噼圇幰泘揼墵汧喅墝潾亄偯梑峛崟俩拯案捌撲匯孡堷厙侂忶峓今愫悁卼峲彙哼啸夀擿叴沏儇极刉湢塟政刟宖伏孷媨槆烅叺".toCharArray();
int var10003 = var10001.length;
char[] var10002 = var10001;
int var1 = var10003;
int var0 = 0;

while(true) {
char[] var4 = var10002;
int var2 = var1;
var10001 = var4;
var10003 = var2;
var10002 = var10001;
var1 = var10003;
if (var10003 <= var0) {
String var5 = (new String(var10002)).intern();
boolean var3 = true;
ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾 = var5.toCharArray();
return;
}

char var10005 = var10002[var0];
byte var10006;
switch (var0 % 7) {
case 0 -> var10006 = 62;
case 1 -> var10006 = 116;
case 2 -> var10006 = 118;
case 3 -> var10006 = 47;
case 4 -> var10006 = 102;
case 5 -> var10006 = 40;
default -> var10006 = 51;
}

var10002[var0] = (char)(var10005 ^ var10006);
var0 += 27280;
var0 -= 27279;
}
}
}

что с килкой делать ? 624 строка в килке return; и в нем ошибка без него все в ошибках Посмотреть вложение 282285
иди нахуй че
 
Начинающий
Статус
Оффлайн
Регистрация
20 Апр 2021
Сообщения
1,261
Реакции[?]
27
Поинты[?]
40K
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package im.expensive.functions.impl.combat;

import com.google.common.eventbus.Subscribe;
import im.expensive.Expensive;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventInput;
import im.expensive.events.EventMotion;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.Setting;
import im.expensive.functions.settings.impl.BooleanSetting;
import im.expensive.functions.settings.impl.ModeListSetting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.SensUtils;
import im.expensive.utils.math.StopWatch;
import im.expensive.utils.player.InventoryUtil;
import im.expensive.utils.player.MouseUtil;
import im.expensive.utils.player.MoveUtils;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.client.multiplayer.PlayerController;
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.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.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceContext;
import net.minecraft.util.math.RayTraceContext.BlockMode;
import net.minecraft.util.math.RayTraceContext.FluidMode;
import net.minecraft.util.math.RayTraceResult.Type;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import net.optifine.CustomColors;

@FunctionRegister(
name = "Aura",
type = Category.Combat
)
public class Aura extends Function {
private final ModeSetting type = new ModeSetting("Тип", "HVH", new String[]{"HVH", "FT new", "Holyworld"});
private final SliderSetting attackRange = new SliderSetting("Дистанция аттаки", 3.0F, 1.0F, 6.0F, 0.1F);
final ModeListSetting targets = new ModeListSetting("Таргеты", new BooleanSetting[]{new BooleanSetting("Игроки", true), new BooleanSetting("Голые", true), new BooleanSetting("Мобы", false), new BooleanSetting("Животные", false), new BooleanSetting("Друзья", false), new BooleanSetting("Голые невидимки", true), new BooleanSetting("Невидимки", true)});
final ModeListSetting options = new ModeListSetting("Опции", new BooleanSetting[]{new BooleanSetting("Только криты", true), new BooleanSetting("Ломать щит", true), new BooleanSetting("Отжимать щит", true), new BooleanSetting("Ускорять ротацию при атаке", false), new BooleanSetting("Синхронизировать атаку с ТПС", false), new BooleanSetting("Фокусировать одну цель", true), new BooleanSetting("Коррекция движения", true), new BooleanSetting("Бить через стены", false)});
final ModeSetting correctionType = new ModeSetting("Тип коррекции", "Незаметный", new String[]{"Незаметный", "Сфокусированный"});
private final StopWatch stopWatch = new StopWatch();
private Vector2f rotateVector = new Vector2f(0.0F, 0.0F);
private LivingEntity target;
private Entity selected;
int ticks = 0;
boolean isRotated;
final AutoPotion autoPotion;
float lastYaw;
float lastPitch;
static char[] ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾;

public Aura(AutoPotion var1) {
this.autoPotion = var1;
this.addSettings(new Setting[]{this.type, this.attackRange, this.targets, this.options, this.correctionType});
}

@Subscribe
public void onInput(EventInput var1) {
if ((Boolean)this.options.getValueByName("Коррекция движения").get() && this.correctionType.is("Незаметная") && this.target != null) {
Minecraft var10000 = mc;
if (Minecraft.player != null) {
MoveUtils.fixMovement(var1, this.rotateVector.x);
}
}
}

@Subscribe
public void onUpdate(EventUpdate var1) {
if ((Boolean)this.options.getValueByName("Фокусировать одну цель").get() && (this.target == null || !this.isValid(this.target)) || !(Boolean)this.options.getValueByName("Фокусировать одну цель").get()) {
this.updateTarget();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("Снапы")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("AuraSquad")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

}

@Subscribe
private void onWalking(EventMotion var1) {
if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
float var2 = this.rotateVector.x;
float var3 = this.rotateVector.y;
var1.setYaw(var2);
var1.setPitch(var3);
Minecraft var10000 = mc;
Minecraft.player.rotationYawHead = var2;
var10000 = mc;
Minecraft.player.renderYawOffset = var2;
var10000 = mc;
Minecraft.player.rotationPitchHead = var3;
}

}

private void updateTarget() {
ArrayList var1 = new ArrayList();
Minecraft var10000 = mc;
Iterator var2 = Minecraft.world.getAllEntities().iterator();

while(var2.hasNext()) {
Entity var3 = (Entity)var2.next();
if (var3 instanceof LivingEntity var4) {
if (this.isValid(var4)) {
var1.add(var4);
}
}
}

if (var1.isEmpty()) {
this.target = null;
} else if (var1.size() == 1) {
this.target = (LivingEntity)var1.get(0);
} else {
var1.sort(Comparator.comparingDouble(this::lambda$updateTarget$0).thenComparing(this::lambda$updateTarget$1).thenComparing(Aura::lambda$updateTarget$2));
this.target = (LivingEntity)var1.get(0);
}

}

private double gaussianRandom(double var1, double var3) {
return var1 + CustomColors.random.nextGaussian() * var3;
}

private void updateRotation(boolean var1, float var2, float var3) {
Vector3d var10000 = this.target.getPositionVec();
Minecraft var10002 = mc;
double var25 = Minecraft.player.getPosYEye() - this.target.getPosY();
double var10004 = (double)this.target.getHeight();
Minecraft var10005 = mc;
var10000 = var10000.add(0.0, MathHelper.clamp(var25, 0.0, var10004 * (Minecraft.player.getDistanceEyePos(this.target) / (double)(Float)this.attackRange.get())), 0.0);
Minecraft var10001 = mc;
Vector3d var4 = var10000.subtract(Minecraft.player.getEyePosition(1.0F));
this.isRotated = true;
float var5 = (float)MathHelper.wrapDegrees(Math.toDegrees(Math.atan2(var4.z, var4.x)) - 90.0);
float var6 = (float)(-Math.toDegrees(Math.atan2(var4.y, Math.hypot(var4.x, var4.z))));
float var7 = MathHelper.wrapDegrees(var5 - this.rotateVector.x);
float var8 = MathHelper.wrapDegrees(var6 - this.rotateVector.y);
int var9 = (int)var7;
float var12 = 0.0F;
float var13 = 0.0F;
float var10;
float var11;
float var19;
float var20;
float var21;
Minecraft var24;
switch ((String)this.type.get()) {
case "FT new":
var10 = Math.min(Math.max(Math.abs(var7), 1.14F), var2);
var11 = Math.min(Math.max(Math.abs(var8), 1.14F), var3);
if (var1 && this.selected != this.target && (Boolean)this.options.getValueByName("Ускорять ротацию").get()) {
var11 = Math.max(Math.abs(var8), 1.0F);
} else {
var11 /= 3.0F;
}

var10 *= 1.8F;
var12 = (float)this.gaussianRandom(0.0, (double)(var10 / 7.6F));
if (Math.abs(var10 - this.lastYaw) <= 3.0F) {
var10 = this.lastYaw + 2.8F;
}

var13 = (float)this.gaussianRandom(-0.5, 0.5);
float var14 = (float)this.gaussianRandom(-0.5, 0.5);
float var15 = (float)this.gaussianRandom(0.0, 0.8999999761581421) + var13;
float var16 = (float)this.gaussianRandom(0.0, -0.8999999761581421) + var14;
float var17 = (float)(Math.sin((double)(System.currentTimeMillis() % 1000L) / 1000.0 * Math.PI * 2.0) * 1.5);
float var18 = 0.78F;
var19 = this.rotateVector.x + (var7 > 0.0F ? (var10 + var15 + var17) * var18 : -(var10 + var15 + var17) * var18);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? (var11 + var16 + var12) * var18 : -(var11 + var16 + var12) * var18), -89.0F, 89.0F);
var21 = SensUtils.getGCDValue();
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "Holyworld":
var2 *= 100.0F;
var3 *= 100.0F;
var10 = Math.min(Math.max(Math.abs(var7), 1.0F), var2 * 1.5F);
var11 = Math.min(Math.max(Math.abs(var8), 1.0F), var3 * 1.5F);
if (Math.abs(var10 - this.lastYaw) <= 0.1F) {
var10 = this.lastYaw + 0.1F;
}

var19 = this.rotateVector.x + (var7 > 0.0F ? var10 : -var10);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? var11 : -var11), -90.0F, 90.0F);
var21 = SensUtils.getGCDValue() / 10.0F;
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "HVH":
var10 = this.rotateVector.x + (float)var9;
var11 = MathHelper.clamp(this.rotateVector.y + var8, -90.0F, 90.0F);
var12 = SensUtils.getGCDValue();
var10 -= (var10 - this.rotateVector.x) % var12;
var11 -= (var11 - this.rotateVector.y) % var12;
this.rotateVector = new Vector2f(var10, var11);
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var10;
}
}

}

private void updateAttack() {
this.selected = MouseUtil.getMouseOver(this.target, this.rotateVector.x, this.rotateVector.y, (double)(Float)this.attackRange.get());
if ((Boolean)this.options.getValueByName("Ускорять ротацию при атаке").get()) {
this.updateRotation(true, 60.0F, 35.0F);
}

Minecraft var10000;
if (this.selected == null || this.selected != this.target) {
var10000 = mc;
if (!Minecraft.player.isElytraFlying()) {
return;
}
}

if ((Boolean)this.options.getValueByName("Бить через стены").get() || this.isPathClear(this.target)) {
var10000 = mc;
Minecraft var10001;
if (Minecraft.player.isBlocking() && (Boolean)this.options.getValueByName("Отжимать щит").get()) {
var10001 = mc;
mc.playerController.onStoppedUsingItem(Minecraft.player);
}

this.stopWatch.setLastMS(500L);
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, this.target);
var10000 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
LivingEntity var1 = this.target;
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if ((Boolean)this.options.getValueByName("Ломать щит").get()) {
this.breakShieldPlayer(var2);
}
}
}

}

private boolean shouldPlayerFalling() {
Minecraft var10000;
boolean var3;
label46: {
label45: {
var10000 = mc;
if (Minecraft.player.isInWater()) {
var10000 = mc;
if (Minecraft.player.areEyesInFluid(FluidTags.WATER)) {
break label45;
}
}

var10000 = mc;
if (!Minecraft.player.isInLava()) {
var10000 = mc;
if (!Minecraft.player.isOnLadder()) {
var10000 = mc;
if (!Minecraft.player.isPassenger()) {
var10000 = mc;
if (!Minecraft.player.abilities.isFlying) {
var3 = false;
break label46;
}
}
}
}
}

var3 = true;
}

boolean var1 = var3;
var10000 = mc;
float var2 = Minecraft.player.getCooledAttackStrength((Boolean)this.options.getValueByName("Синхронизировать атаку с ТПС").get() ? Expensive.getInstance().getTpsCalc().getAdjustTicks() : 1.5F);
if (var2 < 0.92F) {
return true;
} else if (!var1 && (Boolean)this.options.getValueByName("Только криты").get()) {
var10000 = mc;
if (!Minecraft.player.isOnGround()) {
var10000 = mc;
if (Minecraft.player.fallDistance > 0.0F) {
var3 = true;
return var3;
}
}

var3 = false;
return var3;
} else {
return false;
}
}

private boolean isValid(LivingEntity var1) {
if (var1 instanceof ClientPlayerEntity) {
return true;
} else if (var1.ticksExisted < 3) {
return true;
} else {
Minecraft var10000 = mc;
if (Minecraft.player.getDistanceEyePos(var1) > (double)(Float)this.attackRange.get()) {
return true;
} else {
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if (AntiBot.isBot(var1)) {
return true;
}

if (!(Boolean)this.targets.getValueByName("Друзья").get() && FriendStorage.isFriend(var2.getName().getString())) {
return true;
}

String var3 = var2.getName().getString();
Minecraft var10001 = mc;
if (var3.equalsIgnoreCase(Minecraft.player.getName().getString())) {
return true;
}
}

if (var1 instanceof PlayerEntity && !(Boolean)this.targets.getValueByName("Игроки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые невидимки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && !(Boolean)this.targets.getValueByName("Невидимки").get()) {
return true;
} else if (var1 instanceof MonsterEntity && !(Boolean)this.targets.getValueByName("Мобы").get()) {
return true;
} else if (var1 instanceof AnimalEntity && !(Boolean)this.targets.getValueByName("Животные").get()) {
return true;
} else {
return !var1.isInvulnerable() && var1.isAlive() && !(var1 instanceof ArmorStandEntity);
}
}
}
}

private void breakShieldPlayer(PlayerEntity var1) {
if (var1.isBlocking()) {
int var2 = InventoryUtil.getInstance().getAxeInInventory(true);
int var3 = InventoryUtil.getInstance().getAxeInInventory(false);
Minecraft var10001;
Minecraft var10003;
Minecraft var5;
if (var3 == -1 && var2 != -1) {
int var4 = InventoryUtil.getInstance().findBestSlotInHotBar();
Minecraft var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
PlayerController var10000 = mc.playerController;
int var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var4));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
var10000 = mc.playerController;
var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
}

if (var3 != -1) {
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var3));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
}
}

}

private static int ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(int var4, int i) {
return 0;
}

private boolean isPathClear(LivingEntity var1) {
Minecraft var10000 = mc;
Vector3d var4 = Minecraft.player.getPositionVec();
Minecraft var10002 = mc;
Vector3d var2 = var4.add(0.0, (double)Minecraft.player.getEyeHeight(), 0.0);
Vector3d var3 = var1.getPositionVec().add(0.0, (double)var1.getEyeHeight(), 0.0);
var10000 = mc;
Minecraft var10007 = mc;
return Minecraft.world.rayTraceBlocks(new RayTraceContext(var2, var3, BlockMode.COLLIDER, FluidMode.NONE, Minecraft.player)).getType() == Type.MISS;
}

private void reset() {
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
Minecraft var10000 = mc;
Minecraft.player.rotationYawOffset = -2.14748365E9F;
}

Minecraft var10003 = mc;
Minecraft var10004 = mc;
this.rotateVector = new Vector2f(Minecraft.player.rotationYaw, Minecraft.player.rotationPitch);
}

public boolean onEnable() {
super.onEnable();
this.reset();
this.target = null;
return false;
}

public void onDisable() {
super.onDisable();
this.reset();
this.stopWatch.setLastMS(0L);
this.target = null;
}

private double getEntityArmor(PlayerEntity var1) {
double var2 = 0.0;

for(int var4 = 0; var4 < 4; var4 += 5064) {
ItemStack var5 = (ItemStack)var1.inventory.armorInventory.get(var4);
if (var5.getItem() instanceof ArmorItem) {
var2 += this.getProtectionLvl(var5);
}

var4 -= 5063;
}

return var2;
}

private double getProtectionLvl(ItemStack var1) {
Item var2 = var1.getItem();
if (var2 instanceof ArmorItem var3) {
double var4 = (double)var3.getDamageReduceAmount();
if (var1.isEnchanted()) {
var4 += (double)EnchantmentHelper.getEnchantmentLevel(Enchantments.PROTECTION, var1) * 0.25;
}

return var4;
} else {
return 0.0;
}
}

private double getEntityHealth(LivingEntity var1) {
if (var1 instanceof PlayerEntity var2) {
return (double)(var2.getHealth() + var2.getAbsorptionAmount()) * (this.getEntityArmor(var2) / 20.0);
} else {
return (double)(var1.getHealth() + var1.getAbsorptionAmount());
}
}

public ModeSetting getType() {
return this.type;
}

public ModeListSetting getOptions() {
return this.options;
}

public StopWatch getStopWatch() {
return this.stopWatch;
}

public LivingEntity getTarget() {
return this.target;
}

private static int lambda$updateTarget$2(Object var0, Object var1) {
Minecraft var10000 = mc;
double var2 = (double)Minecraft.player.getDistance((LivingEntity)var0);
var10000 = mc;
double var4 = (double)Minecraft.player.getDistance((LivingEntity)var1);
return Double.compare(var2, var4);
}

private int lambda$updateTarget$1(Object var1, Object var2) {
double var3 = this.getEntityHealth((LivingEntity)var1);
double var5 = this.getEntityHealth((LivingEntity)var2);
return Double.compare(var3, var5);
}

private double lambda$updateTarget$0(Object var1) {
if (var1 instanceof PlayerEntity var2) {
return -this.getEntityArmor(var2);
} else if (var1 instanceof LivingEntity var3) {
return (double)(-var3.getTotalArmorValue());
} else {
return 0.0;
}
}

private static String 憖桿敻妬檕僈氲淹恑暯承冭壔崦漺冸揬浳便幑佈奨汻戣漇妛峰檈嫮瀙氀棰悳朴氡委墣湅旋浾墍(int var0, int var1, String var2, int var3, int var4) {
StringBuilder var5 = new StringBuilder();
int var6 = 0;
char[] var10;
int var9 = (var10 = var2.toCharArray()).length;

for(int var8 = 0; var8 < var9; var8 -= 25542) {
char var7 = var10[var8];
var5.append((char)(var7 ^ ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾[var6 % ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾.length] ^ var0 ^ ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var3, var6) ^ var1 ^ var4));
var6 += 6317;
var6 -= 6316;
var8 += 25543;
}

return var5.toString();
}

static {
char[] var10001;
var10001 = "}\u001b\u001a@\bARR;\u0014I\u0013[P_\u0000\u0019]9梳暙倖击灲檷凵宕撤浬啮渙壔婋札匇乚塞檴喞判寷塠岞嗊塋懖枛拜埿匥寨娣烧泞槷坌乜棉憣歏俨渚吝嶤桼檘妗噼圇幰泘揼墵汧喅墝潾亄偯梑峛崟俩拯案捌撲匯孡堷厙侂忶峓今愫悁卼峲彙哼啸夀擿叴沏儇极刉湢塟政刟宖伏孷媨槆烅叺".toCharArray();
int var10003 = var10001.length;
char[] var10002 = var10001;
int var1 = var10003;
int var0 = 0;

while(true) {
char[] var4 = var10002;
int var2 = var1;
var10001 = var4;
var10003 = var2;
var10002 = var10001;
var1 = var10003;
if (var10003 <= var0) {
String var5 = (new String(var10002)).intern();
boolean var3 = true;
ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾 = var5.toCharArray();
return;
}

char var10005 = var10002[var0];
byte var10006;
switch (var0 % 7) {
case 0 -> var10006 = 62;
case 1 -> var10006 = 116;
case 2 -> var10006 = 118;
case 3 -> var10006 = 47;
case 4 -> var10006 = 102;
case 5 -> var10006 = 40;
default -> var10006 = 51;
}

var10002[var0] = (char)(var10005 ^ var10006);
var0 += 27280;
var0 -= 27279;
}
}
}

что с килкой делать ? 624 строка в килке return; и в нем ошибка без него все в ошибках Посмотреть вложение 282285
ААХХАХАХАХЗА
в классе везде поменяй Aura на KillAura
 
Начинающий
Статус
Онлайн
Регистрация
23 Июн 2023
Сообщения
398
Реакции[?]
2
Поинты[?]
0
Могу кинуть дс гения на создателе, хотя нах вам это же надо?
// ну если хотите закину
 
Начинающий
Статус
Оффлайн
Регистрация
29 Июн 2023
Сообщения
191
Реакции[?]
3
Поинты[?]
7K
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package im.expensive.functions.impl.combat;

import com.google.common.eventbus.Subscribe;
import im.expensive.Expensive;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventInput;
import im.expensive.events.EventMotion;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.settings.Setting;
import im.expensive.functions.settings.impl.BooleanSetting;
import im.expensive.functions.settings.impl.ModeListSetting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.SensUtils;
import im.expensive.utils.math.StopWatch;
import im.expensive.utils.player.InventoryUtil;
import im.expensive.utils.player.MouseUtil;
import im.expensive.utils.player.MoveUtils;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.client.multiplayer.PlayerController;
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.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.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceContext;
import net.minecraft.util.math.RayTraceContext.BlockMode;
import net.minecraft.util.math.RayTraceContext.FluidMode;
import net.minecraft.util.math.RayTraceResult.Type;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import net.optifine.CustomColors;

@FunctionRegister(
name = "Aura",
type = Category.Combat
)
public class Aura extends Function {
private final ModeSetting type = new ModeSetting("Тип", "HVH", new String[]{"HVH", "FT new", "Holyworld"});
private final SliderSetting attackRange = new SliderSetting("Дистанция аттаки", 3.0F, 1.0F, 6.0F, 0.1F);
final ModeListSetting targets = new ModeListSetting("Таргеты", new BooleanSetting[]{new BooleanSetting("Игроки", true), new BooleanSetting("Голые", true), new BooleanSetting("Мобы", false), new BooleanSetting("Животные", false), new BooleanSetting("Друзья", false), new BooleanSetting("Голые невидимки", true), new BooleanSetting("Невидимки", true)});
final ModeListSetting options = new ModeListSetting("Опции", new BooleanSetting[]{new BooleanSetting("Только криты", true), new BooleanSetting("Ломать щит", true), new BooleanSetting("Отжимать щит", true), new BooleanSetting("Ускорять ротацию при атаке", false), new BooleanSetting("Синхронизировать атаку с ТПС", false), new BooleanSetting("Фокусировать одну цель", true), new BooleanSetting("Коррекция движения", true), new BooleanSetting("Бить через стены", false)});
final ModeSetting correctionType = new ModeSetting("Тип коррекции", "Незаметный", new String[]{"Незаметный", "Сфокусированный"});
private final StopWatch stopWatch = new StopWatch();
private Vector2f rotateVector = new Vector2f(0.0F, 0.0F);
private LivingEntity target;
private Entity selected;
int ticks = 0;
boolean isRotated;
final AutoPotion autoPotion;
float lastYaw;
float lastPitch;
static char[] ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾;

public Aura(AutoPotion var1) {
this.autoPotion = var1;
this.addSettings(new Setting[]{this.type, this.attackRange, this.targets, this.options, this.correctionType});
}

@Subscribe
public void onInput(EventInput var1) {
if ((Boolean)this.options.getValueByName("Коррекция движения").get() && this.correctionType.is("Незаметная") && this.target != null) {
Minecraft var10000 = mc;
if (Minecraft.player != null) {
MoveUtils.fixMovement(var1, this.rotateVector.x);
}
}
}

@Subscribe
public void onUpdate(EventUpdate var1) {
if ((Boolean)this.options.getValueByName("Фокусировать одну цель").get() && (this.target == null || !this.isValid(this.target)) || !(Boolean)this.options.getValueByName("Фокусировать одну цель").get()) {
this.updateTarget();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("Снапы")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
this.isRotated = false;
if (this.shouldPlayerFalling() && this.stopWatch.hasTimeElapsed()) {
this.updateAttack();
this.ticks = 3;
}

if (this.type.is("AuraSquad")) {
if (this.ticks > 0) {
this.updateRotation(true, 180.0F, 90.0F);
--this.ticks;
} else {
this.reset();
}
} else if (!this.isRotated) {
this.updateRotation(false, 80.0F, 35.0F);
}
} else {
this.stopWatch.setLastMS(0L);
this.reset();
}

}

@Subscribe
private void onWalking(EventMotion var1) {
if (this.target != null && (!this.autoPotion.isState() || !this.autoPotion.isActive())) {
float var2 = this.rotateVector.x;
float var3 = this.rotateVector.y;
var1.setYaw(var2);
var1.setPitch(var3);
Minecraft var10000 = mc;
Minecraft.player.rotationYawHead = var2;
var10000 = mc;
Minecraft.player.renderYawOffset = var2;
var10000 = mc;
Minecraft.player.rotationPitchHead = var3;
}

}

private void updateTarget() {
ArrayList var1 = new ArrayList();
Minecraft var10000 = mc;
Iterator var2 = Minecraft.world.getAllEntities().iterator();

while(var2.hasNext()) {
Entity var3 = (Entity)var2.next();
if (var3 instanceof LivingEntity var4) {
if (this.isValid(var4)) {
var1.add(var4);
}
}
}

if (var1.isEmpty()) {
this.target = null;
} else if (var1.size() == 1) {
this.target = (LivingEntity)var1.get(0);
} else {
var1.sort(Comparator.comparingDouble(this::lambda$updateTarget$0).thenComparing(this::lambda$updateTarget$1).thenComparing(Aura::lambda$updateTarget$2));
this.target = (LivingEntity)var1.get(0);
}

}

private double gaussianRandom(double var1, double var3) {
return var1 + CustomColors.random.nextGaussian() * var3;
}

private void updateRotation(boolean var1, float var2, float var3) {
Vector3d var10000 = this.target.getPositionVec();
Minecraft var10002 = mc;
double var25 = Minecraft.player.getPosYEye() - this.target.getPosY();
double var10004 = (double)this.target.getHeight();
Minecraft var10005 = mc;
var10000 = var10000.add(0.0, MathHelper.clamp(var25, 0.0, var10004 * (Minecraft.player.getDistanceEyePos(this.target) / (double)(Float)this.attackRange.get())), 0.0);
Minecraft var10001 = mc;
Vector3d var4 = var10000.subtract(Minecraft.player.getEyePosition(1.0F));
this.isRotated = true;
float var5 = (float)MathHelper.wrapDegrees(Math.toDegrees(Math.atan2(var4.z, var4.x)) - 90.0);
float var6 = (float)(-Math.toDegrees(Math.atan2(var4.y, Math.hypot(var4.x, var4.z))));
float var7 = MathHelper.wrapDegrees(var5 - this.rotateVector.x);
float var8 = MathHelper.wrapDegrees(var6 - this.rotateVector.y);
int var9 = (int)var7;
float var12 = 0.0F;
float var13 = 0.0F;
float var10;
float var11;
float var19;
float var20;
float var21;
Minecraft var24;
switch ((String)this.type.get()) {
case "FT new":
var10 = Math.min(Math.max(Math.abs(var7), 1.14F), var2);
var11 = Math.min(Math.max(Math.abs(var8), 1.14F), var3);
if (var1 && this.selected != this.target && (Boolean)this.options.getValueByName("Ускорять ротацию").get()) {
var11 = Math.max(Math.abs(var8), 1.0F);
} else {
var11 /= 3.0F;
}

var10 *= 1.8F;
var12 = (float)this.gaussianRandom(0.0, (double)(var10 / 7.6F));
if (Math.abs(var10 - this.lastYaw) <= 3.0F) {
var10 = this.lastYaw + 2.8F;
}

var13 = (float)this.gaussianRandom(-0.5, 0.5);
float var14 = (float)this.gaussianRandom(-0.5, 0.5);
float var15 = (float)this.gaussianRandom(0.0, 0.8999999761581421) + var13;
float var16 = (float)this.gaussianRandom(0.0, -0.8999999761581421) + var14;
float var17 = (float)(Math.sin((double)(System.currentTimeMillis() % 1000L) / 1000.0 * Math.PI * 2.0) * 1.5);
float var18 = 0.78F;
var19 = this.rotateVector.x + (var7 > 0.0F ? (var10 + var15 + var17) * var18 : -(var10 + var15 + var17) * var18);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? (var11 + var16 + var12) * var18 : -(var11 + var16 + var12) * var18), -89.0F, 89.0F);
var21 = SensUtils.getGCDValue();
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "Holyworld":
var2 *= 100.0F;
var3 *= 100.0F;
var10 = Math.min(Math.max(Math.abs(var7), 1.0F), var2 * 1.5F);
var11 = Math.min(Math.max(Math.abs(var8), 1.0F), var3 * 1.5F);
if (Math.abs(var10 - this.lastYaw) <= 0.1F) {
var10 = this.lastYaw + 0.1F;
}

var19 = this.rotateVector.x + (var7 > 0.0F ? var10 : -var10);
var20 = MathHelper.clamp(this.rotateVector.y + (var8 > 0.0F ? var11 : -var11), -90.0F, 90.0F);
var21 = SensUtils.getGCDValue() / 10.0F;
var19 -= (var19 - this.rotateVector.x) % var21;
var20 -= (var20 - this.rotateVector.y) % var21;
this.rotateVector = new Vector2f(var19, var20);
this.lastYaw = var10;
this.lastPitch = var11;
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var19;
}
break;
case "HVH":
var10 = this.rotateVector.x + (float)var9;
var11 = MathHelper.clamp(this.rotateVector.y + var8, -90.0F, 90.0F);
var12 = SensUtils.getGCDValue();
var10 -= (var10 - this.rotateVector.x) % var12;
var11 -= (var11 - this.rotateVector.y) % var12;
this.rotateVector = new Vector2f(var10, var11);
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
var24 = mc;
Minecraft.player.rotationYawOffset = var10;
}
}

}

private void updateAttack() {
this.selected = MouseUtil.getMouseOver(this.target, this.rotateVector.x, this.rotateVector.y, (double)(Float)this.attackRange.get());
if ((Boolean)this.options.getValueByName("Ускорять ротацию при атаке").get()) {
this.updateRotation(true, 60.0F, 35.0F);
}

Minecraft var10000;
if (this.selected == null || this.selected != this.target) {
var10000 = mc;
if (!Minecraft.player.isElytraFlying()) {
return;
}
}

if ((Boolean)this.options.getValueByName("Бить через стены").get() || this.isPathClear(this.target)) {
var10000 = mc;
Minecraft var10001;
if (Minecraft.player.isBlocking() && (Boolean)this.options.getValueByName("Отжимать щит").get()) {
var10001 = mc;
mc.playerController.onStoppedUsingItem(Minecraft.player);
}

this.stopWatch.setLastMS(500L);
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, this.target);
var10000 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
LivingEntity var1 = this.target;
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if ((Boolean)this.options.getValueByName("Ломать щит").get()) {
this.breakShieldPlayer(var2);
}
}
}

}

private boolean shouldPlayerFalling() {
Minecraft var10000;
boolean var3;
label46: {
label45: {
var10000 = mc;
if (Minecraft.player.isInWater()) {
var10000 = mc;
if (Minecraft.player.areEyesInFluid(FluidTags.WATER)) {
break label45;
}
}

var10000 = mc;
if (!Minecraft.player.isInLava()) {
var10000 = mc;
if (!Minecraft.player.isOnLadder()) {
var10000 = mc;
if (!Minecraft.player.isPassenger()) {
var10000 = mc;
if (!Minecraft.player.abilities.isFlying) {
var3 = false;
break label46;
}
}
}
}
}

var3 = true;
}

boolean var1 = var3;
var10000 = mc;
float var2 = Minecraft.player.getCooledAttackStrength((Boolean)this.options.getValueByName("Синхронизировать атаку с ТПС").get() ? Expensive.getInstance().getTpsCalc().getAdjustTicks() : 1.5F);
if (var2 < 0.92F) {
return true;
} else if (!var1 && (Boolean)this.options.getValueByName("Только криты").get()) {
var10000 = mc;
if (!Minecraft.player.isOnGround()) {
var10000 = mc;
if (Minecraft.player.fallDistance > 0.0F) {
var3 = true;
return var3;
}
}

var3 = false;
return var3;
} else {
return false;
}
}

private boolean isValid(LivingEntity var1) {
if (var1 instanceof ClientPlayerEntity) {
return true;
} else if (var1.ticksExisted < 3) {
return true;
} else {
Minecraft var10000 = mc;
if (Minecraft.player.getDistanceEyePos(var1) > (double)(Float)this.attackRange.get()) {
return true;
} else {
if (var1 instanceof PlayerEntity) {
PlayerEntity var2 = (PlayerEntity)var1;
if (AntiBot.isBot(var1)) {
return true;
}

if (!(Boolean)this.targets.getValueByName("Друзья").get() && FriendStorage.isFriend(var2.getName().getString())) {
return true;
}

String var3 = var2.getName().getString();
Minecraft var10001 = mc;
if (var3.equalsIgnoreCase(Minecraft.player.getName().getString())) {
return true;
}
}

if (var1 instanceof PlayerEntity && !(Boolean)this.targets.getValueByName("Игроки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && var1.getTotalArmorValue() == 0 && !(Boolean)this.targets.getValueByName("Голые невидимки").get()) {
return true;
} else if (var1 instanceof PlayerEntity && var1.isInvisible() && !(Boolean)this.targets.getValueByName("Невидимки").get()) {
return true;
} else if (var1 instanceof MonsterEntity && !(Boolean)this.targets.getValueByName("Мобы").get()) {
return true;
} else if (var1 instanceof AnimalEntity && !(Boolean)this.targets.getValueByName("Животные").get()) {
return true;
} else {
return !var1.isInvulnerable() && var1.isAlive() && !(var1 instanceof ArmorStandEntity);
}
}
}
}

private void breakShieldPlayer(PlayerEntity var1) {
if (var1.isBlocking()) {
int var2 = InventoryUtil.getInstance().getAxeInInventory(true);
int var3 = InventoryUtil.getInstance().getAxeInInventory(false);
Minecraft var10001;
Minecraft var10003;
Minecraft var5;
if (var3 == -1 && var2 != -1) {
int var4 = InventoryUtil.getInstance().findBestSlotInHotBar();
Minecraft var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
PlayerController var10000 = mc.playerController;
int var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var4));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
var10000 = mc.playerController;
var10002 = ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var4, 36);
var10005 = mc;
var10000.windowClick(0, var10002, 0, ClickType.PICKUP, Minecraft.player);
var10005 = mc;
mc.playerController.windowClick(0, var2, 0, ClickType.PICKUP, Minecraft.player);
}

if (var3 != -1) {
var5 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(var3));
var10001 = mc;
mc.playerController.attackEntity(Minecraft.player, var1);
var5 = mc;
Minecraft.player.swingArm(Hand.MAIN_HAND);
var5 = mc;
var10003 = mc;
Minecraft.player.connection.sendPacket(new CHeldItemChangePacket(Minecraft.player.inventory.currentItem));
}
}

}

private static int ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(int var4, int i) {
return 0;
}

private boolean isPathClear(LivingEntity var1) {
Minecraft var10000 = mc;
Vector3d var4 = Minecraft.player.getPositionVec();
Minecraft var10002 = mc;
Vector3d var2 = var4.add(0.0, (double)Minecraft.player.getEyeHeight(), 0.0);
Vector3d var3 = var1.getPositionVec().add(0.0, (double)var1.getEyeHeight(), 0.0);
var10000 = mc;
Minecraft var10007 = mc;
return Minecraft.world.rayTraceBlocks(new RayTraceContext(var2, var3, BlockMode.COLLIDER, FluidMode.NONE, Minecraft.player)).getType() == Type.MISS;
}

private void reset() {
if ((Boolean)this.options.getValueByName("Коррекция движения").get()) {
Minecraft var10000 = mc;
Minecraft.player.rotationYawOffset = -2.14748365E9F;
}

Minecraft var10003 = mc;
Minecraft var10004 = mc;
this.rotateVector = new Vector2f(Minecraft.player.rotationYaw, Minecraft.player.rotationPitch);
}

public boolean onEnable() {
super.onEnable();
this.reset();
this.target = null;
return false;
}

public void onDisable() {
super.onDisable();
this.reset();
this.stopWatch.setLastMS(0L);
this.target = null;
}

private double getEntityArmor(PlayerEntity var1) {
double var2 = 0.0;

for(int var4 = 0; var4 < 4; var4 += 5064) {
ItemStack var5 = (ItemStack)var1.inventory.armorInventory.get(var4);
if (var5.getItem() instanceof ArmorItem) {
var2 += this.getProtectionLvl(var5);
}

var4 -= 5063;
}

return var2;
}

private double getProtectionLvl(ItemStack var1) {
Item var2 = var1.getItem();
if (var2 instanceof ArmorItem var3) {
double var4 = (double)var3.getDamageReduceAmount();
if (var1.isEnchanted()) {
var4 += (double)EnchantmentHelper.getEnchantmentLevel(Enchantments.PROTECTION, var1) * 0.25;
}

return var4;
} else {
return 0.0;
}
}

private double getEntityHealth(LivingEntity var1) {
if (var1 instanceof PlayerEntity var2) {
return (double)(var2.getHealth() + var2.getAbsorptionAmount()) * (this.getEntityArmor(var2) / 20.0);
} else {
return (double)(var1.getHealth() + var1.getAbsorptionAmount());
}
}

public ModeSetting getType() {
return this.type;
}

public ModeListSetting getOptions() {
return this.options;
}

public StopWatch getStopWatch() {
return this.stopWatch;
}

public LivingEntity getTarget() {
return this.target;
}

private static int lambda$updateTarget$2(Object var0, Object var1) {
Minecraft var10000 = mc;
double var2 = (double)Minecraft.player.getDistance((LivingEntity)var0);
var10000 = mc;
double var4 = (double)Minecraft.player.getDistance((LivingEntity)var1);
return Double.compare(var2, var4);
}

private int lambda$updateTarget$1(Object var1, Object var2) {
double var3 = this.getEntityHealth((LivingEntity)var1);
double var5 = this.getEntityHealth((LivingEntity)var2);
return Double.compare(var3, var5);
}

private double lambda$updateTarget$0(Object var1) {
if (var1 instanceof PlayerEntity var2) {
return -this.getEntityArmor(var2);
} else if (var1 instanceof LivingEntity var3) {
return (double)(-var3.getTotalArmorValue());
} else {
return 0.0;
}
}

private static String 憖桿敻妬檕僈氲淹恑暯承冭壔崦漺冸揬浳便幑佈奨汻戣漇妛峰檈嫮瀙氀棰悳朴氡委墣湅旋浾墍(int var0, int var1, String var2, int var3, int var4) {
StringBuilder var5 = new StringBuilder();
int var6 = 0;
char[] var10;
int var9 = (var10 = var2.toCharArray()).length;

for(int var8 = 0; var8 < var9; var8 -= 25542) {
char var7 = var10[var8];
var5.append((char)(var7 ^ ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾[var6 % ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾.length] ^ var0 ^ ColonialObfuscator_槏瀿氆愢匓埂喠垣本唁匹巈摿档捾娤徦敆乬岲滮校坟媏壾歋偉岘沞樗毡揞擩乨慽塛憫廬林潉俒(var3, var6) ^ var1 ^ var4));
var6 += 6317;
var6 -= 6316;
var8 += 25543;
}

return var5.toString();
}

static {
char[] var10001;
var10001 = "}\u001b\u001a@\bARR;\u0014I\u0013[P_\u0000\u0019]9梳暙倖击灲檷凵宕撤浬啮渙壔婋札匇乚塞檴喞判寷塠岞嗊塋懖枛拜埿匥寨娣烧泞槷坌乜棉憣歏俨渚吝嶤桼檘妗噼圇幰泘揼墵汧喅墝潾亄偯梑峛崟俩拯案捌撲匯孡堷厙侂忶峓今愫悁卼峲彙哼啸夀擿叴沏儇极刉湢塟政刟宖伏孷媨槆烅叺".toCharArray();
int var10003 = var10001.length;
char[] var10002 = var10001;
int var1 = var10003;
int var0 = 0;

while(true) {
char[] var4 = var10002;
int var2 = var1;
var10001 = var4;
var10003 = var2;
var10002 = var10001;
var1 = var10003;
if (var10003 <= var0) {
String var5 = (new String(var10002)).intern();
boolean var3 = true;
ColonialObfuscator_汘亼填攦惆楑戒哀垡曏墧忲橈嚸必嚨濶卌侅彎暈勧廜捹庁敋墊嚌憟戾仵术囆嘍侉咒卽嗆浪敕塾 = var5.toCharArray();
return;
}

char var10005 = var10002[var0];
byte var10006;
switch (var0 % 7) {
case 0 -> var10006 = 62;
case 1 -> var10006 = 116;
case 2 -> var10006 = 118;
case 3 -> var10006 = 47;
case 4 -> var10006 = 102;
case 5 -> var10006 = 40;
default -> var10006 = 51;
}

var10002[var0] = (char)(var10005 ^ var10006);
var0 += 27280;
var0 -= 27279;
}
}
}

что с килкой делать ? 624 строка в килке return; и в нем ошибка без него все в ошибках Посмотреть вложение 282285
Блять написано no intelij ready что ты хернёй страдаешь
 
Начинающий
Статус
Оффлайн
Регистрация
15 Мар 2021
Сообщения
32
Реакции[?]
0
Поинты[?]
0
Блять написано no intelij ready что ты хернёй страдаешь
брух ты хуйнёй страдаешь выкидывая клиент который я писал ) мы уже поставили обфу лучше калониала и вам не как в нёё не посмотреть
 
Начинающий
Статус
Оффлайн
Регистрация
22 Авг 2022
Сообщения
332
Реакции[?]
3
Поинты[?]
3K
Начинающий
Статус
Оффлайн
Регистрация
29 Июн 2023
Сообщения
191
Реакции[?]
3
Поинты[?]
7K
брух ты хуйнёй страдаешь выкидывая клиент который я писал ) мы уже поставили обфу лучше калониала и вам не как в нёё не посмотреть
Proguard? Твой говна код снимаеться за минут 5
Proguard? Твой говна код снимаеться за минут 5
А ума написать свой у тебя явно не хватит так что не выёбываейся пока не слили intelij ready сурс kainer
 
Начинающий
Статус
Оффлайн
Регистрация
25 Фев 2024
Сообщения
475
Реакции[?]
0
Поинты[?]
0
брух ты хуйнёй страдаешь выкидывая клиент который я писал ) мы уже поставили обфу лучше калониала и вам не как в нёё не посмотреть
который ты писал? там же все югейм
 
Сверху Снизу