Исходник AutoBuy HW I exp 3.1 / intelIJ ready

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

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

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

Спасибо!

вообщем тип сливал какой то кал который весил 600 мб
переписал на экспу основной код просто плюсанете его
к базовому автобаю экспы типа покупки определенных
предметов и впринципе все слил в виде единого кода :coolface:

Если кому то надо смогу переписать под фт это чудо и добавить плюшки к
самому авто баю и слить только не обижайте меня пожалуйста:sweat::sweat:

Код:
package im.expensive.autobuy.manager;

import lombok.Getter;
import im.expensive.autobuy.AutoBuy;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
import net.minecraft.loot.functions.FillPlayerHead;
import net.minecraft.util.registry.Registry;

import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class AutoBuyManager {
    @Getter
    private static final List<AutoBuyItem> items = new ArrayList<>();

    @Getter
    private static final List<CustomAutoBuyItem> customAutoBuyItemList = new ArrayList<>();

    public static final CustomAutoBuyItem eternityPickaxe = new CustomAutoBuyItem(Items.NETHERITE_PICKAXE, 0);
    public static final CustomAutoBuyItem stingerPickaxe = new CustomAutoBuyItem(Items.NETHERITE_PICKAXE, 0);
    public static final CustomAutoBuyItem goldenPickaxe = new CustomAutoBuyItem(Items.GOLDEN_PICKAXE, 0);

    public static final CustomAutoBuyItem cerberusSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem fleshSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem damageSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem speedSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem eternitySphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem stingerSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem mythicalSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);

    public static final CustomAutoBuyItem cerberusTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem fleshTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem damageTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem speedTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem infinityTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem eternityTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem stingerTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem mythicalTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);

    public static final CustomAutoBuyItem goldenSpawner = new CustomAutoBuyItem(Items.SPAWNER, 0);

    public static final CustomAutoBuyItem infinityHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem infinityChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem infinityLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem infinityBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);

    public static final CustomAutoBuyItem eternityHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem eternityChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem eternityLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem eternityBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);
    public static final CustomAutoBuyItem eternitySword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);

    public static final CustomAutoBuyItem stingerHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem stingerChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem stingerLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem stingerBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);
    public static final CustomAutoBuyItem stingerSword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);

    public static final CustomAutoBuyItem explosiveTrap = new CustomAutoBuyItem(Items.PRISMARINE_SHARD, 0);
    public static final CustomAutoBuyItem stan = new CustomAutoBuyItem(Items.NETHER_STAR, 0);
    public static final CustomAutoBuyItem explosiveSubstance = new CustomAutoBuyItem(Items.CLAY, 0);
    public static final CustomAutoBuyItem universalKey = new CustomAutoBuyItem(Items.TRIPWIRE_HOOK, 0);
    public static final CustomAutoBuyItem stealer = new CustomAutoBuyItem(Items.TNT, 0);
    public static final CustomAutoBuyItem expBottle100lvl = new CustomAutoBuyItem(Items.EXPERIENCE_BOTTLE, 0);
    public static final CustomAutoBuyItem farmerSword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);
    public static final CustomAutoBuyItem mysteriousSummonEgg = new CustomAutoBuyItem(Items.BLAZE_SPAWN_EGG, 0);
    public static final CustomAutoBuyItem winnerPotion = new CustomAutoBuyItem(Items.POTION, 0);
    public static final CustomAutoBuyItem combatFragment = new CustomAutoBuyItem(Items.PRISMARINE_CRYSTALS, 0);
    public static final CustomAutoBuyItem c4 = new CustomAutoBuyItem(Items.TNT, 0);
    public static final CustomAutoBuyItem justicePotion = new CustomAutoBuyItem(Items.POTION, 0);

    public static void addItem(AutoBuyItem autoBuyItem) {
        items.add(autoBuyItem);
    }

    public static void removeItem(AutoBuyItem autoBuyItem) {
        items.remove(autoBuyItem);
    }

    public static void init() {
        goldenPickaxe.name = "Золотая кирка джейка";
        goldenPickaxe.enchantments = of("spawner-getter-enchant:1");

        //infinity

        infinityHelmet.name = "Шлем infinity";
        infinityHelmet.enchantments = of("impenetrable-enchant-custom:1", "aqua_affinity:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "respiration:3", "unbreaking:5");
        infinityHelmet.strictCheck = true;

        infinityChestplate.name = "Нагрудник infinity";
        infinityChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "unbreaking:5");
        infinityChestplate.strictCheck = true;

        infinityLeggings.name = "Штаны infinity";
        infinityLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "unbreaking:5");
        infinityLeggings.strictCheck = true;

        infinityBoots.name = "Ботинки infinity";
        infinityBoots.enchantments = of("blast_protection:5", "depth_strider:3", "feather_falling:4", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "soul_speed:3", "unbreaking:5");
        infinityBoots.strictCheck = true;

        infinityTalisman.name = "Талисман infinity";
        infinityTalisman.effect = of("hms-damage:2", "hms-armor:1", "hms-speed:2", "hms-health:2");

        //eternity

        eternityPickaxe.name = "Кирка eternity";
        eternityPickaxe.enchantments = of("drill-enchant-custom:2", "exp-enchant-custom:3", "foundry-enchant-custom:1", "internal-enchant-custom:1", "magnet-enchant-custom:1", "efficiency:10", "fortune:5", "mending:1", "unbreaking:5");

        eternityHelmet.name = "Шлем eternity";
        eternityHelmet.enchantments = of("impenetrable-enchant-custom:1", "aqua_affinity:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "respiration:3", "thorns:3", "unbreaking:5");
        eternityHelmet.strictCheck = true;

        eternityChestplate.name = "Нагрудник eternity";
        eternityChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "thorns:3", "unbreaking:5");
        eternityChestplate.strictCheck = true;

        eternityLeggings.name = "Штаны eternity";
        eternityLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "thorns:3", "unbreaking:5");
        eternityLeggings.strictCheck = true;

        eternityBoots.name = "Ботинки eternity";
        eternityBoots.enchantments = of("blast_protection:5", "depth_strider:3", "feather_falling:4", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "soul_speed:3", "thorns:3", "unbreaking:5");
        eternityBoots.strictCheck = true;

        eternitySword.name = "Меч eternity";
        eternitySword.enchantments = of("critical-enchant-custom:2", "destroyer-enchant-custom:2", "rich-enchant-custom:1", "bane_of_arthropods:7", "fire_aspect:2", "looting:5", "mending:1", "sharpness:7", "smite:7", "sweeping:3", "unbreaking:5");

        eternityTalisman.name = "Талисман eternity";
        eternityTalisman.attributes = of("attribute.name.generic.attack_damage2.0", "attribute.name.generic.armor2.0", "attribute.name.generic.movement_speed0.2");

        //stinger

        stingerPickaxe.name = "Кирка stinger";
        stingerPickaxe.enchantments = of("drill-enchant-custom:1", "exp-enchant-custom:3", "foundry-enchant-custom:1", "internal-enchant-custom:1", "efficiency:8", "fortune:4", "mending:1", "unbreaking:4");

        stingerHelmet.name = "Шлем stinger";
        stingerHelmet.enchantments = of("aqua_affinity:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "respiration:3", "thorns:3", "unbreaking:4");
        stingerHelmet.strictCheck = true;

        stingerChestplate.name = "Нагрудник stinger";
        stingerChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "thorns:3", "unbreaking:4");
        stingerChestplate.strictCheck = true;

        stingerLeggings.name = "Штаны stinger";
        stingerLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "thorns:3", "unbreaking:4");
        stingerLeggings.strictCheck = true;

        stingerBoots.name = "Ботинки stinger";
        stingerBoots.enchantments = of("blast_protection:4", "depth_strider:3", "feather_falling:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "soul_speed:3", "thorns:3", "unbreaking:4");
        stingerBoots.strictCheck = true;

        stingerSword.name = "Меч stinger";
        stingerSword.enchantments = of("critical-enchant-custom:2", "rich-enchant-custom:1", "bane_of_arthropods:7", "fire_aspect:2", "looting:5", "mending:1", "sharpness:6", "smite:7", "sweeping:3", "unbreaking:4");

        stingerTalisman.name = "Талисман stinger";
        eternityTalisman.attributes = of("attribute.name.generic.attack_damage2.0", "attribute.name.generic.armor2.0", "attribute.name.generic.movement_speed0.1");

        //sphere / talisman

        cerberusSphere.name = "Сфера Цербера";
        cerberusSphere.effect = of("hms-damage:4");

        cerberusTalisman.name = "Талисман Цербера";
        cerberusTalisman.effect = of("hms-damage:4");

        fleshSphere.name = "Сфера Флеша";
        fleshSphere.effect = of("hms-speed:3", "hms-health:2");

        fleshTalisman.name = "Талисман Флеша";
        fleshTalisman.effect = of("hms-speed:3", "hms-health:2");

        damageSphere.name = "Сфера на Урон 3";
        damageSphere.effect = of("hms-damage:3");

        damageTalisman.name = "Талисман на Урон 3";
        damageTalisman.effect = of("hms-damage:3");

        speedSphere.name = "Сфера на Скорость 3";
        speedSphere.effect = of("hms-speed:3");

        speedTalisman.name = "Талисман на Скорость 3";
        speedTalisman.effect = of("hms-speed:3");

        eternitySphere.name = "Сфера eternity";
        eternitySphere.effect = of("hms-speed:2", "hms-armor:2", "hms-damage:2");

        stingerSphere.name = "Сфера stinger";
        stingerSphere.effect = of("hms-speed:1", "hms-armor:2", "hms-damage:2");

        mythicalSphere.name = "Мифическая Сфера";
        mythicalSphere.effect = of("hms-damage:3", "hms-armor:2");

        mythicalTalisman.name = "Мифический Талисман";
        mythicalTalisman.effect = of("hms-damage:3", "hms-armor:2");

        // other

        explosiveTrap.name = "Взрывная трапка";
        explosiveTrap.line = of("при взрыве наносит урон в радиусе 3 блоков");

        stan.name = "Стан";
        stan.line = of("игроки в нем не могут использовать");

        goldenSpawner.name = "Золотой спавнер";
        goldenSpawner.line = of("5 блоков от спавнера игроку");

        explosiveSubstance.name = "Взрывчатое вещество";
        explosiveSubstance.line = of("используется только для крафта");

        universalKey.name = "Универсальный ключ";
        universalKey.line = of("Используйте данный ключ для открытия");

        stealer.name = "Стиллер";
        stealer.line = of("после взрыва выпадает");

        expBottle100lvl.name = "Бутылёк с 100ур. опыта";
        expBottle100lvl.line = of("В пузырьке 30971 опыта");

        farmerSword.name = "Выгодный фарм";
        farmerSword.enchantments = of("mob-farmer-enchant:");

        mysteriousSummonEgg.name = "Загадочное яйцо призыва";
        mysteriousSummonEgg.line = of("Мститель", "Крипер", "Зомби", "Блейз", "Ведьма");

        winnerPotion.name = "Зелье победителя";
        winnerPotion.line = of("Сила III", "Скорость III", "Невидимость", "Спешка II", "Регенерация II", "Сопротивление II", "Исцеление II");

        combatFragment.name = "Боевой фрагмент";
        combatFragment.enchantments = of("luck_of_the_sea:1");

        c4.name = "C4";
        c4.line = of("разрушает блок незеритового привата");

        justicePotion.name = "Справедливость";
        justicePotion.line = of("отравление, иссушение и слабость");

        CustomAutoBuyItem[] customAutoBuyItems = {
                goldenSpawner, goldenPickaxe,
                infinityTalisman, infinityHelmet, infinityChestplate, infinityLeggings, infinityBoots,
                eternityTalisman, eternitySphere, eternityHelmet, eternityChestplate, eternityLeggings, eternityBoots, eternitySword, eternityPickaxe,
                stingerTalisman, stingerSphere, stingerHelmet, stingerChestplate, stingerLeggings, stingerBoots, stingerSword, stingerPickaxe,
                mythicalTalisman, mythicalSphere, fleshTalisman, fleshSphere, cerberusTalisman, cerberusSphere, speedTalisman, speedSphere, damageTalisman, damageSphere,
                explosiveTrap, stan, explosiveSubstance, universalKey, stealer, expBottle100lvl, farmerSword, mysteriousSummonEgg, winnerPotion, combatFragment, c4, justicePotion
        };

        customAutoBuyItemList.addAll(Arrays.asList(customAutoBuyItems));
    }

    private static List<String> of(String... strings) {
        return List.of(strings);
    }

    private static CustomAutoBuyItem getCustomAutoBuyItemByName(String name) {
        return customAutoBuyItemList.stream().filter(customAutoBuyItem -> customAutoBuyItem.name.equalsIgnoreCase(name)).toList().get(0);
    }

    public static void load() {
        File file = new File("\\eclipse\\autobuy.txt");

        if (!file.exists()) {
            return;
        }

        try {
            BufferedReader br = new BufferedReader(new FileReader(file));
            String line;
            boolean first = true;
            while ((line = br.readLine()) != null) {
                if (first) {
                    AutoBuy.autoPayCom = line;
                    first = false;
                    continue;
                }
                int id = Integer.parseInt(line.split(":")[0]);
                if (id == 0) {
                    Item item = null;
                    for (Item i : Registry.ITEM) {
                        if (i.getTranslationKey().equalsIgnoreCase(line.split(":")[1])) {
                            item = i;
                            break;
                        }
                    }
                    items.add(new DefaultAutoBuyItem(item, Integer.parseInt(line.split(":")[2])));
                }
                if (id == 1) {
                    CustomAutoBuyItem customAutoBuyItem = getCustomAutoBuyItemByName(line.split(":")[1]);
                    CustomAutoBuyItem add = new CustomAutoBuyItem(customAutoBuyItem.item, Integer.parseInt(line.split(":")[2]));
                    add.line = customAutoBuyItem.line;
                    add.enchantments = customAutoBuyItem.enchantments;
                    add.effect = customAutoBuyItem.effect;
                    add.attributes = customAutoBuyItem.attributes;
                    add.name = customAutoBuyItem.name;
                    add.strictCheck = customAutoBuyItem.strictCheck;
                    items.add(add);
                }
            }
            br.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    public static void save() {
        File file = new File("\\expensive\\autobuy.txt");

        if (file.exists()) {
            file.delete();
        }

        try {
            file.createNewFile();
            BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file));
            bufferedWriter.write(AutoBuy.autoPayCom + "\n");
            for (AutoBuyItem item : items) {
                if (item instanceof CustomAutoBuyItem) {
                    bufferedWriter.write("1:" + ((CustomAutoBuyItem) item).name + ":" + item.price + "\n");
                }
                if (item instanceof DefaultAutoBuyItem) {
                    bufferedWriter.write("0:" + item.item.getTranslationKey() + ":" + item.price + "\n");
                }
            }
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
\

далее прикрепляете в свойе конструкции этот код:
void bby reference {
}
buy cooldown = 1.000121s reference decode =
restart to 3.00021111928s + buy choose treest();

поздравляю ваш шедевро автобай готов
 
Последнее редактирование:
Начинающий
Статус
Оффлайн
Регистрация
10 Июл 2024
Сообщения
117
Реакции[?]
0
Поинты[?]
0
вообщем тип сливал какой то кал который весил 600 мб
переписал на экспу основной код просто плюсанете его
к базовому автобаю экспы типа покупки определенных
предметов и впринципе все слил в виде единого кода :coolface:

Если кому то надо смогу переписать под фт это чудо и добавить плюшки к
самому авто баю и слить только не обижайте меня пожалуйста:sweat::sweat:

Код:
package im.expensive.autobuy.manager;

import lombok.Getter;
import im.expensive.autobuy.AutoBuy;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
import net.minecraft.loot.functions.FillPlayerHead;
import net.minecraft.util.registry.Registry;

import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class AutoBuyManager {
    @Getter
    private static final List<AutoBuyItem> items = new ArrayList<>();

    @Getter
    private static final List<CustomAutoBuyItem> customAutoBuyItemList = new ArrayList<>();

    public static final CustomAutoBuyItem eternityPickaxe = new CustomAutoBuyItem(Items.NETHERITE_PICKAXE, 0);
    public static final CustomAutoBuyItem stingerPickaxe = new CustomAutoBuyItem(Items.NETHERITE_PICKAXE, 0);
    public static final CustomAutoBuyItem goldenPickaxe = new CustomAutoBuyItem(Items.GOLDEN_PICKAXE, 0);

    public static final CustomAutoBuyItem cerberusSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem fleshSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem damageSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem speedSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem eternitySphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem stingerSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem mythicalSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);

    public static final CustomAutoBuyItem cerberusTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem fleshTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem damageTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem speedTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem infinityTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem eternityTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem stingerTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem mythicalTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);

    public static final CustomAutoBuyItem goldenSpawner = new CustomAutoBuyItem(Items.SPAWNER, 0);

    public static final CustomAutoBuyItem infinityHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem infinityChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem infinityLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem infinityBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);

    public static final CustomAutoBuyItem eternityHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem eternityChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem eternityLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem eternityBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);
    public static final CustomAutoBuyItem eternitySword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);

    public static final CustomAutoBuyItem stingerHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem stingerChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem stingerLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem stingerBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);
    public static final CustomAutoBuyItem stingerSword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);

    public static final CustomAutoBuyItem explosiveTrap = new CustomAutoBuyItem(Items.PRISMARINE_SHARD, 0);
    public static final CustomAutoBuyItem stan = new CustomAutoBuyItem(Items.NETHER_STAR, 0);
    public static final CustomAutoBuyItem explosiveSubstance = new CustomAutoBuyItem(Items.CLAY, 0);
    public static final CustomAutoBuyItem universalKey = new CustomAutoBuyItem(Items.TRIPWIRE_HOOK, 0);
    public static final CustomAutoBuyItem stealer = new CustomAutoBuyItem(Items.TNT, 0);
    public static final CustomAutoBuyItem expBottle100lvl = new CustomAutoBuyItem(Items.EXPERIENCE_BOTTLE, 0);
    public static final CustomAutoBuyItem farmerSword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);
    public static final CustomAutoBuyItem mysteriousSummonEgg = new CustomAutoBuyItem(Items.BLAZE_SPAWN_EGG, 0);
    public static final CustomAutoBuyItem winnerPotion = new CustomAutoBuyItem(Items.POTION, 0);
    public static final CustomAutoBuyItem combatFragment = new CustomAutoBuyItem(Items.PRISMARINE_CRYSTALS, 0);
    public static final CustomAutoBuyItem c4 = new CustomAutoBuyItem(Items.TNT, 0);
    public static final CustomAutoBuyItem justicePotion = new CustomAutoBuyItem(Items.POTION, 0);

    public static void addItem(AutoBuyItem autoBuyItem) {
        items.add(autoBuyItem);
    }

    public static void removeItem(AutoBuyItem autoBuyItem) {
        items.remove(autoBuyItem);
    }

    public static void init() {
        goldenPickaxe.name = "Золотая кирка джейка";
        goldenPickaxe.enchantments = of("spawner-getter-enchant:1");

        //infinity

        infinityHelmet.name = "Шлем infinity";
        infinityHelmet.enchantments = of("impenetrable-enchant-custom:1", "aqua_affinity:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "respiration:3", "unbreaking:5");
        infinityHelmet.strictCheck = true;

        infinityChestplate.name = "Нагрудник infinity";
        infinityChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "unbreaking:5");
        infinityChestplate.strictCheck = true;

        infinityLeggings.name = "Штаны infinity";
        infinityLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "unbreaking:5");
        infinityLeggings.strictCheck = true;

        infinityBoots.name = "Ботинки infinity";
        infinityBoots.enchantments = of("blast_protection:5", "depth_strider:3", "feather_falling:4", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "soul_speed:3", "unbreaking:5");
        infinityBoots.strictCheck = true;

        infinityTalisman.name = "Талисман infinity";
        infinityTalisman.effect = of("hms-damage:2", "hms-armor:1", "hms-speed:2", "hms-health:2");

        //eternity

        eternityPickaxe.name = "Кирка eternity";
        eternityPickaxe.enchantments = of("drill-enchant-custom:2", "exp-enchant-custom:3", "foundry-enchant-custom:1", "internal-enchant-custom:1", "magnet-enchant-custom:1", "efficiency:10", "fortune:5", "mending:1", "unbreaking:5");

        eternityHelmet.name = "Шлем eternity";
        eternityHelmet.enchantments = of("impenetrable-enchant-custom:1", "aqua_affinity:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "respiration:3", "thorns:3", "unbreaking:5");
        eternityHelmet.strictCheck = true;

        eternityChestplate.name = "Нагрудник eternity";
        eternityChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "thorns:3", "unbreaking:5");
        eternityChestplate.strictCheck = true;

        eternityLeggings.name = "Штаны eternity";
        eternityLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "thorns:3", "unbreaking:5");
        eternityLeggings.strictCheck = true;

        eternityBoots.name = "Ботинки eternity";
        eternityBoots.enchantments = of("blast_protection:5", "depth_strider:3", "feather_falling:4", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "soul_speed:3", "thorns:3", "unbreaking:5");
        eternityBoots.strictCheck = true;

        eternitySword.name = "Меч eternity";
        eternitySword.enchantments = of("critical-enchant-custom:2", "destroyer-enchant-custom:2", "rich-enchant-custom:1", "bane_of_arthropods:7", "fire_aspect:2", "looting:5", "mending:1", "sharpness:7", "smite:7", "sweeping:3", "unbreaking:5");

        eternityTalisman.name = "Талисман eternity";
        eternityTalisman.attributes = of("attribute.name.generic.attack_damage2.0", "attribute.name.generic.armor2.0", "attribute.name.generic.movement_speed0.2");

        //stinger

        stingerPickaxe.name = "Кирка stinger";
        stingerPickaxe.enchantments = of("drill-enchant-custom:1", "exp-enchant-custom:3", "foundry-enchant-custom:1", "internal-enchant-custom:1", "efficiency:8", "fortune:4", "mending:1", "unbreaking:4");

        stingerHelmet.name = "Шлем stinger";
        stingerHelmet.enchantments = of("aqua_affinity:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "respiration:3", "thorns:3", "unbreaking:4");
        stingerHelmet.strictCheck = true;

        stingerChestplate.name = "Нагрудник stinger";
        stingerChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "thorns:3", "unbreaking:4");
        stingerChestplate.strictCheck = true;

        stingerLeggings.name = "Штаны stinger";
        stingerLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "thorns:3", "unbreaking:4");
        stingerLeggings.strictCheck = true;

        stingerBoots.name = "Ботинки stinger";
        stingerBoots.enchantments = of("blast_protection:4", "depth_strider:3", "feather_falling:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "soul_speed:3", "thorns:3", "unbreaking:4");
        stingerBoots.strictCheck = true;

        stingerSword.name = "Меч stinger";
        stingerSword.enchantments = of("critical-enchant-custom:2", "rich-enchant-custom:1", "bane_of_arthropods:7", "fire_aspect:2", "looting:5", "mending:1", "sharpness:6", "smite:7", "sweeping:3", "unbreaking:4");

        stingerTalisman.name = "Талисман stinger";
        eternityTalisman.attributes = of("attribute.name.generic.attack_damage2.0", "attribute.name.generic.armor2.0", "attribute.name.generic.movement_speed0.1");

        //sphere / talisman

        cerberusSphere.name = "Сфера Цербера";
        cerberusSphere.effect = of("hms-damage:4");

        cerberusTalisman.name = "Талисман Цербера";
        cerberusTalisman.effect = of("hms-damage:4");

        fleshSphere.name = "Сфера Флеша";
        fleshSphere.effect = of("hms-speed:3", "hms-health:2");

        fleshTalisman.name = "Талисман Флеша";
        fleshTalisman.effect = of("hms-speed:3", "hms-health:2");

        damageSphere.name = "Сфера на Урон 3";
        damageSphere.effect = of("hms-damage:3");

        damageTalisman.name = "Талисман на Урон 3";
        damageTalisman.effect = of("hms-damage:3");

        speedSphere.name = "Сфера на Скорость 3";
        speedSphere.effect = of("hms-speed:3");

        speedTalisman.name = "Талисман на Скорость 3";
        speedTalisman.effect = of("hms-speed:3");

        eternitySphere.name = "Сфера eternity";
        eternitySphere.effect = of("hms-speed:2", "hms-armor:2", "hms-damage:2");

        stingerSphere.name = "Сфера stinger";
        stingerSphere.effect = of("hms-speed:1", "hms-armor:2", "hms-damage:2");

        mythicalSphere.name = "Мифическая Сфера";
        mythicalSphere.effect = of("hms-damage:3", "hms-armor:2");

        mythicalTalisman.name = "Мифический Талисман";
        mythicalTalisman.effect = of("hms-damage:3", "hms-armor:2");

        // other

        explosiveTrap.name = "Взрывная трапка";
        explosiveTrap.line = of("при взрыве наносит урон в радиусе 3 блоков");

        stan.name = "Стан";
        stan.line = of("игроки в нем не могут использовать");

        goldenSpawner.name = "Золотой спавнер";
        goldenSpawner.line = of("5 блоков от спавнера игроку");

        explosiveSubstance.name = "Взрывчатое вещество";
        explosiveSubstance.line = of("используется только для крафта");

        universalKey.name = "Универсальный ключ";
        universalKey.line = of("Используйте данный ключ для открытия");

        stealer.name = "Стиллер";
        stealer.line = of("после взрыва выпадает");

        expBottle100lvl.name = "Бутылёк с 100ур. опыта";
        expBottle100lvl.line = of("В пузырьке 30971 опыта");

        farmerSword.name = "Выгодный фарм";
        farmerSword.enchantments = of("mob-farmer-enchant:");

        mysteriousSummonEgg.name = "Загадочное яйцо призыва";
        mysteriousSummonEgg.line = of("Мститель", "Крипер", "Зомби", "Блейз", "Ведьма");

        winnerPotion.name = "Зелье победителя";
        winnerPotion.line = of("Сила III", "Скорость III", "Невидимость", "Спешка II", "Регенерация II", "Сопротивление II", "Исцеление II");

        combatFragment.name = "Боевой фрагмент";
        combatFragment.enchantments = of("luck_of_the_sea:1");

        c4.name = "C4";
        c4.line = of("разрушает блок незеритового привата");

        justicePotion.name = "Справедливость";
        justicePotion.line = of("отравление, иссушение и слабость");

        CustomAutoBuyItem[] customAutoBuyItems = {
                goldenSpawner, goldenPickaxe,
                infinityTalisman, infinityHelmet, infinityChestplate, infinityLeggings, infinityBoots,
                eternityTalisman, eternitySphere, eternityHelmet, eternityChestplate, eternityLeggings, eternityBoots, eternitySword, eternityPickaxe,
                stingerTalisman, stingerSphere, stingerHelmet, stingerChestplate, stingerLeggings, stingerBoots, stingerSword, stingerPickaxe,
                mythicalTalisman, mythicalSphere, fleshTalisman, fleshSphere, cerberusTalisman, cerberusSphere, speedTalisman, speedSphere, damageTalisman, damageSphere,
                explosiveTrap, stan, explosiveSubstance, universalKey, stealer, expBottle100lvl, farmerSword, mysteriousSummonEgg, winnerPotion, combatFragment, c4, justicePotion
        };

        customAutoBuyItemList.addAll(Arrays.asList(customAutoBuyItems));
    }

    private static List<String> of(String... strings) {
        return List.of(strings);
    }

    private static CustomAutoBuyItem getCustomAutoBuyItemByName(String name) {
        return customAutoBuyItemList.stream().filter(customAutoBuyItem -> customAutoBuyItem.name.equalsIgnoreCase(name)).toList().get(0);
    }

    public static void load() {
        File file = new File("\\eclipse\\autobuy.txt");

        if (!file.exists()) {
            return;
        }

        try {
            BufferedReader br = new BufferedReader(new FileReader(file));
            String line;
            boolean first = true;
            while ((line = br.readLine()) != null) {
                if (first) {
                    AutoBuy.autoPayCom = line;
                    first = false;
                    continue;
                }
                int id = Integer.parseInt(line.split(":")[0]);
                if (id == 0) {
                    Item item = null;
                    for (Item i : Registry.ITEM) {
                        if (i.getTranslationKey().equalsIgnoreCase(line.split(":")[1])) {
                            item = i;
                            break;
                        }
                    }
                    items.add(new DefaultAutoBuyItem(item, Integer.parseInt(line.split(":")[2])));
                }
                if (id == 1) {
                    CustomAutoBuyItem customAutoBuyItem = getCustomAutoBuyItemByName(line.split(":")[1]);
                    CustomAutoBuyItem add = new CustomAutoBuyItem(customAutoBuyItem.item, Integer.parseInt(line.split(":")[2]));
                    add.line = customAutoBuyItem.line;
                    add.enchantments = customAutoBuyItem.enchantments;
                    add.effect = customAutoBuyItem.effect;
                    add.attributes = customAutoBuyItem.attributes;
                    add.name = customAutoBuyItem.name;
                    add.strictCheck = customAutoBuyItem.strictCheck;
                    items.add(add);
                }
            }
            br.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    public static void save() {
        File file = new File("\\expensive\\autobuy.txt");

        if (file.exists()) {
            file.delete();
        }

        try {
            file.createNewFile();
            BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file));
            bufferedWriter.write(AutoBuy.autoPayCom + "\n");
            for (AutoBuyItem item : items) {
                if (item instanceof CustomAutoBuyItem) {
                    bufferedWriter.write("1:" + ((CustomAutoBuyItem) item).name + ":" + item.price + "\n");
                }
                if (item instanceof DefaultAutoBuyItem) {
                    bufferedWriter.write("0:" + item.item.getTranslationKey() + ":" + item.price + "\n");
                }
            }
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
\

далее прикрепляете в свойе конструкции этот код:
void bby reference {
}
buy cooldown = 1.000121s reference decode =
restart to 3.00021111928s + buy choose treest();

поздравляю ваш шедевро автобай готов
ты код даешь и пишешь риди? xddd
1729660479583.png
 
Начинающий
Статус
Оффлайн
Регистрация
22 Сен 2024
Сообщения
51
Реакции[?]
0
Поинты[?]
0
ага,пишешь риди когда сливаешь код
ты вааще с катушки слетел чекни ваще югейм
типы сливают не риди интел идею под эклипс
блять ливни с форма и не заходи сюда больше
пжпжпжпж
 
Read Only
Статус
Оффлайн
Регистрация
26 Авг 2024
Сообщения
653
Реакции[?]
1
Поинты[?]
2K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
ты вааще с катушки слетел чекни ваще югейм
типы сливают не риди интел идею под эклипс
блять ливни с форма и не заходи сюда больше
пжпжпжпж
экслипс это аб у них так называется гений
 
Начинающий
Статус
Оффлайн
Регистрация
10 Июл 2024
Сообщения
117
Реакции[?]
0
Поинты[?]
0
ты вааще с катушки слетел чекни ваще югейм
типы сливают не риди интел идею под эклипс
блять ливни с форма и не заходи сюда больше
пжпжпжпж
а теперь напиши по русски
 
Начинающий
Статус
Оффлайн
Регистрация
5 Окт 2024
Сообщения
3
Реакции[?]
0
Поинты[?]
0
пожайлуста обьясни каким файлом должен являться этот код и что делать если нет пакета autobuy. AutoBuy есть такой же только в ui
 
Начинающий
Статус
Онлайн
Регистрация
26 Янв 2023
Сообщения
215
Реакции[?]
1
Поинты[?]
1K
вообщем тип сливал какой то кал который весил 600 мб
переписал на экспу основной код просто плюсанете его
к базовому автобаю экспы типа покупки определенных
предметов и впринципе все слил в виде единого кода :coolface:

Если кому то надо смогу переписать под фт это чудо и добавить плюшки к
самому авто баю и слить только не обижайте меня пожалуйста:sweat::sweat:

Код:
package im.expensive.autobuy.manager;

import lombok.Getter;
import im.expensive.autobuy.AutoBuy;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
import net.minecraft.loot.functions.FillPlayerHead;
import net.minecraft.util.registry.Registry;

import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class AutoBuyManager {
    @Getter
    private static final List<AutoBuyItem> items = new ArrayList<>();

    @Getter
    private static final List<CustomAutoBuyItem> customAutoBuyItemList = new ArrayList<>();

    public static final CustomAutoBuyItem eternityPickaxe = new CustomAutoBuyItem(Items.NETHERITE_PICKAXE, 0);
    public static final CustomAutoBuyItem stingerPickaxe = new CustomAutoBuyItem(Items.NETHERITE_PICKAXE, 0);
    public static final CustomAutoBuyItem goldenPickaxe = new CustomAutoBuyItem(Items.GOLDEN_PICKAXE, 0);

    public static final CustomAutoBuyItem cerberusSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem fleshSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem damageSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem speedSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem eternitySphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem stingerSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);
    public static final CustomAutoBuyItem mythicalSphere = new CustomAutoBuyItem(Items.PLAYER_HEAD, 0);

    public static final CustomAutoBuyItem cerberusTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem fleshTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem damageTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem speedTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem infinityTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem eternityTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem stingerTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);
    public static final CustomAutoBuyItem mythicalTalisman = new CustomAutoBuyItem(Items.TOTEM_OF_UNDYING, 0);

    public static final CustomAutoBuyItem goldenSpawner = new CustomAutoBuyItem(Items.SPAWNER, 0);

    public static final CustomAutoBuyItem infinityHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem infinityChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem infinityLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem infinityBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);

    public static final CustomAutoBuyItem eternityHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem eternityChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem eternityLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem eternityBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);
    public static final CustomAutoBuyItem eternitySword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);

    public static final CustomAutoBuyItem stingerHelmet = new CustomAutoBuyItem(Items.NETHERITE_HELMET, 0);
    public static final CustomAutoBuyItem stingerChestplate = new CustomAutoBuyItem(Items.NETHERITE_CHESTPLATE, 0);
    public static final CustomAutoBuyItem stingerLeggings = new CustomAutoBuyItem(Items.NETHERITE_LEGGINGS, 0);
    public static final CustomAutoBuyItem stingerBoots = new CustomAutoBuyItem(Items.NETHERITE_BOOTS, 0);
    public static final CustomAutoBuyItem stingerSword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);

    public static final CustomAutoBuyItem explosiveTrap = new CustomAutoBuyItem(Items.PRISMARINE_SHARD, 0);
    public static final CustomAutoBuyItem stan = new CustomAutoBuyItem(Items.NETHER_STAR, 0);
    public static final CustomAutoBuyItem explosiveSubstance = new CustomAutoBuyItem(Items.CLAY, 0);
    public static final CustomAutoBuyItem universalKey = new CustomAutoBuyItem(Items.TRIPWIRE_HOOK, 0);
    public static final CustomAutoBuyItem stealer = new CustomAutoBuyItem(Items.TNT, 0);
    public static final CustomAutoBuyItem expBottle100lvl = new CustomAutoBuyItem(Items.EXPERIENCE_BOTTLE, 0);
    public static final CustomAutoBuyItem farmerSword = new CustomAutoBuyItem(Items.NETHERITE_SWORD, 0);
    public static final CustomAutoBuyItem mysteriousSummonEgg = new CustomAutoBuyItem(Items.BLAZE_SPAWN_EGG, 0);
    public static final CustomAutoBuyItem winnerPotion = new CustomAutoBuyItem(Items.POTION, 0);
    public static final CustomAutoBuyItem combatFragment = new CustomAutoBuyItem(Items.PRISMARINE_CRYSTALS, 0);
    public static final CustomAutoBuyItem c4 = new CustomAutoBuyItem(Items.TNT, 0);
    public static final CustomAutoBuyItem justicePotion = new CustomAutoBuyItem(Items.POTION, 0);

    public static void addItem(AutoBuyItem autoBuyItem) {
        items.add(autoBuyItem);
    }

    public static void removeItem(AutoBuyItem autoBuyItem) {
        items.remove(autoBuyItem);
    }

    public static void init() {
        goldenPickaxe.name = "Золотая кирка джейка";
        goldenPickaxe.enchantments = of("spawner-getter-enchant:1");

        //infinity

        infinityHelmet.name = "Шлем infinity";
        infinityHelmet.enchantments = of("impenetrable-enchant-custom:1", "aqua_affinity:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "respiration:3", "unbreaking:5");
        infinityHelmet.strictCheck = true;

        infinityChestplate.name = "Нагрудник infinity";
        infinityChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "unbreaking:5");
        infinityChestplate.strictCheck = true;

        infinityLeggings.name = "Штаны infinity";
        infinityLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "unbreaking:5");
        infinityLeggings.strictCheck = true;

        infinityBoots.name = "Ботинки infinity";
        infinityBoots.enchantments = of("blast_protection:5", "depth_strider:3", "feather_falling:4", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "soul_speed:3", "unbreaking:5");
        infinityBoots.strictCheck = true;

        infinityTalisman.name = "Талисман infinity";
        infinityTalisman.effect = of("hms-damage:2", "hms-armor:1", "hms-speed:2", "hms-health:2");

        //eternity

        eternityPickaxe.name = "Кирка eternity";
        eternityPickaxe.enchantments = of("drill-enchant-custom:2", "exp-enchant-custom:3", "foundry-enchant-custom:1", "internal-enchant-custom:1", "magnet-enchant-custom:1", "efficiency:10", "fortune:5", "mending:1", "unbreaking:5");

        eternityHelmet.name = "Шлем eternity";
        eternityHelmet.enchantments = of("impenetrable-enchant-custom:1", "aqua_affinity:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "respiration:3", "thorns:3", "unbreaking:5");
        eternityHelmet.strictCheck = true;

        eternityChestplate.name = "Нагрудник eternity";
        eternityChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "thorns:3", "unbreaking:5");
        eternityChestplate.strictCheck = true;

        eternityLeggings.name = "Штаны eternity";
        eternityLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:5", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "thorns:3", "unbreaking:5");
        eternityLeggings.strictCheck = true;

        eternityBoots.name = "Ботинки eternity";
        eternityBoots.enchantments = of("blast_protection:5", "depth_strider:3", "feather_falling:4", "fire_protection:5", "mending:1", "projectile_protection:5", "protection:5", "soul_speed:3", "thorns:3", "unbreaking:5");
        eternityBoots.strictCheck = true;

        eternitySword.name = "Меч eternity";
        eternitySword.enchantments = of("critical-enchant-custom:2", "destroyer-enchant-custom:2", "rich-enchant-custom:1", "bane_of_arthropods:7", "fire_aspect:2", "looting:5", "mending:1", "sharpness:7", "smite:7", "sweeping:3", "unbreaking:5");

        eternityTalisman.name = "Талисман eternity";
        eternityTalisman.attributes = of("attribute.name.generic.attack_damage2.0", "attribute.name.generic.armor2.0", "attribute.name.generic.movement_speed0.2");

        //stinger

        stingerPickaxe.name = "Кирка stinger";
        stingerPickaxe.enchantments = of("drill-enchant-custom:1", "exp-enchant-custom:3", "foundry-enchant-custom:1", "internal-enchant-custom:1", "efficiency:8", "fortune:4", "mending:1", "unbreaking:4");

        stingerHelmet.name = "Шлем stinger";
        stingerHelmet.enchantments = of("aqua_affinity:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "respiration:3", "thorns:3", "unbreaking:4");
        stingerHelmet.strictCheck = true;

        stingerChestplate.name = "Нагрудник stinger";
        stingerChestplate.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "thorns:3", "unbreaking:4");
        stingerChestplate.strictCheck = true;

        stingerLeggings.name = "Штаны stinger";
        stingerLeggings.enchantments = of("impenetrable-enchant-custom:1", "blast_protection:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "thorns:3", "unbreaking:4");
        stingerLeggings.strictCheck = true;

        stingerBoots.name = "Ботинки stinger";
        stingerBoots.enchantments = of("blast_protection:4", "depth_strider:3", "feather_falling:4", "fire_protection:4", "mending:1", "projectile_protection:4", "protection:4", "soul_speed:3", "thorns:3", "unbreaking:4");
        stingerBoots.strictCheck = true;

        stingerSword.name = "Меч stinger";
        stingerSword.enchantments = of("critical-enchant-custom:2", "rich-enchant-custom:1", "bane_of_arthropods:7", "fire_aspect:2", "looting:5", "mending:1", "sharpness:6", "smite:7", "sweeping:3", "unbreaking:4");

        stingerTalisman.name = "Талисман stinger";
        eternityTalisman.attributes = of("attribute.name.generic.attack_damage2.0", "attribute.name.generic.armor2.0", "attribute.name.generic.movement_speed0.1");

        //sphere / talisman

        cerberusSphere.name = "Сфера Цербера";
        cerberusSphere.effect = of("hms-damage:4");

        cerberusTalisman.name = "Талисман Цербера";
        cerberusTalisman.effect = of("hms-damage:4");

        fleshSphere.name = "Сфера Флеша";
        fleshSphere.effect = of("hms-speed:3", "hms-health:2");

        fleshTalisman.name = "Талисман Флеша";
        fleshTalisman.effect = of("hms-speed:3", "hms-health:2");

        damageSphere.name = "Сфера на Урон 3";
        damageSphere.effect = of("hms-damage:3");

        damageTalisman.name = "Талисман на Урон 3";
        damageTalisman.effect = of("hms-damage:3");

        speedSphere.name = "Сфера на Скорость 3";
        speedSphere.effect = of("hms-speed:3");

        speedTalisman.name = "Талисман на Скорость 3";
        speedTalisman.effect = of("hms-speed:3");

        eternitySphere.name = "Сфера eternity";
        eternitySphere.effect = of("hms-speed:2", "hms-armor:2", "hms-damage:2");

        stingerSphere.name = "Сфера stinger";
        stingerSphere.effect = of("hms-speed:1", "hms-armor:2", "hms-damage:2");

        mythicalSphere.name = "Мифическая Сфера";
        mythicalSphere.effect = of("hms-damage:3", "hms-armor:2");

        mythicalTalisman.name = "Мифический Талисман";
        mythicalTalisman.effect = of("hms-damage:3", "hms-armor:2");

        // other

        explosiveTrap.name = "Взрывная трапка";
        explosiveTrap.line = of("при взрыве наносит урон в радиусе 3 блоков");

        stan.name = "Стан";
        stan.line = of("игроки в нем не могут использовать");

        goldenSpawner.name = "Золотой спавнер";
        goldenSpawner.line = of("5 блоков от спавнера игроку");

        explosiveSubstance.name = "Взрывчатое вещество";
        explosiveSubstance.line = of("используется только для крафта");

        universalKey.name = "Универсальный ключ";
        universalKey.line = of("Используйте данный ключ для открытия");

        stealer.name = "Стиллер";
        stealer.line = of("после взрыва выпадает");

        expBottle100lvl.name = "Бутылёк с 100ур. опыта";
        expBottle100lvl.line = of("В пузырьке 30971 опыта");

        farmerSword.name = "Выгодный фарм";
        farmerSword.enchantments = of("mob-farmer-enchant:");

        mysteriousSummonEgg.name = "Загадочное яйцо призыва";
        mysteriousSummonEgg.line = of("Мститель", "Крипер", "Зомби", "Блейз", "Ведьма");

        winnerPotion.name = "Зелье победителя";
        winnerPotion.line = of("Сила III", "Скорость III", "Невидимость", "Спешка II", "Регенерация II", "Сопротивление II", "Исцеление II");

        combatFragment.name = "Боевой фрагмент";
        combatFragment.enchantments = of("luck_of_the_sea:1");

        c4.name = "C4";
        c4.line = of("разрушает блок незеритового привата");

        justicePotion.name = "Справедливость";
        justicePotion.line = of("отравление, иссушение и слабость");

        CustomAutoBuyItem[] customAutoBuyItems = {
                goldenSpawner, goldenPickaxe,
                infinityTalisman, infinityHelmet, infinityChestplate, infinityLeggings, infinityBoots,
                eternityTalisman, eternitySphere, eternityHelmet, eternityChestplate, eternityLeggings, eternityBoots, eternitySword, eternityPickaxe,
                stingerTalisman, stingerSphere, stingerHelmet, stingerChestplate, stingerLeggings, stingerBoots, stingerSword, stingerPickaxe,
                mythicalTalisman, mythicalSphere, fleshTalisman, fleshSphere, cerberusTalisman, cerberusSphere, speedTalisman, speedSphere, damageTalisman, damageSphere,
                explosiveTrap, stan, explosiveSubstance, universalKey, stealer, expBottle100lvl, farmerSword, mysteriousSummonEgg, winnerPotion, combatFragment, c4, justicePotion
        };

        customAutoBuyItemList.addAll(Arrays.asList(customAutoBuyItems));
    }

    private static List<String> of(String... strings) {
        return List.of(strings);
    }

    private static CustomAutoBuyItem getCustomAutoBuyItemByName(String name) {
        return customAutoBuyItemList.stream().filter(customAutoBuyItem -> customAutoBuyItem.name.equalsIgnoreCase(name)).toList().get(0);
    }

    public static void load() {
        File file = new File("\\eclipse\\autobuy.txt");

        if (!file.exists()) {
            return;
        }

        try {
            BufferedReader br = new BufferedReader(new FileReader(file));
            String line;
            boolean first = true;
            while ((line = br.readLine()) != null) {
                if (first) {
                    AutoBuy.autoPayCom = line;
                    first = false;
                    continue;
                }
                int id = Integer.parseInt(line.split(":")[0]);
                if (id == 0) {
                    Item item = null;
                    for (Item i : Registry.ITEM) {
                        if (i.getTranslationKey().equalsIgnoreCase(line.split(":")[1])) {
                            item = i;
                            break;
                        }
                    }
                    items.add(new DefaultAutoBuyItem(item, Integer.parseInt(line.split(":")[2])));
                }
                if (id == 1) {
                    CustomAutoBuyItem customAutoBuyItem = getCustomAutoBuyItemByName(line.split(":")[1]);
                    CustomAutoBuyItem add = new CustomAutoBuyItem(customAutoBuyItem.item, Integer.parseInt(line.split(":")[2]));
                    add.line = customAutoBuyItem.line;
                    add.enchantments = customAutoBuyItem.enchantments;
                    add.effect = customAutoBuyItem.effect;
                    add.attributes = customAutoBuyItem.attributes;
                    add.name = customAutoBuyItem.name;
                    add.strictCheck = customAutoBuyItem.strictCheck;
                    items.add(add);
                }
            }
            br.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    public static void save() {
        File file = new File("\\expensive\\autobuy.txt");

        if (file.exists()) {
            file.delete();
        }

        try {
            file.createNewFile();
            BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file));
            bufferedWriter.write(AutoBuy.autoPayCom + "\n");
            for (AutoBuyItem item : items) {
                if (item instanceof CustomAutoBuyItem) {
                    bufferedWriter.write("1:" + ((CustomAutoBuyItem) item).name + ":" + item.price + "\n");
                }
                if (item instanceof DefaultAutoBuyItem) {
                    bufferedWriter.write("0:" + item.item.getTranslationKey() + ":" + item.price + "\n");
                }
            }
            bufferedWriter.flush();
            bufferedWriter.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
\

далее прикрепляете в свойе конструкции этот код:
void bby reference {
}
buy cooldown = 1.000121s reference decode =
restart to 3.00021111928s + buy choose treest();

поздравляю ваш шедевро автобай готов
Пипец
 
Сверху Снизу