Исходник СОЧНЫЙ FTAssistent (expensive 2.0)

Начинающий
Статус
Оффлайн
Регистрация
7 Мар 2024
Сообщения
294
Реакции[?]
6
Поинты[?]
4K

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

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

Спасибо!

Изъял у Tense Beta prod.
Здесь встроенный авто gps на ивент на FunTime.
Автосвап работающий на фантайм (сфера и талисман)
АвтоПроверка до ивента с кулдауном
И встроенный авто disorient и trap (обход на нью вайп)
Пожалуйста, авторизуйтесь для просмотра ссылки.


real create rarchik:
package owner.build.modules.impl.util;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.AirItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.IPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.network.play.client.CPlayerTryUseItemPacket;
import net.minecraft.network.play.server.SChatPacket;
import net.minecraft.util.Hand;
import owner.build.api.Function;
import owner.build.api.Group;
import owner.build.api.Register;
import owner.build.api.settings.imp.Bind;
import owner.build.api.settings.imp.Clasp;
import owner.build.api.settings.imp.Modes;
import owner.build.api.settings.imp.Regulator;
import owner.build.starting.events.Event;
import owner.build.starting.events.impl.game.EventKey;
import owner.build.starting.events.impl.packet.EventPacket;
import owner.build.starting.events.impl.player.EventUpdate;
import owner.build.starting.util.Redirector;
import owner.build.starting.util.misc.TimerUtil;
import owner.build.starting.util.world.InventoryUtil;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Register(name = "FTAssistent", type = Group.Util)
public class FTAssistent extends Function {

    private Clasp point = new Clasp("Auto GPS", true);
    private final Bind disorient = new Bind("Disorientation", 0);
    private final Bind trap = new Bind("Trap", 0);
    private final Bind swapKey = new Bind("Swap Bind", 0);
    private final Modes itemType = new Modes("Item", "Sphere", "Sphere", "Mascot");
    private final Modes swapType = new Modes("Swap on", "Sphere", "Sphere", "Mascot");

    private final Clasp events = new Clasp("Auto EventDelay", true);
    private final Regulator timer = new Regulator("Speed message", 1.0F, 1.0F, 10000.0F, 1.0F).setVisible(() -> events.get());
    private final TimerUtil stopWatch = new TimerUtil();
    private final TimerUtil disorientTimer = new TimerUtil();
    private final TimerUtil timerUtil = new TimerUtil();
    private final TimerUtil trapTimer = new TimerUtil();

    public FTAssistent() {
        addSettings(disorient, trap, point, swapKey, itemType, swapType, events, timer);
    }

    @Override
    public void onEvent(Event event) {
        if (event instanceof EventPacket) {
            EventPacket eventPacket = (EventPacket) event;
            if (point.get()) {
                if (eventPacket.getPacket() instanceof SChatPacket) {
                    SChatPacket packet = (SChatPacket) eventPacket.getPacket();
                    String chatMessage = packet.getChatComponent().getString();
                    if (chatMessage.contains("Появился на координатах")) {
                        Pattern pattern = Pattern.compile("\\[(\\d+) (\\d+) (\\d+)]");
                        Matcher matcher = pattern.matcher(chatMessage);
                        if (matcher.find()) {
                            int x = Integer.parseInt(matcher.group(1));
                            int y = Integer.parseInt(matcher.group(2));
                            int z = Integer.parseInt(matcher.group(3));
                            sendCommand(".gps " + x + " " + z);
                        }
                    }
                }
            }
        }
        if (event instanceof EventKey) {
            EventKey eventKey = (EventKey)event;
            if (eventKey.key == this.disorient.getKey() && this.disorientTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getDisorientAtHotBar(), getDisorientAtInventory());
                this.disorientTimer.reset();
            }
            if (eventKey.key == this.trap.getKey() && this.trapTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getTrapAtHotBar(), getTrapAtInventory());
                this.trapTimer.reset();
            }
        }
        if (event instanceof EventKey) {
            EventKey e = (EventKey) event;
            ItemStack offhandItemStack = Redirector.mc.player.getHeldItemOffhand();
            boolean isOffhandNotEmpty = !(offhandItemStack.getItem() instanceof AirItem);
            if (e.key == swapKey.getKey() && stopWatch.hasTimeElapsed(200)) {
                Item currentItem = offhandItemStack.getItem();
                boolean isHoldingSwapItem = currentItem == getSwapItem();
                boolean isHoldingSelectedItem = currentItem == getSelectedItem();
                int selectedItemSlot = InventoryUtil.getItemSlot(getSelectedItem());
                int swapItemSlot = InventoryUtil.getItemSlot(getSwapItem());

                if (selectedItemSlot >= 0) {
                    if (!isHoldingSelectedItem) {
                        InventoryUtil.moveItem(selectedItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                        return;
                    }
                }

                if (swapItemSlot >= 0) {
                    if (!isHoldingSwapItem) {
                        InventoryUtil.moveItem(swapItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                    }
                }
            }
        }
        if (event instanceof EventUpdate) {
            if (Redirector.mc.player == null || Redirector.mc.world == null)
                return;
            if (this.events.get() &&
                    this.timerUtil.hasTimeElapsed(this.timer.getValue().intValue())) {
                Redirector.mc.player.sendChatMessage("/event delay");
                this.timerUtil.reset();
            }
        }
    }

    private Item getSwapItem() {
        return getItemByType(swapType.get());
    }

    private Item getSelectedItem() {
        return getItemByType(itemType.get());
    }

    private Item getItemByType(String itemType) {
        switch (itemType) {
            case "Mascot": {
                return Items.TOTEM_OF_UNDYING;
            }
            case "Sphere": {
                return Items.PLAYER_HEAD;
            }
            default: {
                return Items.AIR;
            }
        }
    }

    private void use(int n, int n2) {
        if (n != -1) {
            int n3 = Redirector.mc.player.inventory.currentItem;
            Redirector.mc.player.inventory.currentItem = n;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n));
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.player.inventory.currentItem = n3;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n3));
        } else if (n2 != -1) {
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
        }
        this.disorientTimer.reset();
    }

    private int getDisorientAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getTrapAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getDisorientAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }

    private int getTrapAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }


    private void sendCommand(String command) {
        Minecraft.getInstance().player.sendChatMessage(command);
    }
}
 
Начинающий
Статус
Оффлайн
Регистрация
10 Фев 2023
Сообщения
375
Реакции[?]
0
Поинты[?]
1K
Изъял у Tense Beta prod.
Здесь встроенный авто gps на ивент на FunTime.
Автосвап работающий на фантайм (сфера и талисман)
АвтоПроверка до ивента с кулдауном
И встроенный авто disorient и trap (обход на нью вайп)
Пожалуйста, авторизуйтесь для просмотра ссылки.


real create rarchik:
package owner.build.modules.impl.util;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.AirItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.IPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.network.play.client.CPlayerTryUseItemPacket;
import net.minecraft.network.play.server.SChatPacket;
import net.minecraft.util.Hand;
import owner.build.api.Function;
import owner.build.api.Group;
import owner.build.api.Register;
import owner.build.api.settings.imp.Bind;
import owner.build.api.settings.imp.Clasp;
import owner.build.api.settings.imp.Modes;
import owner.build.api.settings.imp.Regulator;
import owner.build.starting.events.Event;
import owner.build.starting.events.impl.game.EventKey;
import owner.build.starting.events.impl.packet.EventPacket;
import owner.build.starting.events.impl.player.EventUpdate;
import owner.build.starting.util.Redirector;
import owner.build.starting.util.misc.TimerUtil;
import owner.build.starting.util.world.InventoryUtil;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Register(name = "FTAssistent", type = Group.Util)
public class FTAssistent extends Function {

    private Clasp point = new Clasp("Auto GPS", true);
    private final Bind disorient = new Bind("Disorientation", 0);
    private final Bind trap = new Bind("Trap", 0);
    private final Bind swapKey = new Bind("Swap Bind", 0);
    private final Modes itemType = new Modes("Item", "Sphere", "Sphere", "Mascot");
    private final Modes swapType = new Modes("Swap on", "Sphere", "Sphere", "Mascot");

    private final Clasp events = new Clasp("Auto EventDelay", true);
    private final Regulator timer = new Regulator("Speed message", 1.0F, 1.0F, 10000.0F, 1.0F).setVisible(() -> events.get());
    private final TimerUtil stopWatch = new TimerUtil();
    private final TimerUtil disorientTimer = new TimerUtil();
    private final TimerUtil timerUtil = new TimerUtil();
    private final TimerUtil trapTimer = new TimerUtil();

    public FTAssistent() {
        addSettings(disorient, trap, point, swapKey, itemType, swapType, events, timer);
    }

    @Override
    public void onEvent(Event event) {
        if (event instanceof EventPacket) {
            EventPacket eventPacket = (EventPacket) event;
            if (point.get()) {
                if (eventPacket.getPacket() instanceof SChatPacket) {
                    SChatPacket packet = (SChatPacket) eventPacket.getPacket();
                    String chatMessage = packet.getChatComponent().getString();
                    if (chatMessage.contains("Появился на координатах")) {
                        Pattern pattern = Pattern.compile("\\[(\\d+) (\\d+) (\\d+)]");
                        Matcher matcher = pattern.matcher(chatMessage);
                        if (matcher.find()) {
                            int x = Integer.parseInt(matcher.group(1));
                            int y = Integer.parseInt(matcher.group(2));
                            int z = Integer.parseInt(matcher.group(3));
                            sendCommand(".gps " + x + " " + z);
                        }
                    }
                }
            }
        }
        if (event instanceof EventKey) {
            EventKey eventKey = (EventKey)event;
            if (eventKey.key == this.disorient.getKey() && this.disorientTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getDisorientAtHotBar(), getDisorientAtInventory());
                this.disorientTimer.reset();
            }
            if (eventKey.key == this.trap.getKey() && this.trapTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getTrapAtHotBar(), getTrapAtInventory());
                this.trapTimer.reset();
            }
        }
        if (event instanceof EventKey) {
            EventKey e = (EventKey) event;
            ItemStack offhandItemStack = Redirector.mc.player.getHeldItemOffhand();
            boolean isOffhandNotEmpty = !(offhandItemStack.getItem() instanceof AirItem);
            if (e.key == swapKey.getKey() && stopWatch.hasTimeElapsed(200)) {
                Item currentItem = offhandItemStack.getItem();
                boolean isHoldingSwapItem = currentItem == getSwapItem();
                boolean isHoldingSelectedItem = currentItem == getSelectedItem();
                int selectedItemSlot = InventoryUtil.getItemSlot(getSelectedItem());
                int swapItemSlot = InventoryUtil.getItemSlot(getSwapItem());

                if (selectedItemSlot >= 0) {
                    if (!isHoldingSelectedItem) {
                        InventoryUtil.moveItem(selectedItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                        return;
                    }
                }

                if (swapItemSlot >= 0) {
                    if (!isHoldingSwapItem) {
                        InventoryUtil.moveItem(swapItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                    }
                }
            }
        }
        if (event instanceof EventUpdate) {
            if (Redirector.mc.player == null || Redirector.mc.world == null)
                return;
            if (this.events.get() &&
                    this.timerUtil.hasTimeElapsed(this.timer.getValue().intValue())) {
                Redirector.mc.player.sendChatMessage("/event delay");
                this.timerUtil.reset();
            }
        }
    }

    private Item getSwapItem() {
        return getItemByType(swapType.get());
    }

    private Item getSelectedItem() {
        return getItemByType(itemType.get());
    }

    private Item getItemByType(String itemType) {
        switch (itemType) {
            case "Mascot": {
                return Items.TOTEM_OF_UNDYING;
            }
            case "Sphere": {
                return Items.PLAYER_HEAD;
            }
            default: {
                return Items.AIR;
            }
        }
    }

    private void use(int n, int n2) {
        if (n != -1) {
            int n3 = Redirector.mc.player.inventory.currentItem;
            Redirector.mc.player.inventory.currentItem = n;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n));
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.player.inventory.currentItem = n3;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n3));
        } else if (n2 != -1) {
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
        }
        this.disorientTimer.reset();
    }

    private int getDisorientAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getTrapAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getDisorientAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }

    private int getTrapAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }


    private void sendCommand(String command) {
        Minecraft.getInstance().player.sendChatMessage(command);
    }
}
скинь фиксанутый tense в лс)[/QUOTE]
 
Начинающий
Статус
Оффлайн
Регистрация
10 Фев 2023
Сообщения
375
Реакции[?]
0
Поинты[?]
1K
он платный, я с него не снял обф еще с ластовой Tense Beta
[/QUOTE]
ну я говорю же кинь))
 
Начинающий
Статус
Оффлайн
Регистрация
15 Дек 2023
Сообщения
84
Реакции[?]
1
Поинты[?]
2K
он платный, я с него не снял обф еще с ластовой Tense Beta
[/QUOTE]
кидани и мне пожалуйста
 
Read Only
Статус
Оффлайн
Регистрация
24 Июл 2022
Сообщения
130
Реакции[?]
4
Поинты[?]
0
Изъял у Tense Beta prod.
Здесь встроенный авто gps на ивент на FunTime.
Автосвап работающий на фантайм (сфера и талисман)
АвтоПроверка до ивента с кулдауном
И встроенный авто disorient и trap (обход на нью вайп)
Пожалуйста, авторизуйтесь для просмотра ссылки.


real create rarchik:
package owner.build.modules.impl.util;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.AirItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.IPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.network.play.client.CPlayerTryUseItemPacket;
import net.minecraft.network.play.server.SChatPacket;
import net.minecraft.util.Hand;
import owner.build.api.Function;
import owner.build.api.Group;
import owner.build.api.Register;
import owner.build.api.settings.imp.Bind;
import owner.build.api.settings.imp.Clasp;
import owner.build.api.settings.imp.Modes;
import owner.build.api.settings.imp.Regulator;
import owner.build.starting.events.Event;
import owner.build.starting.events.impl.game.EventKey;
import owner.build.starting.events.impl.packet.EventPacket;
import owner.build.starting.events.impl.player.EventUpdate;
import owner.build.starting.util.Redirector;
import owner.build.starting.util.misc.TimerUtil;
import owner.build.starting.util.world.InventoryUtil;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Register(name = "FTAssistent", type = Group.Util)
public class FTAssistent extends Function {

    private Clasp point = new Clasp("Auto GPS", true);
    private final Bind disorient = new Bind("Disorientation", 0);
    private final Bind trap = new Bind("Trap", 0);
    private final Bind swapKey = new Bind("Swap Bind", 0);
    private final Modes itemType = new Modes("Item", "Sphere", "Sphere", "Mascot");
    private final Modes swapType = new Modes("Swap on", "Sphere", "Sphere", "Mascot");

    private final Clasp events = new Clasp("Auto EventDelay", true);
    private final Regulator timer = new Regulator("Speed message", 1.0F, 1.0F, 10000.0F, 1.0F).setVisible(() -> events.get());
    private final TimerUtil stopWatch = new TimerUtil();
    private final TimerUtil disorientTimer = new TimerUtil();
    private final TimerUtil timerUtil = new TimerUtil();
    private final TimerUtil trapTimer = new TimerUtil();

    public FTAssistent() {
        addSettings(disorient, trap, point, swapKey, itemType, swapType, events, timer);
    }

    @Override
    public void onEvent(Event event) {
        if (event instanceof EventPacket) {
            EventPacket eventPacket = (EventPacket) event;
            if (point.get()) {
                if (eventPacket.getPacket() instanceof SChatPacket) {
                    SChatPacket packet = (SChatPacket) eventPacket.getPacket();
                    String chatMessage = packet.getChatComponent().getString();
                    if (chatMessage.contains("Появился на координатах")) {
                        Pattern pattern = Pattern.compile("\\[(\\d+) (\\d+) (\\d+)]");
                        Matcher matcher = pattern.matcher(chatMessage);
                        if (matcher.find()) {
                            int x = Integer.parseInt(matcher.group(1));
                            int y = Integer.parseInt(matcher.group(2));
                            int z = Integer.parseInt(matcher.group(3));
                            sendCommand(".gps " + x + " " + z);
                        }
                    }
                }
            }
        }
        if (event instanceof EventKey) {
            EventKey eventKey = (EventKey)event;
            if (eventKey.key == this.disorient.getKey() && this.disorientTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getDisorientAtHotBar(), getDisorientAtInventory());
                this.disorientTimer.reset();
            }
            if (eventKey.key == this.trap.getKey() && this.trapTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getTrapAtHotBar(), getTrapAtInventory());
                this.trapTimer.reset();
            }
        }
        if (event instanceof EventKey) {
            EventKey e = (EventKey) event;
            ItemStack offhandItemStack = Redirector.mc.player.getHeldItemOffhand();
            boolean isOffhandNotEmpty = !(offhandItemStack.getItem() instanceof AirItem);
            if (e.key == swapKey.getKey() && stopWatch.hasTimeElapsed(200)) {
                Item currentItem = offhandItemStack.getItem();
                boolean isHoldingSwapItem = currentItem == getSwapItem();
                boolean isHoldingSelectedItem = currentItem == getSelectedItem();
                int selectedItemSlot = InventoryUtil.getItemSlot(getSelectedItem());
                int swapItemSlot = InventoryUtil.getItemSlot(getSwapItem());

                if (selectedItemSlot >= 0) {
                    if (!isHoldingSelectedItem) {
                        InventoryUtil.moveItem(selectedItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                        return;
                    }
                }

                if (swapItemSlot >= 0) {
                    if (!isHoldingSwapItem) {
                        InventoryUtil.moveItem(swapItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                    }
                }
            }
        }
        if (event instanceof EventUpdate) {
            if (Redirector.mc.player == null || Redirector.mc.world == null)
                return;
            if (this.events.get() &&
                    this.timerUtil.hasTimeElapsed(this.timer.getValue().intValue())) {
                Redirector.mc.player.sendChatMessage("/event delay");
                this.timerUtil.reset();
            }
        }
    }

    private Item getSwapItem() {
        return getItemByType(swapType.get());
    }

    private Item getSelectedItem() {
        return getItemByType(itemType.get());
    }

    private Item getItemByType(String itemType) {
        switch (itemType) {
            case "Mascot": {
                return Items.TOTEM_OF_UNDYING;
            }
            case "Sphere": {
                return Items.PLAYER_HEAD;
            }
            default: {
                return Items.AIR;
            }
        }
    }

    private void use(int n, int n2) {
        if (n != -1) {
            int n3 = Redirector.mc.player.inventory.currentItem;
            Redirector.mc.player.inventory.currentItem = n;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n));
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.player.inventory.currentItem = n3;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n3));
        } else if (n2 != -1) {
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
        }
        this.disorientTimer.reset();
    }

    private int getDisorientAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getTrapAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getDisorientAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }

    private int getTrapAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }


    private void sendCommand(String command) {
        Minecraft.getInstance().player.sendChatMessage(command);
    }
}
крута спастил мой худ :0
 
Начинающий
Статус
Оффлайн
Регистрация
15 Май 2023
Сообщения
17
Реакции[?]
0
Поинты[?]
0
Изъял у Tense Beta prod.
Здесь встроенный авто gps на ивент на FunTime.
Автосвап работающий на фантайм (сфера и талисман)
АвтоПроверка до ивента с кулдауном
И встроенный авто disorient и trap (обход на нью вайп)
Пожалуйста, авторизуйтесь для просмотра ссылки.


real create rarchik:
package owner.build.modules.impl.util;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.AirItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.IPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.network.play.client.CPlayerTryUseItemPacket;
import net.minecraft.network.play.server.SChatPacket;
import net.minecraft.util.Hand;
import owner.build.api.Function;
import owner.build.api.Group;
import owner.build.api.Register;
import owner.build.api.settings.imp.Bind;
import owner.build.api.settings.imp.Clasp;
import owner.build.api.settings.imp.Modes;
import owner.build.api.settings.imp.Regulator;
import owner.build.starting.events.Event;
import owner.build.starting.events.impl.game.EventKey;
import owner.build.starting.events.impl.packet.EventPacket;
import owner.build.starting.events.impl.player.EventUpdate;
import owner.build.starting.util.Redirector;
import owner.build.starting.util.misc.TimerUtil;
import owner.build.starting.util.world.InventoryUtil;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Register(name = "FTAssistent", type = Group.Util)
public class FTAssistent extends Function {

    private Clasp point = new Clasp("Auto GPS", true);
    private final Bind disorient = new Bind("Disorientation", 0);
    private final Bind trap = new Bind("Trap", 0);
    private final Bind swapKey = new Bind("Swap Bind", 0);
    private final Modes itemType = new Modes("Item", "Sphere", "Sphere", "Mascot");
    private final Modes swapType = new Modes("Swap on", "Sphere", "Sphere", "Mascot");

    private final Clasp events = new Clasp("Auto EventDelay", true);
    private final Regulator timer = new Regulator("Speed message", 1.0F, 1.0F, 10000.0F, 1.0F).setVisible(() -> events.get());
    private final TimerUtil stopWatch = new TimerUtil();
    private final TimerUtil disorientTimer = new TimerUtil();
    private final TimerUtil timerUtil = new TimerUtil();
    private final TimerUtil trapTimer = new TimerUtil();

    public FTAssistent() {
        addSettings(disorient, trap, point, swapKey, itemType, swapType, events, timer);
    }

    @Override
    public void onEvent(Event event) {
        if (event instanceof EventPacket) {
            EventPacket eventPacket = (EventPacket) event;
            if (point.get()) {
                if (eventPacket.getPacket() instanceof SChatPacket) {
                    SChatPacket packet = (SChatPacket) eventPacket.getPacket();
                    String chatMessage = packet.getChatComponent().getString();
                    if (chatMessage.contains("Появился на координатах")) {
                        Pattern pattern = Pattern.compile("\\[(\\d+) (\\d+) (\\d+)]");
                        Matcher matcher = pattern.matcher(chatMessage);
                        if (matcher.find()) {
                            int x = Integer.parseInt(matcher.group(1));
                            int y = Integer.parseInt(matcher.group(2));
                            int z = Integer.parseInt(matcher.group(3));
                            sendCommand(".gps " + x + " " + z);
                        }
                    }
                }
            }
        }
        if (event instanceof EventKey) {
            EventKey eventKey = (EventKey)event;
            if (eventKey.key == this.disorient.getKey() && this.disorientTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getDisorientAtHotBar(), getDisorientAtInventory());
                this.disorientTimer.reset();
            }
            if (eventKey.key == this.trap.getKey() && this.trapTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getTrapAtHotBar(), getTrapAtInventory());
                this.trapTimer.reset();
            }
        }
        if (event instanceof EventKey) {
            EventKey e = (EventKey) event;
            ItemStack offhandItemStack = Redirector.mc.player.getHeldItemOffhand();
            boolean isOffhandNotEmpty = !(offhandItemStack.getItem() instanceof AirItem);
            if (e.key == swapKey.getKey() && stopWatch.hasTimeElapsed(200)) {
                Item currentItem = offhandItemStack.getItem();
                boolean isHoldingSwapItem = currentItem == getSwapItem();
                boolean isHoldingSelectedItem = currentItem == getSelectedItem();
                int selectedItemSlot = InventoryUtil.getItemSlot(getSelectedItem());
                int swapItemSlot = InventoryUtil.getItemSlot(getSwapItem());

                if (selectedItemSlot >= 0) {
                    if (!isHoldingSelectedItem) {
                        InventoryUtil.moveItem(selectedItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                        return;
                    }
                }

                if (swapItemSlot >= 0) {
                    if (!isHoldingSwapItem) {
                        InventoryUtil.moveItem(swapItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                    }
                }
            }
        }
        if (event instanceof EventUpdate) {
            if (Redirector.mc.player == null || Redirector.mc.world == null)
                return;
            if (this.events.get() &&
                    this.timerUtil.hasTimeElapsed(this.timer.getValue().intValue())) {
                Redirector.mc.player.sendChatMessage("/event delay");
                this.timerUtil.reset();
            }
        }
    }

    private Item getSwapItem() {
        return getItemByType(swapType.get());
    }

    private Item getSelectedItem() {
        return getItemByType(itemType.get());
    }

    private Item getItemByType(String itemType) {
        switch (itemType) {
            case "Mascot": {
                return Items.TOTEM_OF_UNDYING;
            }
            case "Sphere": {
                return Items.PLAYER_HEAD;
            }
            default: {
                return Items.AIR;
            }
        }
    }

    private void use(int n, int n2) {
        if (n != -1) {
            int n3 = Redirector.mc.player.inventory.currentItem;
            Redirector.mc.player.inventory.currentItem = n;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n));
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.player.inventory.currentItem = n3;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n3));
        } else if (n2 != -1) {
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
        }
        this.disorientTimer.reset();
    }

    private int getDisorientAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getTrapAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getDisorientAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }

    private int getTrapAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }


    private void sendCommand(String command) {
        Minecraft.getInstance().player.sendChatMessage(command);
    }
}
пж это отдельным файлом вставлять? я чайник в пастинге
 
Начинающий
Статус
Оффлайн
Регистрация
17 Фев 2024
Сообщения
16
Реакции[?]
0
Поинты[?]
0
Изъял у Tense Beta prod.
Здесь встроенный авто gps на ивент на FunTime.
Автосвап работающий на фантайм (сфера и талисман)
АвтоПроверка до ивента с кулдауном
И встроенный авто disorient и trap (обход на нью вайп)
Пожалуйста, авторизуйтесь для просмотра ссылки.


real create rarchik:
package owner.build.modules.impl.util;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.container.ClickType;
import net.minecraft.item.AirItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.IPacket;
import net.minecraft.network.play.client.CHeldItemChangePacket;
import net.minecraft.network.play.client.CPlayerTryUseItemPacket;
import net.minecraft.network.play.server.SChatPacket;
import net.minecraft.util.Hand;
import owner.build.api.Function;
import owner.build.api.Group;
import owner.build.api.Register;
import owner.build.api.settings.imp.Bind;
import owner.build.api.settings.imp.Clasp;
import owner.build.api.settings.imp.Modes;
import owner.build.api.settings.imp.Regulator;
import owner.build.starting.events.Event;
import owner.build.starting.events.impl.game.EventKey;
import owner.build.starting.events.impl.packet.EventPacket;
import owner.build.starting.events.impl.player.EventUpdate;
import owner.build.starting.util.Redirector;
import owner.build.starting.util.misc.TimerUtil;
import owner.build.starting.util.world.InventoryUtil;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Register(name = "FTAssistent", type = Group.Util)
public class FTAssistent extends Function {

    private Clasp point = new Clasp("Auto GPS", true);
    private final Bind disorient = new Bind("Disorientation", 0);
    private final Bind trap = new Bind("Trap", 0);
    private final Bind swapKey = new Bind("Swap Bind", 0);
    private final Modes itemType = new Modes("Item", "Sphere", "Sphere", "Mascot");
    private final Modes swapType = new Modes("Swap on", "Sphere", "Sphere", "Mascot");

    private final Clasp events = new Clasp("Auto EventDelay", true);
    private final Regulator timer = new Regulator("Speed message", 1.0F, 1.0F, 10000.0F, 1.0F).setVisible(() -> events.get());
    private final TimerUtil stopWatch = new TimerUtil();
    private final TimerUtil disorientTimer = new TimerUtil();
    private final TimerUtil timerUtil = new TimerUtil();
    private final TimerUtil trapTimer = new TimerUtil();

    public FTAssistent() {
        addSettings(disorient, trap, point, swapKey, itemType, swapType, events, timer);
    }

    @Override
    public void onEvent(Event event) {
        if (event instanceof EventPacket) {
            EventPacket eventPacket = (EventPacket) event;
            if (point.get()) {
                if (eventPacket.getPacket() instanceof SChatPacket) {
                    SChatPacket packet = (SChatPacket) eventPacket.getPacket();
                    String chatMessage = packet.getChatComponent().getString();
                    if (chatMessage.contains("Появился на координатах")) {
                        Pattern pattern = Pattern.compile("\\[(\\d+) (\\d+) (\\d+)]");
                        Matcher matcher = pattern.matcher(chatMessage);
                        if (matcher.find()) {
                            int x = Integer.parseInt(matcher.group(1));
                            int y = Integer.parseInt(matcher.group(2));
                            int z = Integer.parseInt(matcher.group(3));
                            sendCommand(".gps " + x + " " + z);
                        }
                    }
                }
            }
        }
        if (event instanceof EventKey) {
            EventKey eventKey = (EventKey)event;
            if (eventKey.key == this.disorient.getKey() && this.disorientTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getDisorientAtHotBar(), getDisorientAtInventory());
                this.disorientTimer.reset();
            }
            if (eventKey.key == this.trap.getKey() && this.trapTimer.hasTimeElapsed(3000L) && Redirector.mc.currentScreen == null) {
                use(getTrapAtHotBar(), getTrapAtInventory());
                this.trapTimer.reset();
            }
        }
        if (event instanceof EventKey) {
            EventKey e = (EventKey) event;
            ItemStack offhandItemStack = Redirector.mc.player.getHeldItemOffhand();
            boolean isOffhandNotEmpty = !(offhandItemStack.getItem() instanceof AirItem);
            if (e.key == swapKey.getKey() && stopWatch.hasTimeElapsed(200)) {
                Item currentItem = offhandItemStack.getItem();
                boolean isHoldingSwapItem = currentItem == getSwapItem();
                boolean isHoldingSelectedItem = currentItem == getSelectedItem();
                int selectedItemSlot = InventoryUtil.getItemSlot(getSelectedItem());
                int swapItemSlot = InventoryUtil.getItemSlot(getSwapItem());

                if (selectedItemSlot >= 0) {
                    if (!isHoldingSelectedItem) {
                        InventoryUtil.moveItem(selectedItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                        return;
                    }
                }

                if (swapItemSlot >= 0) {
                    if (!isHoldingSwapItem) {
                        InventoryUtil.moveItem(swapItemSlot, 45, isOffhandNotEmpty);
                        stopWatch.reset();
                    }
                }
            }
        }
        if (event instanceof EventUpdate) {
            if (Redirector.mc.player == null || Redirector.mc.world == null)
                return;
            if (this.events.get() &&
                    this.timerUtil.hasTimeElapsed(this.timer.getValue().intValue())) {
                Redirector.mc.player.sendChatMessage("/event delay");
                this.timerUtil.reset();
            }
        }
    }

    private Item getSwapItem() {
        return getItemByType(swapType.get());
    }

    private Item getSelectedItem() {
        return getItemByType(itemType.get());
    }

    private Item getItemByType(String itemType) {
        switch (itemType) {
            case "Mascot": {
                return Items.TOTEM_OF_UNDYING;
            }
            case "Sphere": {
                return Items.PLAYER_HEAD;
            }
            default: {
                return Items.AIR;
            }
        }
    }

    private void use(int n, int n2) {
        if (n != -1) {
            int n3 = Redirector.mc.player.inventory.currentItem;
            Redirector.mc.player.inventory.currentItem = n;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n));
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.player.inventory.currentItem = n3;
            Redirector.mc.player.connection.sendPacket((IPacket)new CHeldItemChangePacket(n3));
        } else if (n2 != -1) {
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
            Redirector.mc.player.connection.sendPacket((IPacket)new CPlayerTryUseItemPacket(Hand.MAIN_HAND));
            Redirector.mc.playerController.windowClick(0, n2, Redirector.mc.player.inventory.currentItem, ClickType.SWAP, (PlayerEntity) Redirector.mc.player);
        }
        this.disorientTimer.reset();
    }

    private int getDisorientAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getTrapAtHotBar() {
        for (int i = 0; i < 9; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i++;
                continue;
            }
            return i;
        }
        return -1;
    }

    private int getDisorientAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.ENDER_EYE) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }

    private int getTrapAtInventory() {
        for (int i = 36; i >= 0; ) {
            ItemStack itemStack = Redirector.mc.player.inventory.getStackInSlot(i);
            if (itemStack.getItem() != Items.NETHERITE_SCRAP) {
                i--;
                continue;
            }
            if (i < 9)
                i += 36;
            return i;
        }
        return -1;
    }


    private void sendCommand(String command) {
        Minecraft.getInstance().player.sendChatMessage(command);
    }
}
можно фикс импортов и ютилки?
 
Сверху Снизу