- 13
- 8
Вот код которая сделала нейросеть а именно чит на java
Теперь не удивляйтесь если в пару тройков читов добавиться функция валлхак на игроков!
JavaScript:
// Killaura function
public void killAura(Entity entity) {
for (int i = 0; i < 360; i++) {
EntityPlayerSP player = Minecraft.getMinecraft().player;
player.rotationYaw = i;
player.rotationPitch = 0;
player.attackTargetEntityWithCurrentItem(entity);
}
}
// Wall hack function
public void wallHack() {
for (int x = -5; x < 5; x++) {
for (int y = -5; y < 5; y++) {
for (int z = -5; z < 5; z++) {
BlockPos pos = new BlockPos(Minecraft.getMinecraft().player.posX + x, Minecraft.getMinecraft().player.posY + y, Minecraft.getMinecraft().player.posZ + z);
IBlockState state = Minecraft.getMinecraft().world.getBlockState(pos);
Minecraft.getMinecraft().player.sendChatMessage("Found " + state.getBlock().getUnlocalizedName() + " at " + pos.toString());
}
}
}
}
// Enable all functions through chat command
public boolean onCommand(ICommandSender sender, Command command, String label, String[] args) {
if (command.getName().equalsIgnoreCase("cheat")) {
Minecraft.getMinecraft().player.sendChatMessage("Killaura and Wall Hack enabled!");
Entity entity = Minecraft.getMinecraft().objectMouseOver.entityHit;
if (entity != null) {
killAura(entity);
}
wallHack();
return true;
}
return false;
}