Начинающий
- Статус
- Оффлайн
- Регистрация
- 22 Ноя 2025
- Сообщения
- 8
- Реакции
- 0
- Выберите загрузчик игры
- OptiFine
- Прочие моды
Ну это прощу не бить палками это моя первая тема фт и сп байпасит пишите ваше мнение авто перепродажа вашего аукциона
ss:
Код:
/// by Zalupa3001
@FunctionRegister(name = "AutoResell", type = Category.Misc)
public class AutoResell extends Function {
private final ModeSetting mode = new ModeSetting("Мод:", "Князь", "Князь", "Игрок");
private final StopWatch mainTimer = new StopWatch();
private final StopWatch actionTimer = new StopWatch();
private int stage = 0;
public AutoResell() {
addSettings(mode);
}
@Override
public boolean onEnable() {
super.onEnable();
mainTimer.reset();
actionTimer.reset();
stage = 0;
return false;
}
@Subscribe
private void onUpdate(EventUpdate e) {
if (mc.player == null) return;
if (mode.is("Князь")) {
handlePrince();
} else {
handlePlayer();
}
}
private void handlePrince() {
if (mainTimer.isReached(61000)) {
mc.player.sendChatMessage("/ah resell");
mainTimer.reset();
}
}
private void handlePlayer() {
if (stage == 0) {
if (mainTimer.isReached(61000)) {
mc.player.sendChatMessage("/ah");
stage = 1;
actionTimer.reset();
}
}
else if (stage == 1) {
if (actionTimer.isReached(500)) {
if (mc.currentScreen instanceof ContainerScreen) {
if (clickItem(Items.ENDER_CHEST)) {
stage = 2;
actionTimer.reset();
}
}
if (actionTimer.isReached(5000)) {
resetCycle();
}
}
}
else if (stage == 2) {
if (actionTimer.isReached(500)) {
if (mc.currentScreen instanceof ContainerScreen) {
if (clickItem(Items.CLOCK)) {
stage = 3;
actionTimer.reset();
}
}
if (actionTimer.isReached(5000)) {
resetCycle();
}
}
}
else if (stage == 3) {
if (actionTimer.isReached(300)) {
mc.player.closeScreen();
resetCycle();
}
}
}
private void resetCycle() {
stage = 0;
mainTimer.reset();
}
private boolean clickItem(Item itemToFind) {
if (!(mc.currentScreen instanceof ContainerScreen)) return false;
ContainerScreen<?> screen = (ContainerScreen<?>) mc.currentScreen;
Container container = screen.getContainer();
for (Slot slot : container.inventorySlots) {
if (slot.getHasStack() && slot.getStack().getItem() == itemToFind) {
mc.playerController.windowClick(
container.windowId,
slot.slotNumber,
0,
ClickType.PICKUP,
mc.player
);
return true;
}
}
return false;
}
}
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.