Вопрос Дайте AntiBot паже exp 3.1

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

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

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

Спасибо!

дайте нормальный AntiBot паже
 
Начинающий
Статус
Оффлайн
Регистрация
12 Фев 2025
Сообщения
19
Реакции[?]
0
Поинты[?]
0
вот антибот рабочий эксп 3.1
package im.expensive.functions.impl.combat;

import com.google.common.eventbus.Subscribe;
import com.mojang.authlib.GameProfile;

import im.expensive.events.EventPacket;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.api.FunctionRegistry;
import io.netty.util.internal.ConcurrentSet;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.server.SPlayerListItemPacket;

import java.util.*;

@FunctionRegister(name = "AntiBot", type = Category.Combat)
public class AntiBot extends Function {

private final Set<UUID> susPlayers = new ConcurrentSet<>();
private static final Map<UUID, Boolean> botsMap = new HashMap<>();

@Subscribe
private void onUpdate(EventUpdate e) {
for (UUID susPlayer : susPlayers) {
PlayerEntity entity = mc.world.getPlayerByUuid(susPlayer);

if (entity != null) {
//LoggerUtils.print("da: " + entity.getGameProfile().getName());

Iterator<ItemStack> armor = entity.getArmorInventoryList().iterator();

int count = 0;

while (armor.hasNext()) {
ItemStack current = armor.next();

if (!current.isEmpty()) {
count++;
}
}

boolean isFullArmor = count == 4;

count = 0;

for (NetworkPlayerInfo networkPlayerInfo : mc.player.connection.getPlayerInfoMap()) {
GameProfile profile = networkPlayerInfo.getGameProfile();

if (entity.getGameProfile().getName().equals(profile.getName())) {
count++;
}
}

boolean isBot = isFullArmor || !entity.getUniqueID().equals(PlayerEntity.getOfflineUUID(entity.getGameProfile().getName()));

botsMap.put(susPlayer, isBot);
}

susPlayers.remove(susPlayer);
}


if (mc.player.ticksExisted % 100 == 0) {
botsMap.keySet().removeIf(uuid -> mc.world.getPlayerByUuid(uuid) == null);
}
}

@Subscribe
private void onPacket(EventPacket e) {
if (e.getPacket() instanceof SPlayerListItemPacket p) {
if (p.getAction() == SPlayerListItemPacket.Action.ADD_PLAYER) {
for (SPlayerListItemPacket.AddPlayerData entry : p.getEntries()) {
GameProfile profile = entry.getProfile();

if (botsMap.containsKey(profile.getId()) || susPlayers.contains(profile.getId())) {
continue;
}

boolean isInvalid = profile.getProperties().isEmpty() && entry.getPing() != 0;

if (isInvalid) {
susPlayers.add(profile.getId());
}
}
}
}
}

public static boolean isBot(Entity entity) {
return entity instanceof PlayerEntity && botsMap.getOrDefault(entity.getUniqueID(), false);
}

public static boolean isBotU(Entity entity) {
if (!entity.getUniqueID().equals(PlayerEntity.getOfflineUUID(entity.getName().getString()))) {
return entity.isInvisible();
}
return false;
}

override
public void onDisable() {
super.onDisable();
botsMap.clear();
}
}
вот антибот рабочий эксп 3.1
package im.expensive.functions.impl.combat;

import com.google.common.eventbus.Subscribe;
import com.mojang.authlib.GameProfile;

import im.expensive.events.EventPacket;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.api.FunctionRegistry;
import io.netty.util.internal.ConcurrentSet;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.server.SPlayerListItemPacket;

import java.util.*;

@FunctionRegister(name = "AntiBot", type = Category.Combat)
public class AntiBot extends Function {

private final Set<UUID> susPlayers = new ConcurrentSet<>();
private static final Map<UUID, Boolean> botsMap = new HashMap<>();

@Subscribe
private void onUpdate(EventUpdate e) {
for (UUID susPlayer : susPlayers) {
PlayerEntity entity = mc.world.getPlayerByUuid(susPlayer);

if (entity != null) {
//LoggerUtils.print("da: " + entity.getGameProfile().getName());

Iterator<ItemStack> armor = entity.getArmorInventoryList().iterator();

int count = 0;

while (armor.hasNext()) {
ItemStack current = armor.next();

if (!current.isEmpty()) {
count++;
}
}

boolean isFullArmor = count == 4;

count = 0;

for (NetworkPlayerInfo networkPlayerInfo : mc.player.connection.getPlayerInfoMap()) {
GameProfile profile = networkPlayerInfo.getGameProfile();

if (entity.getGameProfile().getName().equals(profile.getName())) {
count++;
}
}

boolean isBot = isFullArmor || !entity.getUniqueID().equals(PlayerEntity.getOfflineUUID(entity.getGameProfile().getName()));

botsMap.put(susPlayer, isBot);
}

susPlayers.remove(susPlayer);
}


if (mc.player.ticksExisted % 100 == 0) {
botsMap.keySet().removeIf(uuid -> mc.world.getPlayerByUuid(uuid) == null);
}
}

@Subscribe
private void onPacket(EventPacket e) {
if (e.getPacket() instanceof SPlayerListItemPacket p) {
if (p.getAction() == SPlayerListItemPacket.Action.ADD_PLAYER) {
for (SPlayerListItemPacket.AddPlayerData entry : p.getEntries()) {
GameProfile profile = entry.getProfile();

if (botsMap.containsKey(profile.getId()) || susPlayers.contains(profile.getId())) {
continue;
}

boolean isInvalid = profile.getProperties().isEmpty() && entry.getPing() != 0;

if (isInvalid) {
susPlayers.add(profile.getId());
}
}
}
}
}

public static boolean isBot(Entity entity) {
return entity instanceof PlayerEntity && botsMap.getOrDefault(entity.getUniqueID(), false);
}

public static boolean isBotU(Entity entity) {
if (!entity.getUniqueID().equals(PlayerEntity.getOfflineUUID(entity.getName().getString()))) {
return entity.isInvisible();
}
return false;
}

override
public void onDisable() {
super.onDisable();
botsMap.clear();
}
}
думаю вы не тупые чтобы поправить это
 
Начинающий
Статус
Оффлайн
Регистрация
8 Сен 2024
Сообщения
170
Реакции[?]
0
Поинты[?]
0
вот антибот рабочий эксп 3.1
package im.expensive.functions.impl.combat;

import com.google.common.eventbus.Subscribe;
import com.mojang.authlib.GameProfile;

import im.expensive.events.EventPacket;
import im.expensive.events.EventUpdate;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.api.FunctionRegistry;
import io.netty.util.internal.ConcurrentSet;
import net.minecraft.client.network.play.NetworkPlayerInfo;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.server.SPlayerListItemPacket;

import java.util.*;

@FunctionRegister(name = "AntiBot", type = Category.Combat)
public class AntiBot extends Function {

private final Set<UUID> susPlayers = new ConcurrentSet<>();
private static final Map<UUID, Boolean> botsMap = new HashMap<>();

@Subscribe
private void onUpdate(EventUpdate e) {
for (UUID susPlayer : susPlayers) {
PlayerEntity entity = mc.world.getPlayerByUuid(susPlayer);

if (entity != null) {
//LoggerUtils.print("da: " + entity.getGameProfile().getName());

Iterator<ItemStack> armor = entity.getArmorInventoryList().iterator();

int count = 0;

while (armor.hasNext()) {
ItemStack current = armor.next();

if (!current.isEmpty()) {
count++;
}
}

boolean isFullArmor = count == 4;

count = 0;

for (NetworkPlayerInfo networkPlayerInfo : mc.player.connection.getPlayerInfoMap()) {
GameProfile profile = networkPlayerInfo.getGameProfile();

if (entity.getGameProfile().getName().equals(profile.getName())) {
count++;
}
}

boolean isBot = isFullArmor || !entity.getUniqueID().equals(PlayerEntity.getOfflineUUID(entity.getGameProfile().getName()));

botsMap.put(susPlayer, isBot);
}

susPlayers.remove(susPlayer);
}


if (mc.player.ticksExisted % 100 == 0) {
botsMap.keySet().removeIf(uuid -> mc.world.getPlayerByUuid(uuid) == null);
}
}

@Subscribe
private void onPacket(EventPacket e) {
if (e.getPacket() instanceof SPlayerListItemPacket p) {
if (p.getAction() == SPlayerListItemPacket.Action.ADD_PLAYER) {
for (SPlayerListItemPacket.AddPlayerData entry : p.getEntries()) {
GameProfile profile = entry.getProfile();

if (botsMap.containsKey(profile.getId()) || susPlayers.contains(profile.getId())) {
continue;
}

boolean isInvalid = profile.getProperties().isEmpty() && entry.getPing() != 0;

if (isInvalid) {
susPlayers.add(profile.getId());
}
}
}
}
}

public static boolean isBot(Entity entity) {
return entity instanceof PlayerEntity && botsMap.getOrDefault(entity.getUniqueID(), false);
}

public static boolean isBotU(Entity entity) {
if (!entity.getUniqueID().equals(PlayerEntity.getOfflineUUID(entity.getName().getString()))) {
return entity.isInvisible();
}
return false;
}

override
public void onDisable() {
super.onDisable();
botsMap.clear();
}
}

думаю вы не тупые чтобы поправить это
спс, но уже друга попросил написать
 
Сверху Снизу