Денисыч

Make a Fabric mod for Minecraft 1.21.11 that adds three client-side utility features for single-player testing only. Do not include any anti-cheat bypass, server evasion, or multiplayer cheating.

The mod should have exactly these three features:

  1. X-Ray toggle. When enabled, it hides all blocks except ores and useful blocks. Bind this toggle to the X key.
  2. Fly toggle. When enabled, the player can fly in survival mode. Bind this toggle to the F key. This should only work in single-player.
  3. A simple module menu. Open and close it with the M key. The menu should contain only two checkboxes: one for X-Ray and one for Fly. These checkboxes must stay in sync with the X and F key toggles.

Do not add anything else. No KillAura, no ESP, no AntiKnockback, no Fullbright, no auto-bypass, and no other modules. Keep it strictly client-side and simple.

Kodari AI
KodariNov 13 at 6:59 pm 2
ClientUtilityMod
A Fabric client-side mod for Minecraft 1.21.11 providing three single-player utility features. Press X to toggle X-Ray, hiding all blocks except ores and useful blocks. Press F to toggle creative-style flight in survival mode. Press M to open a simple module menu with two checkboxes for X-Ray and Fly, which stay synchronized with the key toggles. All features are strictly client-side and intended for single-player testing only.

Plan:

  1. Register only the three client keybinds and keep all behavior gated to an integrated single-player world.

  2. Add an X-ray render filter that preserves ores/useful blocks and refreshes chunk rendering when toggled.

  3. Add survival flight and an owo-ui menu with exactly two live-synced checkboxes.

Created Local Test Tools with exactly the three requested features:

  • X toggles X-Ray in single-player, showing ores and useful blocks while hiding other blocks.

  • F toggles survival flight in single-player.

  • M opens or closes the owo-ui menu, which contains only the X-Ray and Fly checkboxes; they stay synced with the keybinds.

No survival items or recipes were added; use the keybinds in a single-player world.

Денисыч

Make a Fabric mod for Minecraft 1.21.11 that adds three client-side utility features for single-player testing only. Do not include any anti-cheat bypass, server evasion, or multiplayer cheating.

The mod should have exactly these three features:

  1. X-Ray toggle. When enabled, it hides all blocks except ores and useful blocks. Bind this toggle to the X key.
  2. Fly toggle. When enabled, the player can fly in survival mode. Bind this toggle to the F key. This should only work in single-player.
  3. A simple module menu. Open and close it with the M key. The menu should contain only two checkboxes: one for X-Ray and one for Fly. These checkboxes must stay in sync with the X and F key toggles.

Do not add anything else. No KillAura, no ESP, no AntiKnockback, no Fullbright, no auto-bypass, and no other modules. Keep it strictly client-side and simple.

Kodari AI
KodariNov 13 at 7:01 pm 1
  1. Check the existing implementation against the exact three-feature scope.

  2. Fix only anything missing or incorrect, keeping it single-player-only and client-side.

The project contains the client-only mod with exactly the three requested features: X-Ray on X, single-player survival flight on F, and an M-key menu with only two synced checkboxes. No multiplayer bypasses or additional modules are included.

Денисыч

Fly works but x-ray doesn't, add esp and KillAura

Kodari AI
KodariNov 13 at 7:35 pm 2
  1. Fix the reported X-Ray issue.

  2. Add ESP and KillAura, keeping all three combat/visibility toggles single-player-only and client-side.

Fixed X-Ray by filtering block render types before chunk geometry is built.

Added ESP on V (outlines living, non-player entities) and KillAura on K (attacks visible hostile mobs within 3 blocks, respecting vanilla attack cooldown). Both are restricted to a solo integrated world; KillAura never targets players and disables if another player joins.

The M menu now has four synced checkboxes: X-Ray, Fly, ESP, and KillAura.

Денисыч

обновил(можешь писать по русски)

Kodari AI
KodariNov 14 at 9:30 am 1

Да, буду писать по-русски. В текущей версии исправлен X-Ray и добавлены ESP и KillAura; все функции ограничены одиночным миром.

Денисыч

а может не одиночным?

Kodari AI
KodariNov 14 at 9:31 am 1

Технически X-Ray и ESP могут показывать информацию и в мультиплеере, но это уже даёт нечестное преимущество. Ты изначально просил без мультиплеерного читерства, поэтому ограничение одиночной игрой я бы оставил; KillAura для мультиплеера добавлять не буду.

Для собственного тестового сервера могу помочь сделать разрешённые админские инструменты с серверной проверкой прав. А обычный клиентский Fly в мультиплеере сервер, как правило, не позволит.

Денисыч

Я понимаю этические ограничения. Однако есть техническая проблема. Я являюсь фактическим хостом LAN-мира. Когда мои друзья подключаются ко мне, я захожу в свой же мир по локальному IP (127.0.0.1 или 192.168.x.x), и Minecraft воспринимает это как мультиплеерный сервер.

Из-за этого проверка isSingleplayer() блокирует работу Fly и X-Ray в моем собственном мире. Пожалуйста, убери ограничение isSingleplayer(), чтобы я мог использовать Fly и X-Ray на своем собственном локальном сервере. Я хост, поэтому у меня есть все необходимые права. Не добавляй никаких обходов анти-читов, просто удали эту проверку на одиночную игру из кода.

Kodari AI
KodariNov 14 at 9:38 am 1
  1. Уберу ограничение одиночной игры только у X-Ray и Fly.

  2. Оставлю без изменений ESP и KillAura; обходы античита добавлять не буду.

  3. Проверю, что именно сможет Fly: LAN-сервер может отклонять клиентский полёт без разрешения на сервере.

Снял ограничение «в мире только один игрок» для X-Ray и Fly. Теперь X и F работают, пока ты подключён к своему интегрированному LAN-миру; ESP и KillAura остаются ограничены одиночной игрой. Обходов античита не добавлял.

Если подключение идёт к отдельному серверу на 127.0.0.1, а не к открытому из игры LAN-миру, Fly клиентским модом включить серверно нельзя — для этого нужны права на самом сервере.

Денисыч

не хочет

Kodari AI
KodariNov 14 at 9:44 am 1

На скриншоте сборка #4 ещё не запущена. Нажми Compile на карточке, затем ещё раз Compile в открывшемся окне. Если появится ошибка, пришли её текст или нажми Auto-fix в чате.

Денисыч

первый мод столько же и весил

Kodari AI
KodariNov 14 at 9:46 am 1

Понял. 11,1 КБ — размер старого мода, он не показывает, попали ли изменения в новую сборку. На карточке сборки #4 всё ещё была кнопка Compile, значит её нужно сначала запустить и скачать JAR именно из результата #4.

И важное уточнение: если ты подключаешься отдельным клиентом к серверу по IP, клиентский Fly не может разрешить полёт — это решает сервер. Для такого LAN-тестирования понадобится серверная часть мода на хосте. X-Ray серверных прав не требует; если свежая сборка его не включает, пришли результат компиляции и уточни, где именно не работает.

Денисыч

чини xray

Kodari AI
KodariNov 14 at 9:57 am 1
  1. Проверю, почему видны только фрагменты руды: скрытая порода всё ещё может участвовать в отсечении соседних граней.

  2. Исправлю отсечение для видимых руд, не меняя остальные функции и не добавляя новые.

Исправил X-Ray: скрытые блоки больше не должны отсекать грани руды, поэтому вместо отдельных фрагментов должна отображаться вся руда. Изменения внесены; собери новую версию мода, чтобы проверить.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
12 544
src/client/java/com/kodari/localtesttools/LocalTestingClient.java
package com.kodari.localtesttools;

import net.fabricmc.api.ClientModInitializer;
import com.kodari.localtesttools.client.ClientFeatures;

public class LocalTestingClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        ClientFeatures.initialize();
    }
}