Начинающий
- Статус
- Оффлайн
- Регистрация
- 25 Янв 2024
- Сообщения
- 519
- Реакции
- 3
Давно писал этот чест стиллер, копался в старых сурсах и нашел его
Предметы под хв старые
Предметы под хв старые
Java:
package wtf.arix.modules.implement.player;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
import net.minecraft.screen.GenericContainerScreenHandler;
import net.minecraft.screen.slot.SlotActionType;
import net.minecraft.item.ItemStack;
import wtf.arix.events.api.EventSubscriber;
import wtf.arix.modules.api.Module;
import wtf.arix.modules.api.Category;
import wtf.arix.modules.settings.implement.BooleanSetting;
import wtf.arix.modules.settings.implement.MultiBoxSetting;
import wtf.arix.modules.settings.implement.SliderSetting;
import wtf.arix.events.implement.player.TickEvent;
import wtf.arix.utils.math.StopWatch;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
public class ChestStealer extends Module { //love lsggg
public MultiBoxSetting items = new MultiBoxSetting("Items",
"Яйца спавна",
"Уник",
"Фармер",
"Мечта Шахтера",
"Талисман Eternity",
"Талисман Stinger",
"Бессмертие",
"Боевые фрагменты",
"Легендарный тал/сфера",
"Кирка Eternity",
"Победилка",
"Элитры",
"Справедливость",
"Золотая кирка джейка",
"Гравитация",
"Шлем солнца",
"Универсальный приват",
"Особый компас",
"Трапка",
"Стан",
"Опыт 100",
"Динамит",
"Чарки/Геплы",
"Незер броня");
public SliderSetting stealDelay = new SliderSetting("Время лута",0,100,20);
private final StopWatch timerUtil = new StopWatch();
public ChestStealer() {
super("ChestStealer", Category.PLAYER);
addSettings(items,stealDelay);
}
private boolean filterItem(ItemStack itemStack) {
if (!items.isSelected("Яйца спавна") && !items.isSelected("Уник") && !items.isSelected("Фармер") && !items.isSelected("Мечта Шахтера") && !items.isSelected("Талисман Eternity") && !items.isSelected("Талисман Stinger") && !items.isSelected("Бессмертие") && !items.isSelected("Боевые фрагменты") && !items.isSelected("Легендарный тал/сфера") && !items.isSelected("Легендарный тал/сфера") && !items.isSelected("Кирка Eternity") && !items.isSelected("Победилка") && !items.isSelected("Элитры") && !items.isSelected("Справедливость") && !items.isSelected("Золотая кирка джейка") && !items.isSelected("Гравитация") && !items.isSelected("Шлем солнца") && !items.isSelected("Универсальный приват") && !items.isSelected("Особый компас") && !items.isSelected("Трапка") && !items.isSelected("Стан") && !items.isSelected("Опыт 100") && !items.isSelected("Динамит") && !items.isSelected("Незер броня") && !items.isSelected("Чарки/Геплы")) {
return true;
}
Item item = itemStack.getItem();
if (items.isSelected("Яйца спавна") && item == Items.EVOKER_SPAWN_EGG && itemStack.getName().getString().contains("Заклинатель")) {return true;}
if (items.isSelected("Уник") && item == Items.TRIPWIRE_HOOK && itemStack.getName().getString().contains("верса")) {return true;}
if (items.isSelected("Фармер") && item == Items.NETHERITE_SWORD && itemStack.getName().getString().contains("Выгодный фарм")) {return true;}
if (items.isSelected("Мечта Шахтера") && item == Items.NETHERITE_PICKAXE && itemStack.getName().getString().contains("Мечта")) {return true;}
if (items.isSelected("Талисман Eternity") && item == Items.TOTEM_OF_UNDYING && itemStack.getName().getString().contains("ᴇᴛᴇʀɴɪᴛʏ")) {return true;}
if (items.isSelected("Яйца спавна") && item == Items.ENDERMAN_SPAWN_EGG) {return true;}
if (items.isSelected("Талисман Stinger") && item == Items.TOTEM_OF_UNDYING && itemStack.getName().getString().contains("sᴛɪɴɢᴇʀ")) {return true;}
if (items.isSelected("Яйца спавна") && item == Items.VINDICATOR_SPAWN_EGG) {return true;}
if (items.isSelected("Бессмертие") && item == Items.TOTEM_OF_UNDYING && itemStack.getName().getString().contains("ертие")) {return true;}
if (items.isSelected("Боевые фрагменты") && item == Items.PRISMARINE_CRYSTALS && itemStack.getName().getString().contains("оевой")) {return true;}
if (items.isSelected("Легендарный тал/сфера") && item == Items.PLAYER_HEAD && itemStack.getName().getString().contains("егенд")) {return true;}
if (items.isSelected("Легендарный тал/сфера") && item == Items.TOTEM_OF_UNDYING && itemStack.getName().getString().contains("егенд")) {return true;}
if (items.isSelected("Яйца спавна") && item == Items.BLAZE_SPAWN_EGG) {return true;}
if (items.isSelected("Кирка Eternity") && item == Items.NETHERITE_PICKAXE && itemStack.getName().getString().contains("ᴇᴛᴇʀɴɪᴛʏ")) {return true;}
if (items.isSelected("Победилка") && item == Items.POTION && itemStack.getName().getString().contains("ед")) {return true;}
if (items.isSelected("Элитры") && item == Items.ELYTRA) {return true;}
if (items.isSelected("Справедливость") && item == Items.POTION && itemStack.getName().getString().contains("ливос")) {return true;}
if (items.isSelected("Золотая кирка джейка") && item == Items.GOLDEN_PICKAXE && itemStack.getName().getString().contains("жейка")) {return true;}
if (items.isSelected("Гравитация") && item == Items.FEATHER && itemStack.getName().getString().contains("ация")) {return true;}
if (items.isSelected("Шлем солнца") && item == Items.GOLDEN_HELMET && itemStack.getName().getString().contains("олнца")) {return true;}
if (items.isSelected("Универсальный приват") && item == Items.ANCIENT_DEBRIS && itemStack.getName().getString().contains("Уник")) {return true;}
if (items.isSelected("Особый компас") && item == Items.COMPASS && itemStack.getName().getString().contains("собый")) {return true;}
if (items.isSelected("Трапка") && item == Items.PRISMARINE_SHARD && itemStack.getName().getString().contains("рапка")) {return true;}
if (items.isSelected("Стан") && item == Items.NETHER_STAR && itemStack.getName().getString().contains("тан")) {return true;}
if (items.isSelected("Опыт 100") && item == Items.EXPERIENCE_BOTTLE && itemStack.getName().getString().contains("100")) {return true;}
if (items.isSelected("Динамит") && item == Items.TNT) {return true;}
if (items.isSelected("Чарки/Геплы") && item == Items.ENCHANTED_GOLDEN_APPLE) {return true;}
if (items.isSelected("Чарки/Геплы") && item == Items.GOLDEN_APPLE) {return true;}
if (items.isSelected("Незер броня") && item == Items.NETHERITE_BOOTS) {return true;}
if (items.isSelected("Незер броня") && item == Items.NETHERITE_LEGGINGS) {return true;}
if (items.isSelected("Незер броня") && item == Items.NETHERITE_CHESTPLATE ) {return true;}
if (items.isSelected("Незер броня") && item == Items.NETHERITE_HELMET) {return true;}
return false;
}
@EventSubscriber
public void onEvent(TickEvent event) {
if (mc.player != null && mc.player.currentScreenHandler instanceof GenericContainerScreenHandler) {
GenericContainerScreenHandler container = (GenericContainerScreenHandler) mc.player.currentScreenHandler;
List<Integer> validSlots = new ArrayList<>();
for (int index = 0; index < container.getInventory().size(); index++) {
ItemStack stack = container.getSlot(index).getStack();
if (stack.getItem() != Item.byRawId(0)
&& filterItem(stack)) {
validSlots.add(index);
}
}
validSlots.sort(Comparator.comparingInt(slot -> {
ItemStack stack = container.getInventory().getStack(slot);
if (stack.getName().getString().contains("Заклинатель")) return 0;
if (stack.getName().getString().contains("верса")) return 1;
if (stack.getName().getString().contains("Мечта")) return 3;
if (stack.getName().getString().contains("ᴇᴛᴇʀɴɪᴛʏ")) return 4;
if (stack.getName().getString().contains("")) return 5;
if (stack.getName().getString().contains("sᴛɪɴɢᴇʀ")) return 6;
if (stack.getName().getString().contains("")) return 7;
if (stack.getName().getString().contains("ертие")) return 8;
if (stack.getName().getString().contains("оевой")) return 9;
if (stack.getName().getString().contains("егенд")) return 10;
if (stack.getName().getString().contains("егенд")) return 11;
if (stack.getName().getString().contains("")) return 12;
if (stack.getName().getString().contains("ᴇᴛᴇʀɴɪᴛʏ")) return 13;
if (stack.getName().getString().contains("ед")) return 14;
if (stack.getName().getString().contains("")) return 15;
if (stack.getName().getString().contains("ливос")) return 16;
if (stack.getName().getString().contains("жейка")) return 17;
if (stack.getName().getString().contains("ация")) return 18;
if (stack.getName().getString().contains("олнца")) return 19;
if (stack.getName().getString().contains("Уник")) return 20;
if (stack.getName().getString().contains("собый")) return 21;
if (stack.getName().getString().contains("рапка")) return 22;
if (stack.getName().getString().contains("тан")) return 23;
if (stack.getName().getString().contains("100")) return 24;
if (stack.getName().getString().contains("")) return 25;
if (stack.getName().getString().contains("")) return 26;
if (stack.getName().getString().contains("")) return 27;
if (stack.getName().getString().contains("")) return 28;
if (stack.getName().getString().contains("")) return 29;
if (stack.getName().getString().contains("")) return 30;
return 31;
}));
if (!validSlots.isEmpty() && timerUtil.isReached(Math.round(stealDelay.getValue()))) {
int slotToSteal = validSlots.get(0);
mc.interactionManager.clickSlot(container.syncId, slotToSteal, 0, SlotActionType.QUICK_MOVE, mc.player);
mc.interactionManager.clickSlot(container.syncId, slotToSteal, 0, SlotActionType.QUICK_MOVE, mc.player);
timerUtil.reset();
}
}
}
}