• Ищем качественного (не новичок) разработчиков Xenforo для этого форума! В идеале, чтобы ты был фулл стек программистом. Если у тебя есть что показать, то свяжись с нами по контактным данным: https://t.me/DREDD

Часть функционала EnderChestExploit - 1.21.4 base

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
4 Янв 2023
Сообщения
341
Реакции
11
Выберите загрузчик игры
  1. Vanilla
  2. Fabric
  3. OptiFine
ПО словам димасика и монотона это экплоит ведь они отыгрывают роль хакеров но на самом деле они тупые фрики
и так вот сам код

SS -
Пожалуйста, авторизуйтесь для просмотра ссылки.






EnderChestExploit.java:
Expand Collapse Copy
package ru.levin.modules.player;

import net.minecraft.client.gui.screen.ingame.GenericContainerScreen;
import net.minecraft.item.ItemStack;
import net.minecraft.screen.GenericContainerScreenHandler;
import net.minecraft.screen.ScreenHandler;
import net.minecraft.screen.slot.SlotActionType;
import ru.levin.events.Event;
import ru.levin.events.impl.EventKey;
import ru.levin.events.impl.EventUpdate;
import ru.levin.modules.Function;
import ru.levin.modules.FunctionAnnotation;
import ru.levin.modules.Type;
import ru.levin.modules.setting.BindSetting;

@SuppressWarnings("All")
@FunctionAnnotation(name = "EnderChestExploit", desc = "", type = Type.Player)
public class EnderChestExploit extends Function {

    private final BindSetting bind = new BindSetting("Кнопка сейва", -1);
    private boolean check = false;
    private boolean fakeClosed = false;

    private GenericContainerScreenHandler savedHandler = null;

    public EnderChestExploit() {
        addSettings(bind);
    }

    @Override
    public void onEvent(Event event) {
        if (event instanceof EventKey eventKey) {
            if (eventKey.key == bind.getKey()) {
                check = true;
            }
        }

        if (event instanceof EventUpdate) {
            ScreenHandler handler = mc.player.currentScreenHandler;
            if (handler != null && handler.slots.size() >= 27 && handler.getStacks().size() <= 63) {
                int chestSlots = handler.slots.size() - 36;
                if (chestSlots == 27) {
                    if (!fakeClosed && mc.currentScreen != null) {
                        mc.currentScreen = null;
                        mc.mouse.lockCursor();
                        fakeClosed = true;
                    }
                    if (check) {
                        check = false;
                        fakeClosed = false;

                        for (int i = chestSlots; i < handler.slots.size(); i++) {
                            ItemStack stack = handler.getSlot(i).getStack();
                            if (!stack.isEmpty()) {
                                mc.interactionManager.clickSlot(handler.syncId, i, 0, SlotActionType.QUICK_MOVE, mc.player);
                            }
                        }
                    }
                }
            } else {
                fakeClosed = false;
            }
        }
    }

    @Override
    public void onDisable() {
        check = false;
        fakeClosed = false;
        savedHandler = null;
    }
}
 
круто +реп
 
ПО словам димасика и монотона это экплоит ведь они отыгрывают роль хакеров но на самом деле они тупые фрики
и так вот сам код

SS -
Пожалуйста, авторизуйтесь для просмотра ссылки.






EnderChestExploit.java:
Expand Collapse Copy
package ru.levin.modules.player;

import net.minecraft.client.gui.screen.ingame.GenericContainerScreen;
import net.minecraft.item.ItemStack;
import net.minecraft.screen.GenericContainerScreenHandler;
import net.minecraft.screen.ScreenHandler;
import net.minecraft.screen.slot.SlotActionType;
import ru.levin.events.Event;
import ru.levin.events.impl.EventKey;
import ru.levin.events.impl.EventUpdate;
import ru.levin.modules.Function;
import ru.levin.modules.FunctionAnnotation;
import ru.levin.modules.Type;
import ru.levin.modules.setting.BindSetting;

@SuppressWarnings("All")
@FunctionAnnotation(name = "EnderChestExploit", desc = "", type = Type.Player)
public class EnderChestExploit extends Function {

    private final BindSetting bind = new BindSetting("Кнопка сейва", -1);
    private boolean check = false;
    private boolean fakeClosed = false;

    private GenericContainerScreenHandler savedHandler = null;

    public EnderChestExploit() {
        addSettings(bind);
    }

    @Override
    public void onEvent(Event event) {
        if (event instanceof EventKey eventKey) {
            if (eventKey.key == bind.getKey()) {
                check = true;
            }
        }

        if (event instanceof EventUpdate) {
            ScreenHandler handler = mc.player.currentScreenHandler;
            if (handler != null && handler.slots.size() >= 27 && handler.getStacks().size() <= 63) {
                int chestSlots = handler.slots.size() - 36;
                if (chestSlots == 27) {
                    if (!fakeClosed && mc.currentScreen != null) {
                        mc.currentScreen = null;
                        mc.mouse.lockCursor();
                        fakeClosed = true;
                    }
                    if (check) {
                        check = false;
                        fakeClosed = false;

                        for (int i = chestSlots; i < handler.slots.size(); i++) {
                            ItemStack stack = handler.getSlot(i).getStack();
                            if (!stack.isEmpty()) {
                                mc.interactionManager.clickSlot(handler.syncId, i, 0, SlotActionType.QUICK_MOVE, mc.player);
                            }
                        }
                    }
                }
            } else {
                fakeClosed = false;
            }
        }
    }

    @Override
    public void onDisable() {
        check = false;
        fakeClosed = false;
        savedHandler = null;
    }
}
+Реп братик
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
THUNDERHACCCKKK NOTIFICATION$$
 
Назад
Сверху Снизу