{"compilations":[{"id":151387,"sessionId":"KDR-202610-QKAKNDTZ","pluginName":"Bonita Client","success":true,"jarSize":54207,"compilationTimeMs":9304,"fileCount":3,"commitHash":"29221a611231958a929bd68fb933dcec5d646767","createdAt":"2026-10-23T14:16:02.575632","content":null},{"id":150956,"sessionId":"KDR-202610-QKAKNDTZ","pluginName":"Bonita Client","success":true,"jarSize":20651,"compilationTimeMs":8820,"fileCount":2,"commitHash":"1cde04670fe04c3f4792bfa9b7361307a80d75bf","createdAt":"2026-10-22T20:33:08.550211","content":null},{"id":150945,"sessionId":"KDR-202610-QKAKNDTZ","pluginName":"Bonita Client","success":true,"jarSize":13571,"compilationTimeMs":8813,"fileCount":2,"commitHash":"a39198d5796e0b7aed5612bd3e70227e81036c39","createdAt":"2026-10-22T20:16:57.384537","content":null},{"id":150783,"sessionId":"KDR-202610-QKAKNDTZ","pluginName":"Bonita Client","success":true,"jarSize":9046,"compilationTimeMs":8762,"fileCount":1,"commitHash":"3f35e910adbf2e56295c9cdfccc62c11395dc454","createdAt":"2026-10-22T15:34:17.367136","content":null},{"id":150774,"sessionId":"KDR-202610-QKAKNDTZ","pluginName":"Bonita Client","success":true,"jarSize":9046,"compilationTimeMs":8503,"fileCount":1,"commitHash":"7b32c4a4123633853c62ad1b223633371406a246","createdAt":"2026-10-22T15:22:25.787462","content":null}],"messages":[{"id":526836,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"---\n📎 Attached 1 file(s):\n\n### File: gemini-code-1792682049853.java\n```java\npackage com.client;\n\nimport net.fabricmc.api.ClientModInitializer;\nimport net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;\nimport net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;\nimport net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.font.TextRenderer;\nimport net.minecraft.client.gui.DrawContext;\nimport net.minecraft.client.gui.screen.Screen;\nimport net.minecraft.client.network.PlayerListEntry;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.render.*;\nimport net.minecraft.client.util.InputUtil;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.attribute.EntityAttributeModifier;\nimport net.minecraft.entity.attribute.EntityAttributes;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.text.Text;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.Vec3d;\nimport org.joml.Matrix4f;\nimport org.lwjgl.glfw.GLFW;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.FileWriter;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class FeatherClientMod implements ClientModInitializer {\n\n    public static final String MOD_ID = \"bonita_client\";\n    private static KeyBinding openMenuKey;\n    public static boolean isDestroyed = false; \n\n    public static String fakeModName = \"Bonita Client\";\n    public static String fakeModDesc = \"Modułowy klient PvP pod wersję 1.21.4\";\n\n    @Override\n    public void onInitializeClient() {\n        loadSettingsFromTxt();\n        ModuleManager.init();\n\n        openMenuKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(\n                \"Otwórz Menu Bonita Client\",\n                InputUtil.Type.KEYSYM,\n                GLFW.GLFW_KEY_RIGHT_SHIFT,\n                \"Bonita Client\"\n        ));\n\n        ClientTickEvents.END_CLIENT_TICK.register(client -> {\n            if (isDestroyed) return;\n\n            while (openMenuKey.wasPressed()) {\n                client.setScreen(new CombatMenuScreen());\n            }\n            \n            for (Module mod : ModuleManager.getModules()) {\n                mod.checkKeybind(client);\n                if (mod.isEnabled()) {\n                    mod.onTick(client);\n                }\n            }\n        });\n\n        WorldRenderEvents.LAST.register(context -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.world == null || mc.player == null) return;\n\n            MatrixStack matrices = context.matrixStack();\n            Vec3d camPos = context.camera().getPos();\n\n            for (Entity entity : mc.world.getEntities()) {\n                if (entity == mc.player || !(entity instanceof LivingEntity living)) continue;\n\n                double distToEntity = mc.player.distanceTo(entity);\n\n                // Tracers z limitem odległości i licznikiem metrów\n                if (TracersModule.INSTANCE != null && TracersModule.INSTANCE.isEnabled()) {\n                    if (distToEntity <= TracersModule.INSTANCE.maxDistance) {\n                        VertexConsumer consumer = context.consumers().getBuffer(RenderLayer.getLines());\n                        Vec3d start = new Vec3d(0, 0, 1).rotateX(-(float)Math.toRadians(context.camera().getPitch())).rotateY(-(float)Math.toRadians(context.camera().getYaw()));\n                        Vec3d end = entity.getPos().add(0, entity.getHeight() / 2.0, 0).subtract(camPos);\n\n                        WorldRenderer.drawEndpoint(matrices, consumer, (float) start.x, (float) start.y, (float) start.z, (float) end.x, (float) end.y, (float) end.z, 0.0f, 0.7f, 1.0f, 1.0f);\n\n                        matrices.push();\n                        Vec3d textPos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.1, 0);\n                        matrices.translate(textPos.x, textPos.y, textPos.z);\n                        matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                        matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                        String distText = String.format(\"§b%.1fm\", distToEntity);\n                        var tr = mc.textRenderer;\n                        int textW = tr.getWidth(distText);\n                        Matrix4f matrix = matrices.peek().getPositionMatrix();\n                        VertexConsumerProvider.Immediate vertexConsumers = mc.getBufferBuilders().getEntityVertexConsumers();\n                        tr.draw(distText, -textW / 2.0f, 0, 0xFFFFFFFF, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                        vertexConsumers.draw();\n                        matrices.pop();\n                    }\n                }\n\n                // NameTags PvP\n                if (NameTagsModule.INSTANCE != null && NameTagsModule.INSTANCE.isEnabled()) {\n                    matrices.push();\n                    Vec3d pos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.5, 0);\n                    matrices.translate(pos.x, pos.y, pos.z);\n                    matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                    matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                    int ping = 0;\n                    if (entity instanceof PlayerEntity player && mc.getNetworkHandler() != null) {\n                        PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(player.getUuid());\n                        if (entry != null) ping = entry.getLatency();\n                    }\n\n                    int dist = (int) distToEntity;\n                    float hp = (int) (living.getHealth() * 10) / 10.0f;\n                    float maxHp = (int) (living.getMaxHealth() * 10) / 10.0f;\n\n                    String nameLine = entity.getName().getString();\n                    String infoLine = String.format(\"§b[%dms] §c[%.1f/%.1f] §7[%dm]\", ping, hp, maxHp, dist);\n\n                    var tr = mc.textRenderer;\n                    int maxW = Math.max(tr.getWidth(nameLine), tr.getWidth(infoLine));\n\n                    Matrix4f matrix = matrices.peek().getPositionMatrix();\n                    VertexConsumerProvider.Immediate vertexConsumers = mc.getBufferBuilders().getEntityVertexConsumers();\n\n                    context.fill(-maxW / 2 - 4, -14, maxW / 2 + 4, 14, 0x88050B1A);\n                    tr.draw(nameLine, -tr.getWidth(nameLine) / 2.0f, -12, 0xFFFFFFFF, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                    tr.draw(infoLine, -tr.getWidth(infoLine) / 2.0f, -2, 0xFFAAAAAA, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n\n                    vertexConsumers.draw();\n                    matrices.pop();\n                }\n            }\n        });\n    }\n\n    public static void loadSettingsFromTxt() {\n        try {\n            File dir = new File(\"config/bonitaclient\");\n            if (!dir.exists()) dir.mkdirs();\n            File txtFile = new File(dir, \"settings.txt\");\n            if (!txtFile.exists()) {\n                FileWriter writer = new FileWriter(txtFile);\n                writer.write(\"modName=Bonita Client\\n\");\n                writer.write(\"mod\n```","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T15:20:49.392169","sequenceNumber":1},{"id":526837,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"<kodariProjectNamed>FeatherClientMod</kodariProjectNamed>\n<kodariProjectDescription>FeatherClientMod is a modular PvP client modification for Minecraft 1.21.4 built on Fabric. It provides an in-game menu accessible via Right Shift key, featuring modules like Tracers that draw lines to entities within a configurable distance, and NameTags PvP that displays player ping, health, and distance above entities. The mod loads settings from a text file, manages module keybinds, and renders custom overlays using the world render events.</kodariProjectDescription>1. Build a Fabric 1.21.4 client-mod scaffold from the supplied Bonita Client concept.\n2. Add the right-Shift module menu and working Tracers/Name Tags toggles.\n3. Use only API signatures verified against the mounted 1.21.4 source.<kodariApplyingPatches id=\"71ef7464-9b30-41ae-a1f1-8574b2a5efbd\" status=\"succeeded\"/><kodariPatchedFile id=\"71ef7464-9b30-41ae-a1f1-8574b2a5efbd\" status=\"succeeded\">settings.gradle</kodariPatchedFile><kodariPatchedFile id=\"71ef7464-9b30-41ae-a1f1-8574b2a5efbd\" status=\"succeeded\">gradle.properties</kodariPatchedFile><kodariPatchedFile id=\"71ef7464-9b30-41ae-a1f1-8574b2a5efbd\" status=\"succeeded\">build.gradle</kodariPatchedFile><kodariPatchedFile id=\"71ef7464-9b30-41ae-a1f1-8574b2a5efbd\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariPatchedFile><kodariPatchedFile id=\"71ef7464-9b30-41ae-a1f1-8574b2a5efbd\" status=\"succeeded\">src/main/resources/assets/bonita_client/lang/en_us.json</kodariPatchedFile><kodariPatchedFile id=\"71ef7464-9b30-41ae-a1f1-8574b2a5efbd\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariPatchedFile>Created the Fabric 1.21.4 client mod scaffold. Press **Right Shift** to open the menu and toggle **Tracers** (up to 64 blocks) and **Name Tags** (ping, health, and distance). Both are off by default.","tokensUsed":89164,"creditsCharged":3.0,"metadata":{},"createdAt":"2026-10-22T15:20:49.39293","sequenceNumber":2},{"id":526866,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"ej nie dziala mod masz w zrodle plik z logiem odpalanie minecraft","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T15:33:49.321365","sequenceNumber":3},{"id":526867,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"<kodariReadingFiles id=\"8d58fca1-ebc6-438d-bb82-979949d9ccb8\" status=\"succeeded\"/><kodariReadFile id=\"8d58fca1-ebc6-438d-bb82-979949d9ccb8\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariReadFile><kodariReadFile id=\"8d58fca1-ebc6-438d-bb82-979949d9ccb8\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariReadFile><kodariReadFile id=\"8d58fca1-ebc6-438d-bb82-979949d9ccb8\" status=\"succeeded\">latest.log</kodariReadFile>W logu nie ma awarii Bonita: Fabric wykrywa `bonita_client`, ale wpis `Hello Fabric world!` nie występuje w aktualnym kodzie moda. To wskazuje, że Fire Client uruchamia starą wersję pliku JAR albo inną instancję gry. Wyjątek z linii 222–229 dotyczy osobnego moda **Health Indicators**, nie Bonita.\n\nZbuduj aktualny projekt przez **Compile → Compile → Download**, podmień stary JAR w folderze `mods` instancji Fire Client `test` i uruchom ją ponownie. Po wejściu do gry naciśnij **Right Shift** i włącz moduły — domyślnie są wyłączone. Nie zmieniłem kodu, bo ten log nie wskazuje na błąd w aktualnym źródle Bonita.","tokensUsed":11767,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T15:33:49.32191","sequenceNumber":4},{"id":526886,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"znowu sie nie odpala","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T15:37:40.559308","sequenceNumber":5},{"id":526887,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"Sprawdziłem aktualny `latest.log`: **Bonita jest wykryty przez Fabric i nie ma w logu błędu, który wskazywałby, że to on blokuje uruchomienie**. Jedyny wyjątek dotyczy osobnego moda **Health Indicators** — brakuje mu `config/healthindicators.json`. Log pokazuje jednak dalsze uruchamianie gry po tym wyjątku.\n\nWygląda na to, że dostępny log nie pochodzi z tej nieudanej próby albo nie zawiera jej końcówki. Po ponownej próbie uruchomienia podeślij świeży `latest.log` albo plik z folderu `crash-reports` — wtedy będzie można ustalić, co faktycznie zatrzymuje start.","tokensUsed":6483,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T15:37:40.559725","sequenceNumber":6},{"id":526914,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"czy ten mod zadziala bez  innych modow","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T15:46:04.999324","sequenceNumber":7},{"id":526915,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"<kodariReadingFiles id=\"5204cf81-901a-476b-8e33-f65bcb83a6f2\" status=\"succeeded\"/><kodariReadFile id=\"5204cf81-901a-476b-8e33-f65bcb83a6f2\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariReadFile><kodariReadFile id=\"5204cf81-901a-476b-8e33-f65bcb83a6f2\" status=\"succeeded\">build.gradle</kodariReadFile>Nie całkiem. Mod nie wymaga **Health Indicators** ani innych modów funkcjonalnych, ale wymaga **Fabric Loader** i **Fabric API** — są zadeklarowane jako zależności. Działa na **Minecraft Java 1.21.4** z Javą 21 lub nowszą.\n\nCzyli: czysty Minecraft bez Fabric API nie wystarczy; pozostałe mody są opcjonalne.","tokensUsed":1200,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T15:46:04.999752","sequenceNumber":8},{"id":526968,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"nowa wersja moda\n\n---\n📎 Attached 1 file(s):\n\n### File: gemini-code-1792684234952.java\n```java\npackage com.client;\n\nimport net.fabricmc.api.ClientModInitializer;\nimport net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;\nimport net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;\nimport net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;\nimport net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.font.TextRenderer;\nimport net.minecraft.client.gui.DrawContext;\nimport net.minecraft.client.gui.screen.Screen;\nimport net.minecraft.client.network.PlayerListEntry;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.render.*;\nimport net.minecraft.client.util.InputUtil;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.entity.EquipmentSlot;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.attribute.EntityAttributeModifier;\nimport net.minecraft.entity.attribute.EntityAttributes;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.item.ItemStack;\nimport net.minecraft.text.Text;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport org.joml.Matrix4f;\nimport org.lwjgl.glfw.GLFW;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.FileWriter;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class FeatherClientMod implements ClientModInitializer {\n\n    public static final String MOD_ID = \"bonita_client\";\n    private static KeyBinding openMenuKey;\n    public static boolean isDestroyed = false; \n\n    public static String fakeModName = \"Bonita Client\";\n    public static String fakeModDesc = \"Modułowy klient PvP pod wersję 1.21.4\";\n\n    @Override\n    public void onInitializeClient() {\n        loadSettingsFromTxt();\n        ModuleManager.init();\n\n        openMenuKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(\n                \"Otwórz Menu Bonita Client\",\n                InputUtil.Type.KEYSYM,\n                GLFW.GLFW_KEY_RIGHT_SHIFT,\n                \"Bonita Client\"\n        ));\n\n        ClientTickEvents.END_CLIENT_TICK.register(client -> {\n            if (isDestroyed) return;\n\n            while (openMenuKey.wasPressed()) {\n                client.setScreen(new ClientMenuScreen());\n            }\n            CPSTracker.onTick();\n            \n            for (Module mod : ModuleManager.getModules()) {\n                mod.checkKeybind(client);\n                if (mod.isEnabled()) {\n                    mod.onTick(client);\n                }\n            }\n        });\n\n        HudRenderCallback.EVENT.register((context, tickCounter) -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.currentScreen instanceof ClientMenuScreen) return;\n\n            float delta = tickCounter.getTickDelta(false);\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.isEnabled() && mod instanceof DraggableHudModule hud) {\n                    hud.onRender2D(context, delta);\n                }\n            }\n        });\n\n        WorldRenderEvents.LAST.register(context -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.world == null || mc.player == null) return;\n\n            MatrixStack matrices = context.matrixStack();\n            Vec3d camPos = context.camera().getPos();\n\n            for (Entity entity : mc.world.getEntities()) {\n                if (entity == mc.player || !(entity instanceof LivingEntity living)) continue;\n\n                double distToEntity = mc.player.distanceTo(entity);\n\n                // Tracers z limitem odległości i licznikiem metrów\n                if (TracersModule.INSTANCE != null && TracersModule.INSTANCE.isEnabled()) {\n                    if (distToEntity <= TracersModule.INSTANCE.maxDistance) {\n                        VertexConsumer consumer = context.consumers().getBuffer(RenderLayer.getLines());\n                        Vec3d start = new Vec3d(0, 0, 1).rotateX(-(float)Math.toRadians(context.camera().getPitch())).rotateY(-(float)Math.toRadians(context.camera().getYaw()));\n                        Vec3d end = entity.getPos().add(0, entity.getHeight() / 2.0, 0).subtract(camPos);\n\n                        float r = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentRed : 0.0f;\n                        float g = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentGreen : 0.7f;\n                        float b = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentBlue : 1.0f;\n\n                        WorldRenderer.drawEndpoint(matrices, consumer, (float) start.x, (float) start.y, (float) start.z, (float) end.x, (float) end.y, (float) end.z, r, g, b, 1.0f);\n\n                        matrices.push();\n                        Vec3d textPos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.1, 0);\n                        matrices.translate(textPos.x, textPos.y, textPos.z);\n                        matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                        matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                        String distText = String.format(\"§b%.1fm\", distToEntity);\n                        var tr = mc.textRenderer;\n                        int textW = tr.getWidth(distText);\n                        Matrix4f matrix = matrices.peek().getPositionMatrix();\n                        VertexConsumerProvider.Immediate vertexConsumers = mc.getBufferBuilders().getEntityVertexConsumers();\n                        tr.draw(distText, -textW / 2.0f, 0, 0xFFFFFFFF, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                        vertexConsumers.draw();\n                        matrices.pop();\n                    }\n                }\n\n                // NameTags PvP\n                if (NameTagsModule.INSTANCE != null && NameTagsModule.INSTANCE.isEnabled()) {\n                    matrices.push();\n                    Vec3d pos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.5, 0);\n                    matrices.translate(pos.x, pos.y, pos.z);\n                    matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                    matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                    int ping = 0;\n                    if (entity instanceof PlayerEntity player && mc.getNetworkHandler() != null) {\n                        PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(player.getUuid());\n                        if (entry != null) ping = entry.getLatency();\n                    }\n\n                    int dist = (int) distToEntity;\n                    float hp = (int) (living.getHealth() * 10) / 10.0f;\n                    float maxHp = (int) (living.getMaxHealth() * 10) / 10.0f;\n\n                    String nameLine = entity.getName().getString();\n                    String infoLine = String.format(\"§b[%dms] §c[%.1f/%.1f] §7[%dm]\", ping, hp, maxHp, dist);\n\n                    var tr = mc.textRenderer;\n                    int maxW = Math.max(tr.getWidth(nameLine), tr.getWidth(infoLine));\n\n                    Matrix4f matrix = matrices.peek().getPositionMatrix();\n                    VertexConsumerProvider.Immediate vertexConsumers = mc.getBufferBuilders().getEntityVertexConsumers();\n\n                    context.fill(-maxW / 2 - 4, -14, maxW / 2 + 4, 14, 0x88050B1A);\n                    tr.draw(nameLine, -tr.getWidth(nameLine) / 2.0f, -12, 0xFFFFFFFF, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                    tr.draw(infoLine, -tr.getWidth(infoLine) / 2.0f, -2, 0xFFAAAAAA, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n\n                    vertexConsumers.draw();\n                    matrices.pop();\n                }\n            }\n        });\n    }\n\n    public static void loadSettingsFromTxt() {\n        try {\n            File dir = new File(\"config/bonitaclient\");\n            if (!dir.exists()) dir.mkdirs();\n            File txtFile = new File(dir, \"settings.txt\");\n            if (!txtFile.exists()) {\n                FileWriter writer = new FileWriter(txtFile);\n                writer.write(\"modName=Bonita Client\\n\");\n                writer.write(\"modDesc=Modułowy klient PvP pod wersję 1.21.4\\n\");\n                writer.close();\n            } else {\n                BufferedReader reader = new BufferedReader(new FileReader(txtFile));\n                String line;\n                while ((line = reader.readLine()) != null) {\n                    if (line.startsWith(\"modName=\")) {\n                        fakeModName = line.substring(\"modName=\".length()).trim();\n                    } else if (line.startsWith(\"modDesc=\")) {\n                        fakeModDesc = line.substring(\"modDesc=\".length()).trim();\n                    }\n                }\n                reader.close();\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    public static class CPSTracker {\n        private static final List<Long> leftClicks = new ArrayList<>();\n        private static final List<Long> rightClicks = new ArrayList<>();\n        private static boolean wasLeftPressed = false;\n        private static boolean wasRightPressed = false;\n\n        public static void onTick() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            long now = System.currentTimeMillis();\n\n            boolean left = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean right = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            if (left && !wasLeftPressed) leftClicks.add(now);\n            if (right && !wasRightPressed) rightClicks.add(now);\n\n            wasLeftPressed = left;\n            wasRightPressed = right;\n\n            leftClicks.removeIf(t -> now - t > 1000L);\n            rightClicks.removeIf(t -> now - t > 1000L);\n        }\n\n        public static int getLeftCPS() { return leftClicks.size(); }\n        public static int getRightCPS() { return rightClicks.size(); }\n    }\n\n    public enum ModuleCategory {\n        HUD(\"HUD & Ekran\"),\n        COMBAT(\"Combat / Cheats\"),\n        RENDER(\"Visuals & Motyw\");\n\n        public final String displayName;\n        ModuleCategory(String displayName) { this.displayName = displayName; }\n    }\n\n    public static abstract class Module {\n        private final String name;\n        private final String description;\n        private final ModuleCategory category;\n        private boolean enabled;\n        public int keyCode = GLFW.GLFW_KEY_UNKNOWN;\n\n        public Module(String name, String description, ModuleCategory category) {\n            this.name = name;\n            this.description = description;\n            this.category = category;\n            this.enabled = false;\n        }\n\n        public void toggle() {\n            this.enabled = !this.enabled;\n            if (this.enabled) onEnable(); else onDisable();\n        }\n\n        private boolean wasKeyPressed = false;\n        public void checkKeybind(MinecraftClient client) {\n            if (keyCode == GLFW.GLFW_KEY_UNKNOWN || client.currentScreen != null) return;\n            boolean pressed = InputUtil.isKeyPressed(client.getWindow().getHandle(), keyCode);\n            if (pressed && !wasKeyPressed) {\n                toggle();\n            }\n            wasKeyPressed = pressed;\n        }\n\n        public void onEnable() {}\n        public void onDisable() {}\n        public void onTick(MinecraftClient client) {}\n        public void onRender2D(DrawContext context, float tickDelta) {}\n\n        public String getName() { return name; }\n        public String getDescription() { return description; }\n        public ModuleCategory getCategory() { return category; }\n        public boolean isEnabled() { return enabled; }\n    }\n\n    public static abstract class DraggableHudModule extends Module {\n        public int x, y, width, height;\n\n        public DraggableHudModule(String name, String description, int defaultX, int defaultY, int width, int height) {\n            super(name, description, ModuleCategory.HUD);\n            this.x = defaultX;\n            this.y = defaultY;\n            this.width = width;\n            this.height = height;\n        }\n\n        public boolean isHovered(double mouseX, double mouseY) {\n            return mouseX >= x && mouseX <= x + width && mouseY >= y && mouseY <= y + height;\n        }\n    }\n\n    public static class ModuleManager {\n        private static final List<Module> modules = new ArrayList<>();\n\n        public static void init() {\n            // HUD Modules\n            modules.add(new LogoHudModule());\n            modules.add(new KeystrokesModule());\n            modules.add(new ArmorStatusModule());\n            modules.add(new FpsPingHudModule());\n            modules.add(new CoordinatesModule());\n\n            // Combat Modules\n            modules.add(new NameTagsModule());\n            modules.add(new TracersModule());\n            modules.add(new FreecamModule());\n            modules.add(new ReachModule());\n            modules.add(new NoPushModule());\n            modules.add(new DestroyModule());\n\n            // Render / Theme\n            modules.add(new ThemeEditorModule());\n        }\n\n        public static List<Module> getModules() { return modules; }\n\n        public static List<DraggableHudModule> getHudModules() {\n            List<DraggableHudModule> list = new ArrayList<>();\n            for (Module m : modules) {\n                if (m instanceof DraggableHudModule hud) list.add(hud);\n            }\n            return list;\n        }\n    }\n\n    // =========================================================================\n    // MODUŁY HUD\n    // =========================================================================\n\n    public static class LogoHudModule extends DraggableHudModule {\n        public static LogoHudModule INSTANCE;\n        public static final Identifier LOGO_TEXTURE = Identifier.of(MOD_ID, \"textures/gui/logo.png\");\n\n        public LogoHudModule() {\n            super(\"Logo Watermark\", \"Graficzne logo Bonita Client na ekranie\", 12, 12, 165, 44);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var tr = mc.textRenderer;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.fill(x, y, x + 3, y + height, accent);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            context.drawTexture(RenderLayer::getGuiTextured, LOGO_TEXTURE, x + 6, y + 2, 0.0f, 0.0f, 40, 40, 40, 40);\n            context.drawText(tr, \"§b§lBONITA §f§lCLIENT\", x + 52, y + 9, 0xFFFFFFFF, true);\n            context.drawText(tr, \"§7FPS: §b\" + mc.getCurrentFps() + \" §8| §71.21.4\", x + 52, y + 23, 0xFFAAAAAA, false);\n        }\n    }\n\n    public static class KeystrokesModule extends DraggableHudModule {\n        public KeystrokesModule() {\n            super(\"Keystrokes & CPS\", \"Klawisze WASD, Spacja oraz licznik kliknięć CPS\", 12, 115, 78, 96);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var opt = mc.options;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            drawKey(context, \"W\", x + 26, y, 24, 22, opt.forwardKey.isPressed(), accent);\n            drawKey(context, \"A\", x, y + 24, 24, 22, opt.leftKey.isPressed(), accent);\n            drawKey(context, \"S\", x + 26, y + 24, 24, 22, opt.backKey.isPressed(), accent);\n            drawKey(context, \"D\", x + 52, y + 24, 24, 22, opt.rightKey.isPressed(), accent);\n\n            boolean lmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean rmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            drawKey(context, CPSTracker.getLeftCPS() + \" CPS\", x, y + 48, 37, 22, lmb, accent);\n            drawKey(context, CPSTracker.getRightCPS() + \" CPS\", x + 39, y + 48, 37, 22, rmb, accent);\n            drawKey(context, \"───\", x, y + 72, 76, 18, opt.jumpKey.isPressed(), accent);\n        }\n\n        private void drawKey(DrawContext ctx, String label, int kx, int ky, int kw, int kh, boolean pressed, int accentColor) {\n            ctx.fill(kx, ky, kx + kw, ky + kh, pressed ? accentColor : 0xAA081026);\n            ctx.drawBorder(kx, ky, kw, kh, accentColor & 0x77FFFFFF);\n            var tr = MinecraftClient.getInstance().textRenderer;\n            ctx.drawCenteredTextWithShadow(tr, label, kx + kw / 2, ky + (kh - 8) / 2, pressed ? 0xFF000000 : 0xFFFFFFFF);\n        }\n    }\n\n    public static class ArmorStatusModule extends DraggableHudModule {\n        public ArmorStatusModule() {\n            super(\"Armor Status\", \"Pokazuje wytrzymałość założonej zbroi obok paska\", 12, 220, 65, 76);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n\n            EquipmentSlot[] slots = {EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET};\n            int offsetY = 0;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0x80081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            for (EquipmentSlot slot : slots) {\n                ItemStack stack = mc.player.getEquippedStack(slot);\n                if (!stack.isEmpty()) {\n                    context.drawItem(stack, x + 4, y + offsetY + 2);\n                    if (stack.isDamageable()) {\n                        int max = stack.getMaxDamage();\n                        int cur = max - stack.getDamage();\n                        int pct = (int) ((cur / (float) max) * 100);\n                        int color = pct > 50 ? 0xFF55FF55 : (pct > 20 ? 0xFFFFAA00 : 0xFFFF5555);\n                        context.drawText(mc.textRenderer, pct + \"%\", x + 24, y + offsetY + 6, color, true);\n                    }\n                }\n                offsetY += 18;\n            }\n        }\n    }\n\n    public static class FpsPingHudModule extends DraggableHudModule {\n        public FpsPingHudModule() {\n            super(\"FPS & Ping\", \"Wyświetla aktualne FPS, Ping oraz CPS w kafelku\", 190, 12, 115, 24);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            int fps = mc.getCurrentFps();\n            int ping = 0;\n            if (mc.getNetworkHandler() != null && mc.player != null) {\n                PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(mc.player.getUuid());\n                if (entry != null) ping = entry.getLatency();\n            }\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent);\n            context.drawCenteredTextWithShadow(mc.textRenderer, \"§b\" + fps + \" FPS §8| §a\" + ping + \" ms\", x + width / 2, y + 8, 0xFFFFFF);\n        }\n    }\n\n    public static class CoordinatesModule extends DraggableHudModule {\n        public CoordinatesModule() {\n            super(\"Coordinates\", \"Pokazuje współrzędne X, Y, Z oraz kierunek świata\", 190, 42, 135, 36);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            String coords = String.format(\"§bX: §f%.0f §bY: §f%.0f §bZ: §f%.0f\", mc.player.getX(), mc.player.getY(), mc.player.getZ());\n            String dir = \"§7Kierunek: §f\" + mc.player.getHorizontalFacing().asString().toUpperCase();\n\n            context.drawText(mc.textRenderer, coords, x + 6, y + 7, 0xFFFFFF, true);\n            context.drawText(mc.textRenderer, dir, x + 6, y + 20, 0xAAAAAA, false);\n        }\n    }\n\n    // =========================================================================\n    // MODUŁY RENDER I THEME EDITOR\n    // =========================================================================\n\n    public static class ThemeEditorModule extends Module {\n        public static ThemeEditorModule INSTANCE;\n\n        public float accentRed = 0.0f;\n        public float accentGreen = 0.7f;\n        public float accentBlue = 1.0f;\n        public int guiAlpha = 242;\n\n        public ThemeEditorModule() {\n            super(\"Theme Editor\", \"Konfiguracja kolorów i przezroczystości (%) menu\", ModuleCategory.RENDER);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        public int getAccentColor() {\n            int r = (int)(accentRed * 255);\n            int g = (int)(accentGreen * 255);\n            int b = (int)(accentBlue * 255);\n            return (0xFF << 24) | (r << 16) | (g << 8) | b;\n        }\n\n        public int getBackgroundColor() {\n            return (guiAlpha << 24) | 0x081026;\n        }\n    }\n\n    // =========================================================================\n    // MODUŁY COMBAT / CHEATS\n    // =========================================================================\n\n    public static class DestroyModule extends Module {\n        public DestroyModule() {\n            super(\"Destroy (Self-Destruct)\", \"Wyłącza mod i zmienia nazwę na Sodium Extra\", ModuleCategory.COMBAT);\n        }\n\n        @Override\n        public void onEnable() {\n            for (Module m : ModuleManager.getModules()) {\n                if (m.isEnabled() && m != this) {\n                    m.toggle();\n                }\n            }\n            isDestroyed = true;\n            fakeModName = \"Sodium Extra\";\n            fakeModDesc = \"Optimized rendering engine for Minecraft\";\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                mc.player.sendMessage(Text.literal(\"§b[Sodium Extra] Zaktualizowano pomyślnie.\"), false);\n            }\n            if (mc.currentScreen != null) {\n                mc.setScreen(null);\n            }\n        }\n    }\n\n    public static class NameTagsModule extends Module {\n        public static NameTagsModule INSTANCE;\n\n        public NameTagsModule() {\n            super(\"NameTags\", \"Wyświetla HP, ping i dystans nad graczami\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n            this.toggle();\n        }\n    }\n\n    public static class TracersModule extends Module {\n        public static TracersModule INSTANCE;\n        public double maxDistance = 120.0;\n\n        public TracersModule() {\n            super(\"Tracers\", \"Rysuje linie 3D i dystans do graczy\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n    }\n\n    public static class FreecamModule extends Module {\n        public static FreecamModule INSTANCE;\n        public float speed = 0.8f;\n        public Vec3d savedPos;\n        public Vec3d camPos = Vec3d.ZERO;\n        private static final Identifier FREECAM_ID = Identifier.of(MOD_ID, \"freecam_reach\");\n\n        public FreecamModule() {\n            super(\"Freecam\", \"Swobodna kamera z możliwością interakcji\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onEnable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                savedPos = mc.player.getPos();\n                camPos = savedPos;\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                if (savedPos != null) {\n                    mc.player.setPosition(savedPos);\n                    mc.player.setVelocity(Vec3d.ZERO);\n                }\n                mc.player.noClip = false;\n                var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n                if (reach != null) reach.removeModifier(FREECAM_ID);\n            }\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null || savedPos == null) return;\n\n            float yaw = mc.player.getYaw();\n            float pitch = mc.player.getPitch();\n            Vec3d forward = Vec3d.fromPolar(pitch, yaw);\n            Vec3d right = Vec3d.fromPolar(0, yaw + 90);\n            Vec3d motion = Vec3d.ZERO;\n\n            if (mc.options.forwardKey.isPressed()) motion = motion.add(forward);\n            if (mc.options.backKey.isPressed()) motion = motion.subtract(forward);\n            if (mc.options.rightKey.isPressed()) motion = motion.add(right);\n            if (mc.options.leftKey.isPressed()) motion = motion.subtract(right);\n            if (mc.options.jumpKey.isPressed()) motion = motion.add(0, 1, 0);\n            if (mc.options.sneakKey.isPressed()) motion = motion.subtract(0, 1, 0);\n\n            if (motion.lengthSquared() > 0) motion = motion.normalize().multiply(speed);\n            camPos = camPos.add(motion);\n\n            mc.player.noClip = true;\n            mc.player.setPosition(camPos);\n            mc.player.setVelocity(Vec3d.ZERO);\n            mc.player.fallDistance = 0.0f;\n            mc.player.setOnGround(true);\n\n            var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (reach != null) {\n                reach.removeModifier(FREECAM_ID);\n                reach.addTemporaryModifier(new EntityAttributeModifier(FREECAM_ID, 6.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n    }\n\n    public static class ReachModule extends Module {\n        public static ReachModule INSTANCE;\n        public double reachDistance = 4.5;\n        private static final Identifier REACH_ID = Identifier.of(MOD_ID, \"reach_boost\");\n\n        public ReachModule() {\n            super(\"Reach\", \"Zwiększa zasięg bicia graczy\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) {\n                instance.removeModifier(REACH_ID);\n                instance.addTemporaryModifier(new EntityAttributeModifier(REACH_ID, reachDistance - 3.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) instance.removeModifier(REACH_ID);\n        }\n    }\n\n    public static class NoPushModule extends Module {\n        public static NoPushModule INSTANCE;\n\n        public NoPushModule() {\n            super(\"NoPush\", \"Blokuje odpychanie przez graczy i wodę\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player != null) mc.player.pushSpeedReduction = 1.0f;\n        }\n    }\n\n    // =========================================================================\n    // EKRAN USTAWIEN MODUŁU (PPM NA KAFELEK)\n    // =========================================================================\n\n    public static class ModuleSettingsScreen extends Screen {\n        private final Screen parent;\n        private final Module module;\n        private boolean waitingForKey = false;\n        private int activeSlider = -1;\n\n        public ModuleSettingsScreen(Screen parent, Module module) {\n            super(Text.literal(\"Ustawienia: \" + module.getName()));\n            this.parent = parent;\n            this.module = module;\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, 0x85050B1A);\n\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2;\n            int winY = (height - winH) / 2;\n\n            context.fill(winX, winY, winX + winW, winY + winH, bgCol);\n            context.drawBorder(winX, winY, winW, winH, accentCol);\n\n            context.drawText(textRenderer, \"§b§lUSTAWIENIA MODUŁU\", winX + 16, winY + 16, 0xFFFFFFFF, true);\n            context.drawText(textRenderer, \"§7\" + module.getName() + \" - \" + module.getDescription(), winX + 16, winY + 30, 0x888888, false);\n\n            int startY = winY + 56;\n\n            context.drawText(textRenderer, \"Skrót klawiszowy (Bind):\", winX + 20, startY + 4, 0xFFFFFF, false);\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            boolean hoverBind = mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH;\n            context.fill(bindBtnX, bindBtnY, bindBtnX + bindBtnW, bindBtnY + bindBtnH, hoverBind ? accentCol : 0xFF0A192F);\n            String keyName = waitingForKey ? \"§eNaciśnij klawisz...\" : (module.keyCode == GLFW.GLFW_KEY_UNKNOWN ? \"Brak\" : InputUtil.fromGlfwCode(module.keyCode, 0).getLocalizedText().getString().toUpperCase());\n            context.drawCenteredTextWithShadow(textRenderer, keyName, bindBtnX + bindBtnW / 2, bindBtnY + 6, 0xFFFFFF);\n\n            startY += 32;\n\n            if (module instanceof ThemeEditorModule theme) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Czerwony (R)\", theme.accentRed * 255.0f, 0.0, 255.0, 0);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Zielony (G)\", theme.accentGreen * 255.0f, 0.0, 255.0, 1);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Niebieski (B)\", theme.accentBlue * 255.0f, 0.0, 255.0, 2);\n                startY += 32;\n                float alphaPct = (theme.guiAlpha / 255.0f) * 100.0f;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Przezroczystość menu (%)\", alphaPct, 20.0, 100.0, 3);\n            } else if (module instanceof TracersModule tracers) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Max Dystans Tracerów (m)\", tracers.maxDistance, 20.0, 250.0, 0);\n            } else if (module instanceof ReachModule r) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Zasięg bicia (Reach)\", r.reachDistance, 3.0, 6.0, 0);\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            boolean hoverBack = mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH;\n            context.fill(backBtnX, backBtnY, backBtnX + backBtnW, backBtnY + backBtnH, hoverBack ? accentCol : 0xFF0A192F);\n            context.drawBorder(backBtnX, backBtnY, backBtnW, backBtnH, accentCol);\n            context.drawCenteredTextWithShadow(textRenderer, \"§f§lZapisz i Wróć\", backBtnX + backBtnW / 2, backBtnY + 9, 0xFFFFFF);\n        }\n\n        private void drawSlider(DrawContext ctx, double mouseX\n```","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T16:00:59.213816","sequenceNumber":9},{"id":526969,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"<kodariReadingFiles id=\"e4460d50-54b5-4e3a-aace-9b76f47e0865\" status=\"succeeded\"/><kodariReadFile id=\"e4460d50-54b5-4e3a-aace-9b76f47e0865\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariReadFile><kodariReadFile id=\"e4460d50-54b5-4e3a-aace-9b76f47e0865\" status=\"succeeded\">src/main/resources/assets/bonita_client/lang/en_us.json</kodariReadFile><kodariReadFile id=\"e4460d50-54b5-4e3a-aace-9b76f47e0865\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariReadFile>Plan nowej wersji: dodać HUD z CPS/klawiszami, zbroją, FPS/pingiem i koordynatami; zostawić działające Tracers/Name Tags; nie dodawać Freecam/Reach/NoPush ani podszywania się pod inny mod. Załączony kod urywa się w środku ekranu ustawień, więc oprę aktualizację na widocznych funkcjach.<kodariApplyingPatches id=\"f2b61983-112c-4250-b833-861992da5cb6\" status=\"succeeded\"/><kodariPatchedFile id=\"f2b61983-112c-4250-b833-861992da5cb6\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariPatchedFile><kodariPatchedFile id=\"f2b61983-112c-4250-b833-861992da5cb6\" status=\"succeeded\">src/main/resources/assets/bonita_client/lang/en_us.json</kodariPatchedFile><kodariPatchedFile id=\"f2b61983-112c-4250-b833-861992da5cb6\" status=\"succeeded\">src/main/java/com/client/BonitaHudClient.java</kodariPatchedFile>Dodałem HUD z CPS i klawiszami, statusem zbroi, FPS/pingiem oraz koordynatami. **H** włącza lub wyłącza HUD; **Right Shift** nadal otwiera menu z Tracers i Name Tags.\n\nZałączony kod urywa się w ekranie ustawień, więc nie odtwarzałem brakującej części. Nie dodałem też Freecam, Reach, NoPush ani podszywania się pod inny mod.","tokensUsed":68175,"creditsCharged":2.0,"metadata":{},"createdAt":"2026-10-22T16:00:59.215003","sequenceNumber":10},{"id":527682,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"a dodasz to czy nie\n\n---\n📎 Attached 1 file(s):\n\n### File: gemini-code-1792700354442.java\n```java\npackage com.client;\n\nimport net.fabricmc.api.ClientModInitializer;\nimport net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;\nimport net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;\nimport net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;\nimport net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.font.TextRenderer;\nimport net.minecraft.client.gui.DrawContext;\nimport net.minecraft.client.gui.screen.Screen;\nimport net.minecraft.client.network.PlayerListEntry;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.render.*;\nimport net.minecraft.client.util.InputUtil;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.entity.EquipmentSlot;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.attribute.EntityAttributeModifier;\nimport net.minecraft.entity.attribute.EntityAttributes;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.item.ItemStack;\nimport net.minecraft.text.Text;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport org.joml.Matrix4f;\nimport org.lwjgl.glfw.GLFW;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.FileWriter;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class FeatherClientMod implements ClientModInitializer {\n\n    public static final String MOD_ID = \"bonita_client\";\n    private static KeyBinding openMenuKey;\n    public static boolean isDestroyed = false; \n\n    public static String fakeModName = \"Bonita Client\";\n    public static String fakeModDesc = \"Modułowy klient PvP pod wersję 1.21.4\";\n\n    @Override\n    public void onInitializeClient() {\n        loadSettingsFromTxt();\n        ModuleManager.init();\n\n        openMenuKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(\n                \"Otwórz Menu Bonita Client\",\n                InputUtil.Type.KEYSYM,\n                GLFW.GLFW_KEY_RIGHT_SHIFT,\n                \"Bonita Client\"\n        ));\n\n        ClientTickEvents.END_CLIENT_TICK.register(client -> {\n            if (isDestroyed) return;\n\n            while (openMenuKey.wasPressed()) {\n                client.setScreen(new ClientMenuScreen());\n            }\n            CPSTracker.onTick();\n            \n            for (Module mod : ModuleManager.getModules()) {\n                mod.checkKeybind(client);\n                if (mod.isEnabled()) {\n                    mod.onTick(client);\n                }\n            }\n        });\n\n        HudRenderCallback.EVENT.register((context, tickCounter) -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.currentScreen instanceof ClientMenuScreen) return;\n\n            float delta = tickCounter.getTickDelta(false);\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.isEnabled() && mod instanceof DraggableHudModule hud) {\n                    hud.onRender2D(context, delta);\n                }\n            }\n        });\n\n        WorldRenderEvents.LAST.register(context -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.world == null || mc.player == null) return;\n\n            MatrixStack matrices = context.matrixStack();\n            Vec3d camPos = context.camera().getPos();\n\n            for (Entity entity : mc.world.getEntities()) {\n                if (entity == mc.player || !(entity instanceof LivingEntity living)) continue;\n\n                double distToEntity = mc.player.distanceTo(entity);\n\n                // Tracers z limitem odległości i licznikiem metrów\n                if (TracersModule.INSTANCE != null && TracersModule.INSTANCE.isEnabled()) {\n                    if (distToEntity <= TracersModule.INSTANCE.maxDistance) {\n                        VertexConsumer consumer = context.consumers().getBuffer(RenderLayer.getLines());\n                        Vec3d start = new Vec3d(0, 0, 1).rotateX(-(float)Math.toRadians(context.camera().getPitch())).rotateY(-(float)Math.toRadians(context.camera().getYaw()));\n                        Vec3d end = entity.getPos().add(0, entity.getHeight() / 2.0, 0).subtract(camPos);\n\n                        float r = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentRed : 0.0f;\n                        float g = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentGreen : 0.7f;\n                        float b = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentBlue : 1.0f;\n\n                        WorldRenderer.drawEndpoint(matrices, consumer, (float) start.x, (float) start.y, (float) start.z, (float) end.x, (float) end.y, (float) end.z, r, g, b, 1.0f);\n\n                        matrices.push();\n                        Vec3d textPos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.1, 0);\n                        matrices.translate(textPos.x, textPos.y, textPos.z);\n                        matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                        matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                        String distText = String.format(\"§b%.1fm\", distToEntity);\n                        var tr = mc.textRenderer;\n                        int textW = tr.getWidth(distText);\n                        Matrix4f matrix = matrices.peek().getPositionMatrix();\n                        VertexConsumerProvider.Immediate vertexConsumers = mc.getBufferBuilders().getEntityVertexConsumers();\n                        tr.draw(distText, -textW / 2.0f, 0, 0xFFFFFFFF, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                        vertexConsumers.draw();\n                        matrices.pop();\n                    }\n                }\n\n                // NameTags PvP\n                if (NameTagsModule.INSTANCE != null && NameTagsModule.INSTANCE.isEnabled()) {\n                    matrices.push();\n                    Vec3d pos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.5, 0);\n                    matrices.translate(pos.x, pos.y, pos.z);\n                    matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                    matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                    int ping = 0;\n                    if (entity instanceof PlayerEntity player && mc.getNetworkHandler() != null) {\n                        PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(player.getUuid());\n                        if (entry != null) ping = entry.getLatency();\n                    }\n\n                    int dist = (int) distToEntity;\n                    float hp = (int) (living.getHealth() * 10) / 10.0f;\n                    float maxHp = (int) (living.getMaxHealth() * 10) / 10.0f;\n\n                    String nameLine = entity.getName().getString();\n                    String infoLine = String.format(\"§b[%dms] §c[%.1f/%.1f] §7[%dm]\", ping, hp, maxHp, dist);\n\n                    var tr = mc.textRenderer;\n                    int maxW = Math.max(tr.getWidth(nameLine), tr.getWidth(infoLine));\n\n                    Matrix4f matrix = matrices.peek().getPositionMatrix();\n                    VertexConsumerProvider.Immediate vertexConsumers = mc.getBufferBuilders().getEntityVertexConsumers();\n\n                    context.fill(-maxW / 2 - 4, -14, maxW / 2 + 4, 14, 0x88050B1A);\n                    tr.draw(nameLine, -tr.getWidth(nameLine) / 2.0f, -12, 0xFFFFFFFF, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                    tr.draw(infoLine, -tr.getWidth(infoLine) / 2.0f, -2, 0xFFAAAAAA, true, matrix, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n\n                    vertexConsumers.draw();\n                    matrices.pop();\n                }\n            }\n        });\n    }\n\n    public static void loadSettingsFromTxt() {\n        try {\n            File dir = new File(\"config/bonitaclient\");\n            if (!dir.exists()) dir.mkdirs();\n            File txtFile = new File(dir, \"settings.txt\");\n            if (!txtFile.exists()) {\n                FileWriter writer = new FileWriter(txtFile);\n                writer.write(\"modName=Bonita Client\\n\");\n                writer.write(\"modDesc=Modułowy klient PvP pod wersję 1.21.4\\n\");\n                writer.close();\n            } else {\n                BufferedReader reader = new BufferedReader(new FileReader(txtFile));\n                String line;\n                while ((line = reader.readLine()) != null) {\n                    if (line.startsWith(\"modName=\")) {\n                        fakeModName = line.substring(\"modName=\".length()).trim();\n                    } else if (line.startsWith(\"modDesc=\")) {\n                        fakeModDesc = line.substring(\"modDesc=\".length()).trim();\n                    }\n                }\n                reader.close();\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    public static class CPSTracker {\n        private static final List<Long> leftClicks = new ArrayList<>();\n        private static final List<Long> rightClicks = new ArrayList<>();\n        private static boolean wasLeftPressed = false;\n        private static boolean wasRightPressed = false;\n\n        public static void onTick() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            long now = System.currentTimeMillis();\n\n            boolean left = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean right = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            if (left && !wasLeftPressed) leftClicks.add(now);\n            if (right && !wasRightPressed) rightClicks.add(now);\n\n            wasLeftPressed = left;\n            wasRightPressed = right;\n\n            leftClicks.removeIf(t -> now - t > 1000L);\n            rightClicks.removeIf(t -> now - t > 1000L);\n        }\n\n        public static int getLeftCPS() { return leftClicks.size(); }\n        public static int getRightCPS() { return rightClicks.size(); }\n    }\n\n    public enum ModuleCategory {\n        HUD(\"HUD & Ekran\"),\n        COMBAT(\"Combat / Cheats\"),\n        RENDER(\"Visuals & Motyw\");\n\n        public final String displayName;\n        ModuleCategory(String displayName) { this.displayName = displayName; }\n    }\n\n    public static abstract class Module {\n        private final String name;\n        private final String description;\n        private final ModuleCategory category;\n        private boolean enabled;\n        public int keyCode = GLFW.GLFW_KEY_UNKNOWN;\n\n        public Module(String name, String description, ModuleCategory category) {\n            this.name = name;\n            this.description = description;\n            this.category = category;\n            this.enabled = false;\n        }\n\n        public void toggle() {\n            this.enabled = !this.enabled;\n            if (this.enabled) onEnable(); else onDisable();\n        }\n\n        private boolean wasKeyPressed = false;\n        public void checkKeybind(MinecraftClient client) {\n            if (keyCode == GLFW.GLFW_KEY_UNKNOWN || client.currentScreen != null) return;\n            boolean pressed = InputUtil.isKeyPressed(client.getWindow().getHandle(), keyCode);\n            if (pressed && !wasKeyPressed) {\n                toggle();\n            }\n            wasKeyPressed = pressed;\n        }\n\n        public void onEnable() {}\n        public void onDisable() {}\n        public void onTick(MinecraftClient client) {}\n        public void onRender2D(DrawContext context, float tickDelta) {}\n\n        public String getName() { return name; }\n        public String getDescription() { return description; }\n        public ModuleCategory getCategory() { return category; }\n        public boolean isEnabled() { return enabled; }\n    }\n\n    public static abstract class DraggableHudModule extends Module {\n        public int x, y, width, height;\n\n        public DraggableHudModule(String name, String description, int defaultX, int defaultY, int width, int height) {\n            super(name, description, ModuleCategory.HUD);\n            this.x = defaultX;\n            this.y = defaultY;\n            this.width = width;\n            this.height = height;\n        }\n\n        public boolean isHovered(double mouseX, double mouseY) {\n            return mouseX >= x && mouseX <= x + width && mouseY >= y && mouseY <= y + height;\n        }\n    }\n\n    public static class ModuleManager {\n        private static final List<Module> modules = new ArrayList<>();\n\n        public static void init() {\n            // HUD Modules\n            modules.add(new LogoHudModule());\n            modules.add(new KeystrokesModule());\n            modules.add(new ArmorStatusModule());\n            modules.add(new FpsPingHudModule());\n            modules.add(new CoordinatesModule());\n\n            // Combat Modules\n            modules.add(new NameTagsModule());\n            modules.add(new TracersModule());\n            modules.add(new FreecamModule());\n            modules.add(new ReachModule());\n            modules.add(new NoPushModule());\n            modules.add(new DestroyModule());\n\n            // Render / Theme\n            modules.add(new ThemeEditorModule());\n        }\n\n        public static List<Module> getModules() { return modules; }\n\n        public static List<DraggableHudModule> getHudModules() {\n            List<DraggableHudModule> list = new ArrayList<>();\n            for (Module m : modules) {\n                if (m instanceof DraggableHudModule hud) list.add(hud);\n            }\n            return list;\n        }\n    }\n\n    // =========================================================================\n    // MODUŁY HUD\n    // =========================================================================\n\n    public static class LogoHudModule extends DraggableHudModule {\n        public static LogoHudModule INSTANCE;\n        public static final Identifier LOGO_TEXTURE = Identifier.of(MOD_ID, \"textures/gui/logo.png\");\n\n        public LogoHudModule() {\n            super(\"Logo Watermark\", \"Graficzne logo Bonita Client na ekranie\", 12, 12, 165, 44);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var tr = mc.textRenderer;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.fill(x, y, x + 3, y + height, accent);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            context.drawTexture(RenderLayer::getGuiTextured, LOGO_TEXTURE, x + 6, y + 2, 0.0f, 0.0f, 40, 40, 40, 40);\n            context.drawText(tr, \"§b§lBONITA §f§lCLIENT\", x + 52, y + 9, 0xFFFFFFFF, true);\n            context.drawText(tr, \"§7FPS: §b\" + mc.getCurrentFps() + \" §8| §71.21.4\", x + 52, y + 23, 0xFFAAAAAA, false);\n        }\n    }\n\n    public static class KeystrokesModule extends DraggableHudModule {\n        public KeystrokesModule() {\n            super(\"Keystrokes & CPS\", \"Klawisze WASD, Spacja oraz licznik kliknięć CPS\", 12, 115, 78, 96);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var opt = mc.options;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            drawKey(context, \"W\", x + 26, y, 24, 22, opt.forwardKey.isPressed(), accent);\n            drawKey(context, \"A\", x, y + 24, 24, 22, opt.leftKey.isPressed(), accent);\n            drawKey(context, \"S\", x + 26, y + 24, 24, 22, opt.backKey.isPressed(), accent);\n            drawKey(context, \"D\", x + 52, y + 24, 24, 22, opt.rightKey.isPressed(), accent);\n\n            boolean lmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean rmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            drawKey(context, CPSTracker.getLeftCPS() + \" CPS\", x, y + 48, 37, 22, lmb, accent);\n            drawKey(context, CPSTracker.getRightCPS() + \" CPS\", x + 39, y + 48, 37, 22, rmb, accent);\n            drawKey(context, \"───\", x, y + 72, 76, 18, opt.jumpKey.isPressed(), accent);\n        }\n\n        private void drawKey(DrawContext ctx, String label, int kx, int ky, int kw, int kh, boolean pressed, int accentColor) {\n            ctx.fill(kx, ky, kx + kw, ky + kh, pressed ? accentColor : 0xAA081026);\n            ctx.drawBorder(kx, ky, kw, kh, accentColor & 0x77FFFFFF);\n            var tr = MinecraftClient.getInstance().textRenderer;\n            ctx.drawCenteredTextWithShadow(tr, label, kx + kw / 2, ky + (kh - 8) / 2, pressed ? 0xFF000000 : 0xFFFFFFFF);\n        }\n    }\n\n    public static class ArmorStatusModule extends DraggableHudModule {\n        public ArmorStatusModule() {\n            super(\"Armor Status\", \"Pokazuje wytrzymałość założonej zbroi obok paska\", 12, 220, 65, 76);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n\n            EquipmentSlot[] slots = {EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET};\n            int offsetY = 0;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0x80081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            for (EquipmentSlot slot : slots) {\n                ItemStack stack = mc.player.getEquippedStack(slot);\n                if (!stack.isEmpty()) {\n                    context.drawItem(stack, x + 4, y + offsetY + 2);\n                    if (stack.isDamageable()) {\n                        int max = stack.getMaxDamage();\n                        int cur = max - stack.getDamage();\n                        int pct = (int) ((cur / (float) max) * 100);\n                        int color = pct > 50 ? 0xFF55FF55 : (pct > 20 ? 0xFFFFAA00 : 0xFFFF5555);\n                        context.drawText(mc.textRenderer, pct + \"%\", x + 24, y + offsetY + 6, color, true);\n                    }\n                }\n                offsetY += 18;\n            }\n        }\n    }\n\n    public static class FpsPingHudModule extends DraggableHudModule {\n        public FpsPingHudModule() {\n            super(\"FPS & Ping\", \"Wyświetla aktualne FPS, Ping oraz CPS w kafelku\", 190, 12, 115, 24);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            int fps = mc.getCurrentFps();\n            int ping = 0;\n            if (mc.getNetworkHandler() != null && mc.player != null) {\n                PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(mc.player.getUuid());\n                if (entry != null) ping = entry.getLatency();\n            }\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent);\n            context.drawCenteredTextWithShadow(mc.textRenderer, \"§b\" + fps + \" FPS §8| §a\" + ping + \" ms\", x + width / 2, y + 8, 0xFFFFFF);\n        }\n    }\n\n    public static class CoordinatesModule extends DraggableHudModule {\n        public CoordinatesModule() {\n            super(\"Coordinates\", \"Pokazuje współrzędne X, Y, Z oraz kierunek świata\", 190, 42, 135, 36);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            String coords = String.format(\"§bX: §f%.0f §bY: §f%.0f §bZ: §f%.0f\", mc.player.getX(), mc.player.getY(), mc.player.getZ());\n            String dir = \"§7Kierunek: §f\" + mc.player.getHorizontalFacing().asString().toUpperCase();\n\n            context.drawText(mc.textRenderer, coords, x + 6, y + 7, 0xFFFFFF, true);\n            context.drawText(mc.textRenderer, dir, x + 6, y + 20, 0xAAAAAA, false);\n        }\n    }\n\n    // =========================================================================\n    // MODUŁY RENDER I THEME EDITOR\n    // =========================================================================\n\n    public static class ThemeEditorModule extends Module {\n        public static ThemeEditorModule INSTANCE;\n\n        public float accentRed = 0.0f;\n        public float accentGreen = 0.7f;\n        public float accentBlue = 1.0f;\n        public int guiAlpha = 242;\n\n        public ThemeEditorModule() {\n            super(\"Theme Editor\", \"Konfiguracja kolorów i przezroczystości (%) menu\", ModuleCategory.RENDER);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        public int getAccentColor() {\n            int r = (int)(accentRed * 255);\n            int g = (int)(accentGreen * 255);\n            int b = (int)(accentBlue * 255);\n            return (0xFF << 24) | (r << 16) | (g << 8) | b;\n        }\n\n        public int getBackgroundColor() {\n            return (guiAlpha << 24) | 0x081026;\n        }\n    }\n\n    // =========================================================================\n    // MODUŁY COMBAT / CHEATS\n    // =========================================================================\n\n    public static class DestroyModule extends Module {\n        public DestroyModule() {\n            super(\"Destroy (Self-Destruct)\", \"Wyłącza mod i zmienia nazwę na Sodium Extra\", ModuleCategory.COMBAT);\n        }\n\n        @Override\n        public void onEnable() {\n            for (Module m : ModuleManager.getModules()) {\n                if (m.isEnabled() && m != this) {\n                    m.toggle();\n                }\n            }\n            isDestroyed = true;\n            fakeModName = \"Sodium Extra\";\n            fakeModDesc = \"Optimized rendering engine for Minecraft\";\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                mc.player.sendMessage(Text.literal(\"§b[Sodium Extra] Zaktualizowano pomyślnie.\"), false);\n            }\n            if (mc.currentScreen != null) {\n                mc.setScreen(null);\n            }\n        }\n    }\n\n    public static class NameTagsModule extends Module {\n        public static NameTagsModule INSTANCE;\n\n        public NameTagsModule() {\n            super(\"NameTags\", \"Wyświetla HP, ping i dystans nad graczami\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n            this.toggle();\n        }\n    }\n\n    public static class TracersModule extends Module {\n        public static TracersModule INSTANCE;\n        public double maxDistance = 120.0;\n\n        public TracersModule() {\n            super(\"Tracers\", \"Rysuje linie 3D i dystans do graczy\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n    }\n\n    public static class FreecamModule extends Module {\n        public static FreecamModule INSTANCE;\n        public float speed = 0.8f;\n        public Vec3d savedPos;\n        public Vec3d camPos = Vec3d.ZERO;\n        private static final Identifier FREECAM_ID = Identifier.of(MOD_ID, \"freecam_reach\");\n\n        public FreecamModule() {\n            super(\"Freecam\", \"Swobodna kamera z możliwością interakcji\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onEnable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                savedPos = mc.player.getPos();\n                camPos = savedPos;\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                if (savedPos != null) {\n                    mc.player.setPosition(savedPos);\n                    mc.player.setVelocity(Vec3d.ZERO);\n                }\n                mc.player.noClip = false;\n                var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n                if (reach != null) reach.removeModifier(FREECAM_ID);\n            }\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null || savedPos == null) return;\n\n            float yaw = mc.player.getYaw();\n            float pitch = mc.player.getPitch();\n            Vec3d forward = Vec3d.fromPolar(pitch, yaw);\n            Vec3d right = Vec3d.fromPolar(0, yaw + 90);\n            Vec3d motion = Vec3d.ZERO;\n\n            if (mc.options.forwardKey.isPressed()) motion = motion.add(forward);\n            if (mc.options.backKey.isPressed()) motion = motion.subtract(forward);\n            if (mc.options.rightKey.isPressed()) motion = motion.add(right);\n            if (mc.options.leftKey.isPressed()) motion = motion.subtract(right);\n            if (mc.options.jumpKey.isPressed()) motion = motion.add(0, 1, 0);\n            if (mc.options.sneakKey.isPressed()) motion = motion.subtract(0, 1, 0);\n\n            if (motion.lengthSquared() > 0) motion = motion.normalize().multiply(speed);\n            camPos = camPos.add(motion);\n\n            mc.player.noClip = true;\n            mc.player.setPosition(camPos);\n            mc.player.setVelocity(Vec3d.ZERO);\n            mc.player.fallDistance = 0.0f;\n            mc.player.setOnGround(true);\n\n            var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (reach != null) {\n                reach.removeModifier(FREECAM_ID);\n                reach.addTemporaryModifier(new EntityAttributeModifier(FREECAM_ID, 6.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n    }\n\n    public static class ReachModule extends Module {\n        public static ReachModule INSTANCE;\n        public double reachDistance = 4.5;\n        private static final Identifier REACH_ID = Identifier.of(MOD_ID, \"reach_boost\");\n\n        public ReachModule() {\n            super(\"Reach\", \"Zwiększa zasięg bicia graczy\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) {\n                instance.removeModifier(REACH_ID);\n                instance.addTemporaryModifier(new EntityAttributeModifier(REACH_ID, reachDistance - 3.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) instance.removeModifier(REACH_ID);\n        }\n    }\n\n    public static class NoPushModule extends Module {\n        public static NoPushModule INSTANCE;\n\n        public NoPushModule() {\n            super(\"NoPush\", \"Blokuje odpychanie i ułatwia wchodzenie pereł w ściany\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player != null) {\n                // Redukcja wypychania przez entities/płyny oraz redukcja tarcia o ściany przy perłach\n                mc.player.pushSpeedReduction = 1.0f;\n                if (mc.player.horizontalCollision) {\n                    // Niwelowanie odrzutu velocity przy uderzeniu w ścianę (pomaga przy pearl glitching)\n                    Vec3d vel = mc.player.getVelocity();\n                    if (vel.y < 0) {\n                        mc.player.setVelocity(vel.x * 1.05, vel.y, vel.z * 1.05);\n                    }\n                }\n            }\n        }\n    }\n\n    // =========================================================================\n    // EKRAN USTAWIEN MODUŁU (PPM NA KAFELEK)\n    // =========================================================================\n\n    public static class ModuleSettingsScreen extends Screen {\n        private final Screen parent;\n        private final Module module;\n        private boolean waitingForKey = false;\n        private int activeSlider = -1;\n\n        public ModuleSettingsScreen(Screen parent, Module module) {\n            super(Text.literal(\"Ustawienia: \" + module.getName()));\n            this.parent = parent;\n            this.module = module;\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, 0x85050B1A);\n\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2;\n            int winY = (height - winH) / 2;\n\n            context.fill(winX, winY, winX + winW, winY + winH, bgCol);\n            context.drawBorder(winX, winY, winW, winH, accentCol);\n\n            context.drawText(textRenderer, \"§b§lUSTAWIENIA MODUŁU\", winX + 16, winY + 16, 0xFFFFFFFF, true);\n            context.drawText(textRenderer, \"§7\" + module.getName() + \" - \" + module.getDescription(), winX + 16, winY + 30, 0x888888, false);\n\n            int startY = winY + 56;\n\n            context.drawText(textRenderer, \"Skrót klawiszowy (Bind):\", winX + 20, startY + 4, 0xFFFFFF, false);\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            boolean hoverBind = mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH;\n            context.fill(bindBtnX, bindBtnY, bindBtnX + bindBtnW, bindBtnY + bindBtnH, hoverBind ? accentCol : 0xFF0A192F);\n            String keyName = waitingForKey ? \"§eNaciśnij klawisz...\" : (module.keyCode == GLFW.GLFW_KEY_UNKNOWN ? \"Brak\" : InputUtil.fromGlfwCode(module.keyCode, 0).getLocalizedText().getString().toUpperCase());\n            context.drawCenteredTextWithShadow(textRenderer, keyName, bindBtnX + bindBtnW / 2, bindBtnY + 6, 0xFFFFFF);\n\n            startY += 32;\n\n            if (module instanceof ThemeEditorModule theme) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Czerwony (R)\", theme.accentRed * 255.0f, 0.0, 255.0, 0);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Zielony (G)\", theme.accentGreen * 255.0f, 0.0, 255.0, 1);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Niebieski (B)\", theme.accentBlue * 255.0f, 0.0, 255.0, 2);\n                startY += 32;\n                float alphaPct = (theme.guiAlpha / 255.0f) * 100.0f;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Przezroczystość menu (%)\", alphaPct, 20.0, 100.0, 3);\n            } else if (module instanceof TracersModule tracers) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Max Dystans Tracerów (m)\", tracers.maxDistance, 20.0, 250.0, 0);\n            } else if (module instanceof ReachModule r) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Zasięg bicia (Reach)\", r.reachDistance, 3.0, 6.0, 0);\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            boolean hoverBack = mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH;\n            context.fill(backBtnX, backBtnY, backBtnX + backBtnW, backBtnY + backBtnH, hoverBack ? accentCol : 0xFF0A192F);\n            context.drawBorder(backBtnX, backBtnY, backBtnW, backBtnH, accentCol);\n            context.drawCenteredTextWithShadow(textRenderer, \"§f§lZapisz i Wróć\", backBtnX + backBtnW / 2, backBtnY + 9, 0xFFFFFF);\n        }\n\n        private void drawSlider(DrawContext ctx, double mouseX, double mouseY, int x, int y, int w, String label, double val, double min, double max, int id) {\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n            ctx.drawText(textRenderer, String.format(\"%s: %.1f\", label, val), x, y, 0xFFFFFF, false);\n            int sY = y + 12, sH = 6;\n            double pct = (val - min) / (max - min);\n            ctx.fill(x, sY, x + w, sY + sH, 0xFF050B1A);\n            ctx.fill(x, sY, x + (int) (w * pct), sY + sH, accent);\n\n            if (activeSlider == id && GLFW.glfwGetMouseButton(MinecraftClient.getInstance().getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS) {\n                double newPct = MathHelper.clamp((mouseX - x) / (double) w, 0.0, 1.0);\n                double newVal = min + (newPct * (max - min));\n                setSliderValue(id, newVal);\n            }\n        }\n\n        private void setSliderValue(int id, double val) {\n            if (module instanceof ThemeEditorModule theme) {\n                if (id == 0) theme.accentRed = (float)(val / 255.0);\n                if (id == 1) theme.accentGreen = (float)(val / 255.0);\n                if (id == 2) theme.accentBlue = (float)(val / 255.0);\n                if (id == 3) theme.guiAlpha = (int)((val / 100.0f) * 255.0f);\n            } else if (module instanceof TracersModule tracers) {\n                if (id == 0) tracers.maxDistance = val;\n            } else if (module instanceof ReachModule r) {\n                if (id == 0) r.reachDistance = val;\n            }\n        }\n\n        @Override\n        public boolean mouseClicked(double mouseX, double mouseY, int button) {\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2, winY = (height - winH) / 2;\n            int startY = winY + 56;\n\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            if (mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH) {\n                waitingForKey = true;\n                return true;\n            }\n\n            startY += 32;\n\n            int slidersCount = module instanceof ThemeEditorModule ? 4 : (module instanceof TracersModule || module instanceof ReachModule ? 1 : 0);\n            for (int i = 0; i < slidersCount; i++) {\n                if (mouseX >= winX + 20 && mouseX <= winX + 360 && mouseY >= startY + 10 && mouseY <= startY + 24) {\n                    activeSlider = i;\n                    setSliderFromMouse(mouseX, winX + 20, 340, i);\n                    return true;\n                }\n                startY += 32;\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            if (mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH) {\n                MinecraftClient.getInstance().setScreen(parent);\n                return true;\n            }\n\n            return super.mouseClicked(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) {\n            if (activeSlider != -1) {\n                setSliderFromMouse(mouseX, (width - 380) / 2 + 20, 340, activeSlider);\n                return true;\n            }\n            return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);\n        }\n\n        private void setSliderFromMouse(double mouseX, int sliderX, int sliderW, int id) {\n            double pct = MathHelper.clamp((mouseX - sliderX) / (double) sliderW, 0.0, 1.0);\n            double min = 0, max = 1;\n            if (module instanceof ThemeEditorModule) {\n                if (id >= 0 && id <= 2) { min = 0.0; max = 255.0; }\n                else if (id == 3) { min = 20.0; max = 100.0; }\n            } else if (module instanceof TracersModule) {\n                min = 20.0; max = 250.0;\n            } else if (module instanceof ReachModule) {\n                min = 3.0; max = 6.0;\n            }\n\n            setSliderValue(id, min + (pct * (max - min)));\n        }\n\n        @Override\n        public boolean mouseReleased(double mouseX, double mouseY, int button) {\n            activeSlider = -1;\n            return super.mouseReleased(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean keyPressed(int keyCode, int scanCode, int modifiers) {\n            if (waitingForKey) {\n                if (keyCode == GLFW.GLFW_KEY_ESCAPE) {\n                    module.keyCode = GLFW.GLFW_KEY_UNKNOWN;\n                } else {\n                    module.keyCode = keyCode;\n                }\n                waitingForKey = false;\n                return true;\n            }\n            return super.keyPressed(keyCode, scanCode, modifiers);\n        }\n\n        @Override\n        public boolean shouldPause() { return false; }\n    }\n\n    // =========================================================================\n    // MENU GUI (PRAWY SHIFT) - Z KATEGORIAMI HUD, COMBAT I RENDER\n    // =========================================================================\n\n    public static class ClientMenuScreen extends Screen {\n        private ModuleCategory selectedCategory = ModuleCategory.HUD;\n        private boolean hudEditMode = false;\n        private DraggableHudModule draggedModule = null;\n        private int dragOffsetX = 0, dragOffsetY = 0;\n        private static final int SNAP_GRID = 4;\n        private int scrollOffset = 0;\n\n        public ClientMenuScreen() {\n            super(Text.literal(fakeModName));\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, hudEditMode ? 0x45050B1A : (bgCol & 0x80FFFFFF));\n\n            if (hudEditMode) {\n                context.fill(width / 2, 0, width / 2 + 1, height, accentCol & 0x40FFFFFF);\n                context.fill(0, height / 2, width, height / 2 + 1, accentCol & 0x40FFFFFF);\n            }\n\n            for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                if (!hud.isEnabled()) continue;\n                hud.onRender2D(context, delta);\n\n                boolean hovered = hud.isHovered(mouseX, mouseY) || hud == draggedModule;\n                int borderColor = hovered ? accentCol : (hudEditMode ? 0x80FFFFFF : (accentCol & 0x77FFFFFF));\n                context.drawBorder(hud.x - 1, hud.y - 1, hud.width + 2, hud.height + 2, borderColor);\n            }\n\n            if (hudEditMode) {\n                int backW = 170, backH = 26;\n                int backX = (width - backW) / 2, backY = 14;\n                boolean hoverBack = mouseX >= backX && mouseX <= backX + backW && mouseY >= backY && mouseY <= backY + backH;\n\n                context.fill(backX, backY, backX + backW, backY + backH, hoverBack ? accentCol : 0xEE081026);\n```","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T20:20:40.268304","sequenceNumber":11},{"id":527683,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"1. Sprawdzę strukturę projektu i czy załączony kod jest kompletny.\n2. Dopasuję go do istniejącego moda i zweryfikuję użyte API w źródłach 1.21.4.\n3. Dodam działającą implementację albo wskażę konkretnie, czego brakuje.Tak, dodam — ale wklejony kod urywa się w `ClientMenuScreen.render`, zaraz po `context.fill(...)`, więc brakuje końcówki pliku i nie da się go teraz poprawnie zintegrować. Projekt ma już `com.client.FeatherClientMod`, więc dopasuję kod do istniejącej klasy zamiast tworzyć duplikat. Podeślij proszę kompletny plik `.java`.","tokensUsed":24891,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T20:20:40.268929","sequenceNumber":12},{"id":527694,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"zrobisz update z logiem clienta\n\n[Viewing 1 image]\n\n---\n📎 Attached 1 file(s):\n\n### File: gemini-code-1792700664855.java\n```java\npackage com.client;\n\nimport net.fabricmc.api.ClientModInitializer;\nimport net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;\nimport net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;\nimport net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;\nimport net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.font.TextRenderer;\nimport net.minecraft.client.gui.DrawContext;\nimport net.minecraft.client.gui.screen.Screen;\nimport net.minecraft.client.network.PlayerListEntry;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.render.*;\nimport net.minecraft.client.util.InputUtil;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.entity.EquipmentSlot;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.attribute.EntityAttributeModifier;\nimport net.minecraft.entity.attribute.EntityAttributes;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.item.ItemStack;\nimport net.minecraft.text.Text;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport org.joml.Matrix4f;\nimport org.lwjgl.glfw.GLFW;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.FileWriter;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class FeatherClientMod implements ClientModInitializer {\n\n    public static final String MOD_ID = \"bonita_client\";\n    private static KeyBinding openMenuKey;\n    public static boolean isDestroyed = false; \n\n    public static String fakeModName = \"Bonita Client\";\n    public static String fakeModDesc = \"Modułowy klient PvP pod wersję 1.21.4\";\n\n    @Override\n    public void onInitializeClient() {\n        loadSettingsFromTxt();\n        ModuleManager.init();\n\n        openMenuKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(\n                \"Otwórz Menu Bonita Client\",\n                InputUtil.Type.KEYSYM,\n                GLFW.GLFW_KEY_RIGHT_SHIFT,\n                \"Bonita Client\"\n        ));\n\n        ClientTickEvents.END_CLIENT_TICK.register(client -> {\n            if (isDestroyed) return;\n\n            while (openMenuKey.wasPressed()) {\n                client.setScreen(new ClientMenuScreen());\n            }\n            CPSTracker.onTick();\n            \n            for (Module mod : ModuleManager.getModules()) {\n                mod.checkKeybind(client);\n                if (mod.isEnabled()) {\n                    mod.onTick(client);\n                }\n            }\n        });\n\n        HudRenderCallback.EVENT.register((context, tickCounter) -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.currentScreen instanceof ClientMenuScreen) return;\n\n            float delta = tickCounter.getTickDelta(false);\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.isEnabled() && mod instanceof DraggableHudModule hud) {\n                    hud.onRender2D(context, delta);\n                }\n            }\n        });\n\n        WorldRenderEvents.LAST.register(context -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.world == null || mc.player == null) return;\n\n            MatrixStack matrices = context.matrixStack();\n            Vec3d camPos = context.camera().getPos();\n\n            for (Entity entity : mc.world.getEntities()) {\n                if (entity == mc.player || !(entity instanceof LivingEntity living)) continue;\n\n                double distToEntity = mc.player.distanceTo(entity);\n\n                // Tracers aktywne tylko od zdefiniowanego dystansu (domyślnie od 40 kratek)\n                if (TracersModule.INSTANCE != null && TracersModule.INSTANCE.isEnabled()) {\n                    if (distToEntity >= TracersModule.INSTANCE.minDistance) {\n                        VertexConsumer consumer = context.consumers().getBuffer(RenderLayer.getLines());\n                        Matrix4f matrix = matrices.peek().getPositionMatrix();\n\n                        Vec3d start = new Vec3d(0, 0, 1)\n                                .rotateX(-(float)Math.toRadians(context.camera().getPitch()))\n                                .rotateY(-(float)Math.toRadians(context.camera().getYaw()));\n                        Vec3d end = entity.getPos().add(0, entity.getHeight() / 2.0, 0).subtract(camPos);\n\n                        float r = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentRed : 0.0f;\n                        float g = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentGreen : 0.7f;\n                        float b = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentBlue : 1.0f;\n\n                        consumer.vertex(matrix, (float) start.x, (float) start.y, (float) start.z).color(r, g, b, 1.0f).normal(0.0f, 1.0f, 0.0f);\n                        consumer.vertex(matrix, (float) end.x, (float) end.y, (float) end.z).color(r, g, b, 1.0f).normal(0.0f, 1.0f, 0.0f);\n                    }\n                }\n\n                // NameTags PvP\n                if (NameTagsModule.INSTANCE != null && NameTagsModule.INSTANCE.isEnabled()) {\n                    matrices.push();\n                    Vec3d pos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.5, 0);\n                    matrices.translate(pos.x, pos.y, pos.z);\n                    matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                    matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                    int ping = 0;\n                    if (entity instanceof PlayerEntity player && mc.getNetworkHandler() != null) {\n                        PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(player.getUuid());\n                        if (entry != null) ping = entry.getLatency();\n                    }\n\n                    int dist = (int) distToEntity;\n                    float hp = (int) (living.getHealth() * 10) / 10.0f;\n                    float maxHp = (int) (living.getMaxHealth() * 10) / 10.0f;\n\n                    String nameLine = entity.getName().getString();\n                    String infoLine = String.format(\"§b[%dms] §c[%.1f/%.1f] §7[%dm]\", ping, hp, maxHp, dist);\n\n                    var tr = mc.textRenderer;\n                    int maxW = Math.max(tr.getWidth(nameLine), tr.getWidth(infoLine));\n\n                    Matrix4f matrix = matrices.peek().getPositionMatrix();\n\n                    context.fill(-maxW / 2 - 4, -14, maxW / 2 + 4, 14, 0x88050B1A);\n                    tr.draw(nameLine, -tr.getWidth(nameLine) / 2.0f, -12, 0xFFFFFFFF, true, matrix, context.consumers(), TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                    tr.draw(infoLine, -tr.getWidth(infoLine) / 2.0f, -2, 0xFFAAAAAA, true, matrix, context.consumers(), TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n\n                    matrices.pop();\n                }\n            }\n        });\n    }\n\n    public static void loadSettingsFromTxt() {\n        try {\n            File dir = new File(\"config/bonitaclient\");\n            if (!dir.exists()) dir.mkdirs();\n            File txtFile = new File(dir, \"settings.txt\");\n            if (!txtFile.exists()) {\n                FileWriter writer = new FileWriter(txtFile);\n                writer.write(\"modName=Bonita Client\\n\");\n                writer.write(\"modDesc=Modułowy klient PvP pod wersję 1.21.4\\n\");\n                writer.close();\n            } else {\n                BufferedReader reader = new BufferedReader(new FileReader(txtFile));\n                String line;\n                while ((line = reader.readLine()) != null) {\n                    if (line.startsWith(\"modName=\")) {\n                        fakeModName = line.substring(\"modName=\".length()).trim();\n                    } else if (line.startsWith(\"modDesc=\")) {\n                        fakeModDesc = line.substring(\"modDesc=\".length()).trim();\n                    }\n                }\n                reader.close();\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    public static class CPSTracker {\n        private static final List<Long> leftClicks = new ArrayList<>();\n        private static final List<Long> rightClicks = new ArrayList<>();\n        private static boolean wasLeftPressed = false;\n        private static boolean wasRightPressed = false;\n\n        public static void onTick() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            long now = System.currentTimeMillis();\n\n            boolean left = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean right = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            if (left && !wasLeftPressed) leftClicks.add(now);\n            if (right && !wasRightPressed) rightClicks.add(now);\n\n            wasLeftPressed = left;\n            wasRightPressed = right;\n\n            leftClicks.removeIf(t -> now - t > 1000L);\n            rightClicks.removeIf(t -> now - t > 1000L);\n        }\n\n        public static int getLeftCPS() { return leftClicks.size(); }\n        public static int getRightCPS() { return rightClicks.size(); }\n    }\n\n    public enum ModuleCategory {\n        HUD(\"HUD & Ekran\"),\n        COMBAT(\"Combat / Cheats\"),\n        RENDER(\"Visuals & Motyw\");\n\n        public final String displayName;\n        ModuleCategory(String displayName) { this.displayName = displayName; }\n    }\n\n    public static abstract class Module {\n        private final String name;\n        private final String description;\n        private final ModuleCategory category;\n        private boolean enabled;\n        public int keyCode = GLFW.GLFW_KEY_UNKNOWN;\n\n        public Module(String name, String description, ModuleCategory category) {\n            this.name = name;\n            this.description = description;\n            this.category = category;\n            this.enabled = false;\n        }\n\n        public void toggle() {\n            this.enabled = !this.enabled;\n            if (this.enabled) onEnable(); else onDisable();\n        }\n\n        private boolean wasKeyPressed = false;\n        public void checkKeybind(MinecraftClient client) {\n            if (keyCode == GLFW.GLFW_KEY_UNKNOWN || client.currentScreen != null) return;\n            boolean pressed = InputUtil.isKeyPressed(client.getWindow().getHandle(), keyCode);\n            if (pressed && !wasKeyPressed) {\n                toggle();\n            }\n            wasKeyPressed = pressed;\n        }\n\n        public void onEnable() {}\n        public void onDisable() {}\n        public void onTick(MinecraftClient client) {}\n        public void onRender2D(DrawContext context, float tickDelta) {}\n\n        public String getName() { return name; }\n        public String getDescription() { return description; }\n        public ModuleCategory getCategory() { return category; }\n        public boolean isEnabled() { return enabled; }\n    }\n\n    public static abstract class DraggableHudModule extends Module {\n        public int x, y, width, height;\n\n        public DraggableHudModule(String name, String description, int defaultX, int defaultY, int width, int height) {\n            super(name, description, ModuleCategory.HUD);\n            this.x = defaultX;\n            this.y = defaultY;\n            this.width = width;\n            this.height = height;\n        }\n\n        public boolean isHovered(double mouseX, double mouseY) {\n            return mouseX >= x && mouseX <= x + width && mouseY >= y && mouseY <= y + height;\n        }\n    }\n\n    public static class ModuleManager {\n        private static final List<Module> modules = new ArrayList<>();\n\n        public static void init() {\n            modules.add(new LogoHudModule());\n            modules.add(new KeystrokesModule());\n            modules.add(new ArmorStatusModule());\n            modules.add(new FpsPingHudModule());\n            modules.add(new CoordinatesModule());\n\n            modules.add(new NameTagsModule());\n            modules.add(new TracersModule());\n            modules.add(new FreecamModule());\n            modules.add(new ReachModule());\n            modules.add(new NoPushModule());\n            modules.add(new DestroyModule());\n\n            modules.add(new ThemeEditorModule());\n        }\n\n        public static List<Module> getModules() { return modules; }\n\n        public static List<DraggableHudModule> getHudModules() {\n            List<DraggableHudModule> list = new ArrayList<>();\n            for (Module m : modules) {\n                if (m instanceof DraggableHudModule hud) list.add(hud);\n            }\n            return list;\n        }\n    }\n\n    public static class LogoHudModule extends DraggableHudModule {\n        public static LogoHudModule INSTANCE;\n        public static final Identifier LOGO_TEXTURE = Identifier.of(MOD_ID, \"textures/gui/logo.png\");\n\n        public LogoHudModule() {\n            super(\"Logo Watermark\", \"Graficzne logo Bonita Client na ekranie\", 12, 12, 165, 44);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var tr = mc.textRenderer;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.fill(x, y, x + 3, y + height, accent);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            context.drawTexture(RenderLayer::getGuiTextured, LOGO_TEXTURE, x + 6, y + 2, 0.0f, 0.0f, 40, 40, 40, 40);\n            context.drawText(tr, \"§b§lBONITA §f§lCLIENT\", x + 52, y + 9, 0xFFFFFFFF, true);\n            context.drawText(tr, \"§7FPS: §b\" + mc.getCurrentFps() + \" §8| §71.21.4\", x + 52, y + 23, 0xFFAAAAAA, false);\n        }\n    }\n\n    public static class KeystrokesModule extends DraggableHudModule {\n        public KeystrokesModule() {\n            super(\"Keystrokes & CPS\", \"Klawisze WASD, Spacja oraz licznik kliknięć CPS\", 12, 115, 78, 96);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var opt = mc.options;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            drawKey(context, \"W\", x + 26, y, 24, 22, opt.forwardKey.isPressed(), accent);\n            drawKey(context, \"A\", x, y + 24, 24, 22, opt.leftKey.isPressed(), accent);\n            drawKey(context, \"S\", x + 26, y + 24, 24, 22, opt.backKey.isPressed(), accent);\n            drawKey(context, \"D\", x + 52, y + 24, 24, 22, opt.rightKey.isPressed(), accent);\n\n            boolean lmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean rmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            drawKey(context, CPSTracker.getLeftCPS() + \" CPS\", x, y + 48, 37, 22, lmb, accent);\n            drawKey(context, CPSTracker.getRightCPS() + \" CPS\", x + 39, y + 48, 37, 22, rmb, accent);\n            drawKey(context, \"───\", x, y + 72, 76, 18, opt.jumpKey.isPressed(), accent);\n        }\n\n        private void drawKey(DrawContext ctx, String label, int kx, int ky, int kw, int kh, boolean pressed, int accentColor) {\n            ctx.fill(kx, ky, kx + kw, ky + kh, pressed ? accentColor : 0xAA081026);\n            ctx.drawBorder(kx, ky, kw, kh, accentColor & 0x77FFFFFF);\n            var tr = MinecraftClient.getInstance().textRenderer;\n            ctx.drawCenteredTextWithShadow(tr, label, kx + kw / 2, ky + (kh - 8) / 2, pressed ? 0xFF000000 : 0xFFFFFFFF);\n        }\n    }\n\n    public static class ArmorStatusModule extends DraggableHudModule {\n        public ArmorStatusModule() {\n            super(\"Armor Status\", \"Pokazuje wytrzymałość założonej zbroi obok paska\", 12, 220, 65, 76);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n\n            EquipmentSlot[] slots = {EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET};\n            int offsetY = 0;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0x80081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            for (EquipmentSlot slot : slots) {\n                ItemStack stack = mc.player.getEquippedStack(slot);\n                if (!stack.isEmpty()) {\n                    context.drawItem(stack, x + 4, y + offsetY + 2);\n                    if (stack.isDamageable()) {\n                        int max = stack.getMaxDamage();\n                        int cur = max - stack.getDamage();\n                        int pct = (int) ((cur / (float) max) * 100);\n                        int color = pct > 50 ? 0xFF55FF55 : (pct > 20 ? 0xFFFFAA00 : 0xFFFF5555);\n                        context.drawText(mc.textRenderer, pct + \"%\", x + 24, y + offsetY + 6, color, true);\n                    }\n                }\n                offsetY += 18;\n            }\n        }\n    }\n\n    public static class FpsPingHudModule extends DraggableHudModule {\n        public FpsPingHudModule() {\n            super(\"FPS & Ping\", \"Wyświetla aktualne FPS, Ping oraz CPS w kafelku\", 190, 12, 115, 24);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            int fps = mc.getCurrentFps();\n            int ping = 0;\n            if (mc.getNetworkHandler() != null && mc.player != null) {\n                PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(mc.player.getUuid());\n                if (entry != null) ping = entry.getLatency();\n            }\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent);\n            context.drawCenteredTextWithShadow(mc.textRenderer, \"§b\" + fps + \" FPS §8| §a\" + ping + \" ms\", x + width / 2, y + 8, 0xFFFFFF);\n        }\n    }\n\n    public static class CoordinatesModule extends DraggableHudModule {\n        public CoordinatesModule() {\n            super(\"Coordinates\", \"Pokazuje współrzędne X, Y, Z oraz kierunek świata\", 190, 42, 135, 36);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            String coords = String.format(\"§bX: §f%.0f §bY: §f%.0f §bZ: §f%.0f\", mc.player.getX(), mc.player.getY(), mc.player.getZ());\n            String dir = \"§7Kierunek: §f\" + mc.player.getHorizontalFacing().asString().toUpperCase();\n\n            context.drawText(mc.textRenderer, coords, x + 6, y + 7, 0xFFFFFF, true);\n            context.drawText(mc.textRenderer, dir, x + 6, y + 20, 0xAAAAAA, false);\n        }\n    }\n\n    public static class ThemeEditorModule extends Module {\n        public static ThemeEditorModule INSTANCE;\n\n        public float accentRed = 0.0f;\n        public float accentGreen = 0.7f;\n        public float accentBlue = 1.0f;\n        public int guiAlpha = 242;\n\n        public ThemeEditorModule() {\n            super(\"Theme Editor\", \"Konfiguracja kolorów i przezroczystości (%) menu\", ModuleCategory.RENDER);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        public int getAccentColor() {\n            int r = (int)(accentRed * 255);\n            int g = (int)(accentGreen * 255);\n            int b = (int)(accentBlue * 255);\n            return (0xFF << 24) | (r << 16) | (g << 8) | b;\n        }\n\n        public int getBackgroundColor() {\n            return (guiAlpha << 24) | 0x081026;\n        }\n    }\n\n    public static class DestroyModule extends Module {\n        public DestroyModule() {\n            super(\"Destroy (Self-Destruct)\", \"Wyłącza mod i zmienia nazwę na Sodium Extra\", ModuleCategory.COMBAT);\n        }\n\n        @Override\n        public void onEnable() {\n            for (Module m : ModuleManager.getModules()) {\n                if (m.isEnabled() && m != this) {\n                    m.toggle();\n                }\n            }\n            isDestroyed = true;\n            fakeModName = \"Sodium Extra\";\n            fakeModDesc = \"Optimized rendering engine for Minecraft\";\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                mc.player.sendMessage(Text.literal(\"§b[Sodium Extra] Zaktualizowano pomyślnie.\"), false);\n            }\n            if (mc.currentScreen != null) {\n                mc.setScreen(null);\n            }\n        }\n    }\n\n    public static class NameTagsModule extends Module {\n        public static NameTagsModule INSTANCE;\n\n        public NameTagsModule() {\n            super(\"NameTags\", \"Wyświetla HP, ping i dystans nad graczami\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n            this.toggle();\n        }\n    }\n\n    public static class TracersModule extends Module {\n        public static TracersModule INSTANCE;\n        public double minDistance = 40.0; // Linie pojawiają się od 40 kratek\n\n        public TracersModule() {\n            super(\"Tracers\", \"Rysuje linie 3D do graczy od 40+ kratek\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n    }\n\n    public static class FreecamModule extends Module {\n        public static FreecamModule INSTANCE;\n        public float speed = 0.8f;\n        public Vec3d savedPos;\n        public Vec3d camPos = Vec3d.ZERO;\n        private static final Identifier FREECAM_ID = Identifier.of(MOD_ID, \"freecam_reach\");\n\n        public FreecamModule() {\n            super(\"Freecam\", \"Swobodna kamera z możliwością interakcji\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onEnable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                savedPos = mc.player.getPos();\n                camPos = savedPos;\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                if (savedPos != null) {\n                    mc.player.setPosition(savedPos);\n                    mc.player.setVelocity(Vec3d.ZERO);\n                }\n                mc.player.noClip = false;\n                var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n                if (reach != null) reach.removeModifier(FREECAM_ID);\n            }\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null || savedPos == null) return;\n\n            float yaw = mc.player.getYaw();\n            float pitch = mc.player.getPitch();\n            Vec3d forward = Vec3d.fromPolar(pitch, yaw);\n            Vec3d right = Vec3d.fromPolar(0, yaw + 90);\n            Vec3d motion = Vec3d.ZERO;\n\n            if (mc.options.forwardKey.isPressed()) motion = motion.add(forward);\n            if (mc.options.backKey.isPressed()) motion = motion.subtract(forward);\n            if (mc.options.rightKey.isPressed()) motion = motion.add(right);\n            if (mc.options.leftKey.isPressed()) motion = motion.subtract(right);\n            if (mc.options.jumpKey.isPressed()) motion = motion.add(0, 1, 0);\n            if (mc.options.sneakKey.isPressed()) motion = motion.subtract(0, 1, 0);\n\n            if (motion.lengthSquared() > 0) motion = motion.normalize().multiply(speed);\n            camPos = camPos.add(motion);\n\n            mc.player.noClip = true;\n            mc.player.setPosition(camPos);\n            mc.player.setVelocity(Vec3d.ZERO);\n            mc.player.fallDistance = 0.0f;\n            mc.player.setOnGround(true);\n\n            var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (reach != null) {\n                reach.removeModifier(FREECAM_ID);\n                reach.addTemporaryModifier(new EntityAttributeModifier(FREECAM_ID, 6.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n    }\n\n    public static class ReachModule extends Module {\n        public static ReachModule INSTANCE;\n        public double reachDistance = 4.5;\n        private static final Identifier REACH_ID = Identifier.of(MOD_ID, \"reach_boost\");\n\n        public ReachModule() {\n            super(\"Reach\", \"Zwiększa zasięg bicia graczy\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) {\n                instance.removeModifier(REACH_ID);\n                instance.addTemporaryModifier(new EntityAttributeModifier(REACH_ID, reachDistance - 3.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) instance.removeModifier(REACH_ID);\n        }\n    }\n\n    public static class NoPushModule extends Module {\n        public static NoPushModule INSTANCE;\n\n        public NoPushModule() {\n            super(\"NoPush\", \"Blokuje odpychanie i ułatwia wchodzenie pereł w ściany\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player != null) {\n                mc.player.pushSpeedReduction = 1.0f;\n                if (mc.player.horizontalCollision) {\n                    Vec3d vel = mc.player.getVelocity();\n                    if (vel.y < 0) {\n                        mc.player.setVelocity(vel.x * 1.05, vel.y, vel.z * 1.05);\n                    }\n                }\n            }\n        }\n    }\n\n    public static class ModuleSettingsScreen extends Screen {\n        private final Screen parent;\n        private final Module module;\n        private boolean waitingForKey = false;\n        private int activeSlider = -1;\n\n        public ModuleSettingsScreen(Screen parent, Module module) {\n            super(Text.literal(\"Ustawienia: \" + module.getName()));\n            this.parent = parent;\n            this.module = module;\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, 0x85050B1A);\n\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2;\n            int winY = (height - winH) / 2;\n\n            context.fill(winX, winY, winX + winW, winY + winH, bgCol);\n            context.drawBorder(winX, winY, winW, winH, accentCol);\n\n            context.drawText(textRenderer, \"§b§lUSTAWIENIA MODUŁU\", winX + 16, winY + 16, 0xFFFFFFFF, true);\n            context.drawText(textRenderer, \"§7\" + module.getName() + \" - \" + module.getDescription(), winX + 16, winY + 30, 0x888888, false);\n\n            int startY = winY + 56;\n\n            context.drawText(textRenderer, \"Skrót klawiszowy (Bind):\", winX + 20, startY + 4, 0xFFFFFF, false);\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            boolean hoverBind = mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH;\n            context.fill(bindBtnX, bindBtnY, bindBtnX + bindBtnW, bindBtnY + bindBtnH, hoverBind ? accentCol : 0xFF0A192F);\n            String keyName = waitingForKey ? \"§eNaciśnij klawisz...\" : (module.keyCode == GLFW.GLFW_KEY_UNKNOWN ? \"Brak\" : InputUtil.fromGlfwCode(module.keyCode, 0).getLocalizedText().getString().toUpperCase());\n            context.drawCenteredTextWithShadow(textRenderer, keyName, bindBtnX + bindBtnW / 2, bindBtnY + 6, 0xFFFFFF);\n\n            startY += 32;\n\n            if (module instanceof ThemeEditorModule theme) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Czerwony (R)\", theme.accentRed * 255.0f, 0.0, 255.0, 0);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Zielony (G)\", theme.accentGreen * 255.0f, 0.0, 255.0, 1);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Niebieski (B)\", theme.accentBlue * 255.0f, 0.0, 255.0, 2);\n                startY += 32;\n                float alphaPct = (theme.guiAlpha / 255.0f) * 100.0f;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Przezroczystość menu (%)\", alphaPct, 20.0, 100.0, 3);\n            } else if (module instanceof TracersModule tracers) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Min Dystans Tracerów (m)\", tracers.minDistance, 10.0, 150.0, 0);\n            } else if (module instanceof ReachModule r) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Zasięg bicia (Reach)\", r.reachDistance, 3.0, 6.0, 0);\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            boolean hoverBack = mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH;\n            context.fill(backBtnX, backBtnY, backBtnX + backBtnW, backBtnY + backBtnH, hoverBack ? accentCol : 0xFF0A192F);\n            context.drawBorder(backBtnX, backBtnY, backBtnW, backBtnH, accentCol);\n            context.drawCenteredTextWithShadow(textRenderer, \"§f§lZapisz i Wróć\", backBtnX + backBtnW / 2, backBtnY + 9, 0xFFFFFF);\n        }\n\n        private void drawSlider(DrawContext ctx, double mouseX, double mouseY, int x, int y, int w, String label, double val, double min, double max, int id) {\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n            ctx.drawText(textRenderer, String.format(\"%s: %.1f\", label, val), x, y, 0xFFFFFF, false);\n            int sY = y + 12, sH = 6;\n            double pct = (val - min) / (max - min);\n            ctx.fill(x, sY, x + w, sY + sH, 0xFF050B1A);\n            ctx.fill(x, sY, x + (int) (w * pct), sY + sH, accent);\n\n            if (activeSlider == id && GLFW.glfwGetMouseButton(MinecraftClient.getInstance().getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS) {\n                double newPct = MathHelper.clamp((mouseX - x) / (double) w, 0.0, 1.0);\n                double newVal = min + (newPct * (max - min));\n                setSliderValue(id, newVal);\n            }\n        }\n\n        private void setSliderValue(int id, double val) {\n            if (module instanceof ThemeEditorModule theme) {\n                if (id == 0) theme.accentRed = (float)(val / 255.0);\n                if (id == 1) theme.accentGreen = (float)(val / 255.0);\n                if (id == 2) theme.accentBlue = (float)(val / 255.0);\n                if (id == 3) theme.guiAlpha = (int)((val / 100.0f) * 255.0f);\n            } else if (module instanceof TracersModule tracers) {\n                if (id == 0) tracers.minDistance = val;\n            } else if (module instanceof ReachModule r) {\n                if (id == 0) r.reachDistance = val;\n            }\n        }\n\n        @Override\n        public boolean mouseClicked(double mouseX, double mouseY, int button) {\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2, winY = (height - winH) / 2;\n            int startY = winY + 56;\n\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            if (mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH) {\n                waitingForKey = true;\n                return true;\n            }\n\n            startY += 32;\n\n            int slidersCount = module instanceof ThemeEditorModule ? 4 : (module instanceof TracersModule || module instanceof ReachModule ? 1 : 0);\n            for (int i = 0; i < slidersCount; i++) {\n                if (mouseX >= winX + 20 && mouseX <= winX + 360 && mouseY >= startY + 10 && mouseY <= startY + 24) {\n                    activeSlider = i;\n                    setSliderFromMouse(mouseX, winX + 20, 340, i);\n                    return true;\n                }\n                startY += 32;\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            if (mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH) {\n                MinecraftClient.getInstance().setScreen(parent);\n                return true;\n            }\n\n            return super.mouseClicked(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) {\n            if (activeSlider != -1) {\n                setSliderFromMouse(mouseX, (width - 380) / 2 + 20, 340, activeSlider);\n                return true;\n            }\n            return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);\n        }\n\n        private void setSliderFromMouse(double mouseX, int sliderX, int sliderW, int id) {\n            double pct = MathHelper.clamp((mouseX - sliderX) / (double) sliderW, 0.0, 1.0);\n            double min = 0, max = 1;\n            if (module instanceof ThemeEditorModule) {\n                if (id >= 0 && id <= 2) { min = 0.0; max = 255.0; }\n                else if (id == 3) { min = 20.0; max = 100.0; }\n            } else if (module instanceof TracersModule) {\n                min = 10.0; max = 150.0;\n            } else if (module instanceof ReachModule) {\n                min = 3.0; max = 6.0;\n            }\n\n            setSliderValue(id, min + (pct * (max - min)));\n        }\n\n        @Override\n        public boolean mouseReleased(double mouseX, double mouseY, int button) {\n            activeSlider = -1;\n            return super.mouseReleased(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean keyPressed(int keyCode, int scanCode, int modifiers) {\n            if (waitingForKey) {\n                if (keyCode == GLFW.GLFW_KEY_ESCAPE) {\n                    module.keyCode = GLFW.GLFW_KEY_UNKNOWN;\n                } else {\n                    module.keyCode = keyCode;\n                }\n                waitingForKey = false;\n                return true;\n            }\n            return super.keyPressed(keyCode, scanCode, modifiers);\n        }\n\n        @Override\n        public boolean shouldPause() { return false; }\n    }\n\n    public static class ClientMenuScreen extends Screen {\n        private ModuleCategory selectedCategory = ModuleCategory.HUD;\n        private boolean hudEditMode = false;\n        private DraggableHudModule draggedModule = null;\n        private int dragOffsetX = 0, dragOffsetY = 0;\n        private static final int SNAP_GRID = 4;\n        private int scrollOffset = 0;\n\n        public ClientMenuScreen() {\n            super(Text.literal(fakeModName));\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, hudEditMode ? 0x45050B1A : (bgCol & 0x80FFFFFF));\n\n            if (hudEditMode) {\n                context.fill(width / 2, 0, width / 2 + 1, height, accentCol & 0x40FFFFFF);\n                context.fill(0, height / 2, width, height / 2 + 1, accentCol & 0x40FFFFFF);\n            }\n\n            for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                if (!hud.isEnabled()) continue;\n                hud.onRender2D(context, delta);\n\n                boolean hovered = hud.isHovered(mouseX, mouseY) || hud == draggedModule;\n                int borderColor = hovered ? accentCol : (hudEditMode ? 0x80FFFFFF : (accentCol & 0x77FFFFFF));\n                context.drawBorder(hud.x - 1, hud.y - 1, hud.width + 2, hud.height + 2, borderColor);\n            }\n\n            if (hudEditMode) {\n                int backW = 170, backH = 26;\n                int backX = (width - backW) / 2, backY = 14;\n                boolean hoverBack = mouseX >= backX && mouseX <= backX + backW && mouseY >= backY && mouseY <= backY + backH;\n\n                context.fill(backX, backY, backX + backW, backY + backH, hoverBack ? accentCol : 0xEE081026);\n                context.drawBorder(backX, backY, backW, backH, accentCol);\n                context.drawCenteredTextWithShadow(textRenderer, \"§b§l⬅ Wróć do Menu Modów\", backX + backW / 2, backY + 9, 0xFFFFFF);\n                context.drawCenteredTextWithShadow(textRenderer, \"§7Przeciągaj elementy HUD myszką po ekranie\", width / 2, backY + 34, 0xAAAAAA);\n                return;\n            }\n\n            int winW = 450;\n            int winH = 290;\n            int winX = (width - winW) / 2;\n            int winY = (height - winH) / 2;\n\n            context.fill(winX, winY, winX + winW, winY + winH, bgCol);\n            context.fill(winX, winY, winX + 120, winY + winH, bgCol & 0xF8FFFFFF);\n            context.drawBorder(winX, winY, winW, winH, accentCol);\n\n            context.drawText(textRenderer, \"§b§l\" + fakeModName.split(\" \")[0], winX + 16, winY + 16, 0xFFFFFFFF, true);\n            context.drawText(textRenderer, \"§f§l\" + (fakeModName.contains(\" \") ? fakeModName.split(\" \")[1] : \"CLIENT\"), winX + 16, winY + 28, accentCol | 0xFF000000, true);\n\n            int catY = winY + 54;\n            for (ModuleCategory cat : ModuleCategory.values()) {\n                boolean active = (cat == selectedCategory);\n                if (active) {\n                    context.fill(winX + 6, catY, winX + 114, catY + 22, accentCol & 0x35FFFFFF);\n                    context.fill(winX + 6, catY, winX + 8, catY + 22, accentCol);\n                }\n                context.drawText(textRenderer, cat.displayName, winX + 14, catY + 7, active ? 0xFFFFFFFF : 0xFF888888, false);\n                catY += 26;\n            }\n\n            int hudBtnX = winX + 8;\n            int hudBtnY = winY + winH - 32;\n            boolean hoverHudBtn = mouseX >= hudBtnX && mouseX <= hudBtnX + 104 && mouseY >= hudBtnY && mouseY <= hudBtnY + 22;\n            context.fill(hudBtnX, hudBtnY, hudBtnX + 104, hudBtnY + 22, hoverHudBtn ? accentCol : 0xFF0A192F);\n            context.drawCenteredTextWithShadow(textRenderer, \"§f§l📐 Układaj HUD\", hudBtnX + 52, hudBtnY + 7, 0xFFFFFF);\n\n            int gridX = winX + 130;\n            int gridY = winY + 14;\n            int cardW = 148;\n            int cardH = 60;\n            int index = 0;\n\n            context.enableScissor(winX + 122, winY + 10, winX + winW - 6, winY + winH - 10);\n\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.getCategory() != selectedCategory) continue;\n\n                int x = gridX + (index % 2) * (cardW + 10);\n                int y = gridY + (index / 2) * (cardH + 8) - scrollOffset;\n\n                context.fill(x, y, x + cardW, y + cardH, mod.isEnabled() ? 0xFF0D1B2A : 0xFF0A1220);\n                context.drawBorder(x, y, cardW, cardH, mod.isEnabled() ? accentCol : 0x3300B4D8);\n\n                context.drawText(textRenderer, mod.getName(), x + 8, y + 7, 0xFFFFFFFF, true);\n                context.drawText(textRenderer, textRenderer.trimToWidth(mod.getDescription(), cardW - 14), x + 8, y + 19, 0xFF888888, false);\n\n                if (mod instanceof TracersModule tracers) {\n                    int sX = x + 8, sY = y + 32, sW = cardW - 16;\n                    double pct = (tracers.minDistance - 10.0) / 140.0;\n                    context.fill(sX, sY, sX + sW, sY + 4, 0xFF050B1A);\n                    context.fill(sX, sY, sX + (int) (sW * pct), sY + 4, accentCol);\n                    context.drawText(textRenderer, String.format(\"Min Dystans: %.0fm\", tracers.minDistance), sX, sY + 7, 0xFFCCCCCC, false);\n                }\n\n                int pillX = x + cardW - 38;\n                int pillY = y + cardH - 16;\n                context.fill(pillX, pillY, pillX + 30, pillY + 12, mod.isEnabled() ? accentCol : 0xFF152238);\n                context.drawCenteredTextWithShadow(textRenderer, mod.isEnabled() ? \"ON\" : \"OFF\", pillX + 15, pillY + 2, 0xFFFFFF);\n\n                index++;\n            }\n\n            context.disableScissor();\n        }\n\n        @Override\n        public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {\n            if (!hudEditMode) {\n                scrollOffset = MathHelper.clamp(scrollOffset - (int) (verticalAmount * 24), 0, 520);\n            }\n            return true;\n        }\n\n        @Override\n        public boolean mouseClicked(double mouseX, double mouseY, int button) {\n            if (hudEditMode) {\n                int backW = 170, backH = 26;\n                int backX = (width - backW) / 2, backY = 14;\n                if (mouseX >= backX && mouseX <= backX + backW && mouseY >= backY && mouseY <= backY + backH) {\n                    hudEditMode = false;\n                    return true;\n                }\n\n                if (button == 0) {\n                    for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                        if (hud.isEnabled() && hud.isHovered(mouseX, mouseY)) {\n                            draggedModule = hud;\n                            dragOffsetX = (int) mouseX - hud.x;\n                            dragOffsetY = (int) mouseY - hud.y;\n                            return true;\n                        }\n                    }\n                }\n                return super.mouseClicked(mouseX, mouseY, button);\n            }\n\n            int winW = 450, winH = 290;\n            int winX = (width - winW) / 2, winY = (height - winH) / 2;\n\n            if (mouseX < winX || mouseX > winX + winW || mouseY < winY || mouseY > winY + winH) {\n                if (button == 0) {\n                    for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                        if (hud.isEnabled() && hud.isHovered(mouseX, mouseY)) {\n                            draggedModule = hud;\n                            dragOffsetX = (int) mouseX - hud.x;\n                            dragOffsetY = (int) mouseY - hud.y;\n                            return true;\n                        }\n                    }\n                }\n            }\n\n            int catY = winY + 54;\n            for (ModuleCategory cat : ModuleCategory.values()) {\n                if (mouseX >= winX + 6 && mouseX <= winX + 114 && mouseY >= catY && mouseY <= catY + 22) {\n                    selectedCategory = cat;\n                    scrollOffset = 0;\n                    return true;\n                }\n                catY += 26;\n            }\n\n            int hudBtnX = winX + 8, hudBtnY = winY + winH - 32;\n            if (mouseX >= hudBtnX && mouseX <= hudBtnX + 104 && mouseY >= hudBtnY && mouseY <= hudBtnY + 22) {\n                hudEditMode = true;\n                return true;\n            }\n\n            int gridX = winX + 130, gridY = winY + 14;\n            int cardW = 148, cardH = 60;\n            int index = 0;\n\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.getCategory() != selectedCategory) continue;\n\n                int x = gridX + (index % 2) * (cardW + 10);\n                int y = gridY + (index / 2) * (cardH + 8) - scrollOffset;\n\n                if (y + cardH < winY + 10 || y > winY + winH - 10) {\n                    index++;\n                    continue;\n                }\n\n                if (mouseX >= x && mouseX <= x + cardW && mouseY >= y && mouseY <= y + cardH) {\n                    if (button == 1) {\n                        MinecraftClient.getInstance().setScreen(new ModuleSettingsScreen(this, mod));\n                        return true;\n                    } else if (button == 0) {\n                        mod.toggle();\n                        return true;\n                    }\n                }\n                index++;\n            }\n\n            return super.mouseClicked(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) {\n            if (hudEditMode && draggedModule != null && button == 0) {\n                int rawX = (int) mouseX - dragOffsetX;\n                int rawY = (int) mouseY - dragOffsetY;\n\n                int snappedX = Math.round((float) rawX / SNAP_GRID) * SNAP_GRID;\n                int snappedY = Math.round((float) rawY / SNAP_GRID) * SNAP_GRID;\n\n                draggedModule.x = MathHelper.clamp(snappedX, 2, width - draggedModule.width - 2);\n                draggedModule.y = MathHelper.clamp(snappedY, 2, height - draggedModule.height - 2);\n                return true;\n            }\n            return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);\n        }\n\n        @Override\n        public boolean mouseReleased(double mouseX, double mouseY, int button) {\n            draggedModule = null;\n            return super.mouseReleased(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean shouldPause() { return false; }\n    }\n}\n```","tokensUsed":null,"creditsCharged":0.0,"metadata":{"refs":["f0ab6153-1e4c-461a-8f76-299e597fe895.png"],"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T20:24:42.133041","sequenceNumber":13},{"id":527695,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"The generation was stopped before any content could be produced.","tokensUsed":100,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T20:24:42.133487","sequenceNumber":14},{"id":527700,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"bez tla tego tylko kobieta w kolku","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T20:25:11.241464","sequenceNumber":15},{"id":527701,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"<kodariBashHistory script=\"find . -name '*.png' -o -name '*.jpg' -o -name '*.webp' | head -40\" bytes=\"0\" id=\"c3b3f543-e54c-42cf-b359-3ca72bcc185d\" status=\"succeeded\">[success]</kodariBashHistory>Jasne — bez tła, tylko kobieta w kółku. Nie widzę tutaj obrazu do edycji — prześlij go proszę.","tokensUsed":544,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T20:25:11.241814","sequenceNumber":16},{"id":527712,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"masz\n\n[Viewing 1 image]","tokensUsed":null,"creditsCharged":0.0,"metadata":{"refs":["45206df1-33ff-4df6-84a3-77be414f8554.png"],"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T20:26:42.590815","sequenceNumber":17},{"id":527713,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"<kodariCreatedTexture id=\"5a31b1de-ff0b-4919-b738-f0b4aa492d82\" status=\"succeeded\">woman_circle.png</kodariCreatedTexture>Gotowe — usunęłam tło i napis, zostawiając kobietę w okrągłej ramce.","tokensUsed":3591,"creditsCharged":4.0,"metadata":{},"createdAt":"2026-10-22T20:26:42.591328","sequenceNumber":18},{"id":527734,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"a dodales do moda ze zamiast nazwy to logo","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T20:31:39.733827","sequenceNumber":19},{"id":527735,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"1. Sprawdzę, gdzie mod wyświetla nazwę.\n2. Jeśli to ekran lub interfejs moda, podmienię nazwę na logo.<kodariReadingFiles id=\"cf08c580-a093-4d77-8666-c39e30fdc752\" status=\"succeeded\"/><kodariReadFile id=\"cf08c580-a093-4d77-8666-c39e30fdc752\" status=\"succeeded\">src/main/java/com/client/BonitaHudClient.java</kodariReadFile><kodariReadFile id=\"cf08c580-a093-4d77-8666-c39e30fdc752\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariReadFile><kodariReadFile id=\"cf08c580-a093-4d77-8666-c39e30fdc752\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariReadFile>Obraz jest na razie samym plikiem — nie był jeszcze podłączony do moda. Wstawię go zamiast napisu w HUD-zie i menu; najpierw sprawdzam sygnatury rysowania tekstur w tej wersji Minecrafta.<kodariApplyingPatches id=\"ffe19cbf-5bbc-49e2-91e1-44b2f0ec5f17\" status=\"succeeded\"/><kodariPatchedFile id=\"ffe19cbf-5bbc-49e2-91e1-44b2f0ec5f17\" status=\"succeeded\">src/main/java/com/client/BonitaHudClient.java</kodariPatchedFile><kodariPatchedFile id=\"ffe19cbf-5bbc-49e2-91e1-44b2f0ec5f17\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariPatchedFile><kodariApplyingPatches id=\"b5ea6bc7-df42-4e05-aba3-32fa5b8c3292\" status=\"succeeded\"/><kodariApplyingPatches id=\"6e4b3efb-013a-49d1-b3c6-48d0ea0cbb29\" status=\"failed\" error=\"Invalid patch - the patch must start with '*** Begin Patch' and end with '*** End Patch'\"/><kodariMovedFile from=\"woman_circle.png\" to=\"src/main/resources/assets/bonita_client/textures/gui/woman_circle.png\"/><kodariBashHistory script=\"ls -l src/main/resources/assets/bonita_client/textures/gui/woman_circle.png\" bytes=\"107\" id=\"a03fbf9e-4b74-451d-9ba2-c460ff940c02\" status=\"succeeded\">[success]</kodariBashHistory><kodariBashHistory script=\"file woman_circle.png src/main/resources/assets/bonita_client/textures/gui/woman_circle.png 2&gt;/dev/null; ls -l woman_circle.png src/main/resources/assets/bonita_client/textures/gui/woman_circle.png 2&gt;/dev/null\" bytes=\"158\" id=\"e69e240d-a404-4518-8ec7-dbf7ac24e933\" status=\"failed\" error=\"Exit code 2\">[failed]</kodariBashHistory><kodariBashHistory script=\"cat src/main/resources/assets/bonita_client/textures/gui/woman_circle.png\" bytes=\"101\" id=\"d4fe5537-d214-4136-bd9b-20c6c3d60d08\" status=\"succeeded\">[success]</kodariBashHistory>Tak — podłączyłem logo do moda. Zastępuje napis „BONITA CLIENT” w HUD-zie i tytuł w menu; podtytuł z wersją Minecrafta pozostał.","tokensUsed":20132,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T20:31:39.734144","sequenceNumber":20},{"id":527746,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"a dodales update ten?\n\n---\n📎 Attached 1 file(s):\n\n### File: gemini-code-1792700664855.java\n```java\npackage com.client;\n\nimport net.fabricmc.api.ClientModInitializer;\nimport net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;\nimport net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;\nimport net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;\nimport net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.font.TextRenderer;\nimport net.minecraft.client.gui.DrawContext;\nimport net.minecraft.client.gui.screen.Screen;\nimport net.minecraft.client.network.PlayerListEntry;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.render.*;\nimport net.minecraft.client.util.InputUtil;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.entity.EquipmentSlot;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.attribute.EntityAttributeModifier;\nimport net.minecraft.entity.attribute.EntityAttributes;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.item.ItemStack;\nimport net.minecraft.text.Text;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport org.joml.Matrix4f;\nimport org.lwjgl.glfw.GLFW;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.FileWriter;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class FeatherClientMod implements ClientModInitializer {\n\n    public static final String MOD_ID = \"bonita_client\";\n    private static KeyBinding openMenuKey;\n    public static boolean isDestroyed = false; \n\n    public static String fakeModName = \"Bonita Client\";\n    public static String fakeModDesc = \"Modułowy klient PvP pod wersję 1.21.4\";\n\n    @Override\n    public void onInitializeClient() {\n        loadSettingsFromTxt();\n        ModuleManager.init();\n\n        openMenuKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(\n                \"Otwórz Menu Bonita Client\",\n                InputUtil.Type.KEYSYM,\n                GLFW.GLFW_KEY_RIGHT_SHIFT,\n                \"Bonita Client\"\n        ));\n\n        ClientTickEvents.END_CLIENT_TICK.register(client -> {\n            if (isDestroyed) return;\n\n            while (openMenuKey.wasPressed()) {\n                client.setScreen(new ClientMenuScreen());\n            }\n            CPSTracker.onTick();\n            \n            for (Module mod : ModuleManager.getModules()) {\n                mod.checkKeybind(client);\n                if (mod.isEnabled()) {\n                    mod.onTick(client);\n                }\n            }\n        });\n\n        HudRenderCallback.EVENT.register((context, tickCounter) -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.currentScreen instanceof ClientMenuScreen) return;\n\n            float delta = tickCounter.getTickDelta(false);\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.isEnabled() && mod instanceof DraggableHudModule hud) {\n                    hud.onRender2D(context, delta);\n                }\n            }\n        });\n\n        WorldRenderEvents.LAST.register(context -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.world == null || mc.player == null) return;\n\n            MatrixStack matrices = context.matrixStack();\n            Vec3d camPos = context.camera().getPos();\n\n            for (Entity entity : mc.world.getEntities()) {\n                if (entity == mc.player || !(entity instanceof LivingEntity living)) continue;\n\n                double distToEntity = mc.player.distanceTo(entity);\n\n                // Tracers aktywne tylko od zdefiniowanego dystansu (domyślnie od 40 kratek)\n                if (TracersModule.INSTANCE != null && TracersModule.INSTANCE.isEnabled()) {\n                    if (distToEntity >= TracersModule.INSTANCE.minDistance) {\n                        VertexConsumer consumer = context.consumers().getBuffer(RenderLayer.getLines());\n                        Matrix4f matrix = matrices.peek().getPositionMatrix();\n\n                        Vec3d start = new Vec3d(0, 0, 1)\n                                .rotateX(-(float)Math.toRadians(context.camera().getPitch()))\n                                .rotateY(-(float)Math.toRadians(context.camera().getYaw()));\n                        Vec3d end = entity.getPos().add(0, entity.getHeight() / 2.0, 0).subtract(camPos);\n\n                        float r = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentRed : 0.0f;\n                        float g = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentGreen : 0.7f;\n                        float b = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentBlue : 1.0f;\n\n                        consumer.vertex(matrix, (float) start.x, (float) start.y, (float) start.z).color(r, g, b, 1.0f).normal(0.0f, 1.0f, 0.0f);\n                        consumer.vertex(matrix, (float) end.x, (float) end.y, (float) end.z).color(r, g, b, 1.0f).normal(0.0f, 1.0f, 0.0f);\n                    }\n                }\n\n                // NameTags PvP\n                if (NameTagsModule.INSTANCE != null && NameTagsModule.INSTANCE.isEnabled()) {\n                    matrices.push();\n                    Vec3d pos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.5, 0);\n                    matrices.translate(pos.x, pos.y, pos.z);\n                    matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                    matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                    int ping = 0;\n                    if (entity instanceof PlayerEntity player && mc.getNetworkHandler() != null) {\n                        PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(player.getUuid());\n                        if (entry != null) ping = entry.getLatency();\n                    }\n\n                    int dist = (int) distToEntity;\n                    float hp = (int) (living.getHealth() * 10) / 10.0f;\n                    float maxHp = (int) (living.getMaxHealth() * 10) / 10.0f;\n\n                    String nameLine = entity.getName().getString();\n                    String infoLine = String.format(\"§b[%dms] §c[%.1f/%.1f] §7[%dm]\", ping, hp, maxHp, dist);\n\n                    var tr = mc.textRenderer;\n                    int maxW = Math.max(tr.getWidth(nameLine), tr.getWidth(infoLine));\n\n                    Matrix4f matrix = matrices.peek().getPositionMatrix();\n\n                    context.fill(-maxW / 2 - 4, -14, maxW / 2 + 4, 14, 0x88050B1A);\n                    tr.draw(nameLine, -tr.getWidth(nameLine) / 2.0f, -12, 0xFFFFFFFF, true, matrix, context.consumers(), TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                    tr.draw(infoLine, -tr.getWidth(infoLine) / 2.0f, -2, 0xFFAAAAAA, true, matrix, context.consumers(), TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n\n                    matrices.pop();\n                }\n            }\n        });\n    }\n\n    public static void loadSettingsFromTxt() {\n        try {\n            File dir = new File(\"config/bonitaclient\");\n            if (!dir.exists()) dir.mkdirs();\n            File txtFile = new File(dir, \"settings.txt\");\n            if (!txtFile.exists()) {\n                FileWriter writer = new FileWriter(txtFile);\n                writer.write(\"modName=Bonita Client\\n\");\n                writer.write(\"modDesc=Modułowy klient PvP pod wersję 1.21.4\\n\");\n                writer.close();\n            } else {\n                BufferedReader reader = new BufferedReader(new FileReader(txtFile));\n                String line;\n                while ((line = reader.readLine()) != null) {\n                    if (line.startsWith(\"modName=\")) {\n                        fakeModName = line.substring(\"modName=\".length()).trim();\n                    } else if (line.startsWith(\"modDesc=\")) {\n                        fakeModDesc = line.substring(\"modDesc=\".length()).trim();\n                    }\n                }\n                reader.close();\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    public static class CPSTracker {\n        private static final List<Long> leftClicks = new ArrayList<>();\n        private static final List<Long> rightClicks = new ArrayList<>();\n        private static boolean wasLeftPressed = false;\n        private static boolean wasRightPressed = false;\n\n        public static void onTick() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            long now = System.currentTimeMillis();\n\n            boolean left = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean right = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            if (left && !wasLeftPressed) leftClicks.add(now);\n            if (right && !wasRightPressed) rightClicks.add(now);\n\n            wasLeftPressed = left;\n            wasRightPressed = right;\n\n            leftClicks.removeIf(t -> now - t > 1000L);\n            rightClicks.removeIf(t -> now - t > 1000L);\n        }\n\n        public static int getLeftCPS() { return leftClicks.size(); }\n        public static int getRightCPS() { return rightClicks.size(); }\n    }\n\n    public enum ModuleCategory {\n        HUD(\"HUD & Ekran\"),\n        COMBAT(\"Combat / Cheats\"),\n        RENDER(\"Visuals & Motyw\");\n\n        public final String displayName;\n        ModuleCategory(String displayName) { this.displayName = displayName; }\n    }\n\n    public static abstract class Module {\n        private final String name;\n        private final String description;\n        private final ModuleCategory category;\n        private boolean enabled;\n        public int keyCode = GLFW.GLFW_KEY_UNKNOWN;\n\n        public Module(String name, String description, ModuleCategory category) {\n            this.name = name;\n            this.description = description;\n            this.category = category;\n            this.enabled = false;\n        }\n\n        public void toggle() {\n            this.enabled = !this.enabled;\n            if (this.enabled) onEnable(); else onDisable();\n        }\n\n        private boolean wasKeyPressed = false;\n        public void checkKeybind(MinecraftClient client) {\n            if (keyCode == GLFW.GLFW_KEY_UNKNOWN || client.currentScreen != null) return;\n            boolean pressed = InputUtil.isKeyPressed(client.getWindow().getHandle(), keyCode);\n            if (pressed && !wasKeyPressed) {\n                toggle();\n            }\n            wasKeyPressed = pressed;\n        }\n\n        public void onEnable() {}\n        public void onDisable() {}\n        public void onTick(MinecraftClient client) {}\n        public void onRender2D(DrawContext context, float tickDelta) {}\n\n        public String getName() { return name; }\n        public String getDescription() { return description; }\n        public ModuleCategory getCategory() { return category; }\n        public boolean isEnabled() { return enabled; }\n    }\n\n    public static abstract class DraggableHudModule extends Module {\n        public int x, y, width, height;\n\n        public DraggableHudModule(String name, String description, int defaultX, int defaultY, int width, int height) {\n            super(name, description, ModuleCategory.HUD);\n            this.x = defaultX;\n            this.y = defaultY;\n            this.width = width;\n            this.height = height;\n        }\n\n        public boolean isHovered(double mouseX, double mouseY) {\n            return mouseX >= x && mouseX <= x + width && mouseY >= y && mouseY <= y + height;\n        }\n    }\n\n    public static class ModuleManager {\n        private static final List<Module> modules = new ArrayList<>();\n\n        public static void init() {\n            modules.add(new LogoHudModule());\n            modules.add(new KeystrokesModule());\n            modules.add(new ArmorStatusModule());\n            modules.add(new FpsPingHudModule());\n            modules.add(new CoordinatesModule());\n\n            modules.add(new NameTagsModule());\n            modules.add(new TracersModule());\n            modules.add(new FreecamModule());\n            modules.add(new ReachModule());\n            modules.add(new NoPushModule());\n            modules.add(new DestroyModule());\n\n            modules.add(new ThemeEditorModule());\n        }\n\n        public static List<Module> getModules() { return modules; }\n\n        public static List<DraggableHudModule> getHudModules() {\n            List<DraggableHudModule> list = new ArrayList<>();\n            for (Module m : modules) {\n                if (m instanceof DraggableHudModule hud) list.add(hud);\n            }\n            return list;\n        }\n    }\n\n    public static class LogoHudModule extends DraggableHudModule {\n        public static LogoHudModule INSTANCE;\n        public static final Identifier LOGO_TEXTURE = Identifier.of(MOD_ID, \"textures/gui/logo.png\");\n\n        public LogoHudModule() {\n            super(\"Logo Watermark\", \"Graficzne logo Bonita Client na ekranie\", 12, 12, 165, 44);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var tr = mc.textRenderer;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.fill(x, y, x + 3, y + height, accent);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            context.drawTexture(RenderLayer::getGuiTextured, LOGO_TEXTURE, x + 6, y + 2, 0.0f, 0.0f, 40, 40, 40, 40);\n            context.drawText(tr, \"§b§lBONITA §f§lCLIENT\", x + 52, y + 9, 0xFFFFFFFF, true);\n            context.drawText(tr, \"§7FPS: §b\" + mc.getCurrentFps() + \" §8| §71.21.4\", x + 52, y + 23, 0xFFAAAAAA, false);\n        }\n    }\n\n    public static class KeystrokesModule extends DraggableHudModule {\n        public KeystrokesModule() {\n            super(\"Keystrokes & CPS\", \"Klawisze WASD, Spacja oraz licznik kliknięć CPS\", 12, 115, 78, 96);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var opt = mc.options;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            drawKey(context, \"W\", x + 26, y, 24, 22, opt.forwardKey.isPressed(), accent);\n            drawKey(context, \"A\", x, y + 24, 24, 22, opt.leftKey.isPressed(), accent);\n            drawKey(context, \"S\", x + 26, y + 24, 24, 22, opt.backKey.isPressed(), accent);\n            drawKey(context, \"D\", x + 52, y + 24, 24, 22, opt.rightKey.isPressed(), accent);\n\n            boolean lmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean rmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            drawKey(context, CPSTracker.getLeftCPS() + \" CPS\", x, y + 48, 37, 22, lmb, accent);\n            drawKey(context, CPSTracker.getRightCPS() + \" CPS\", x + 39, y + 48, 37, 22, rmb, accent);\n            drawKey(context, \"───\", x, y + 72, 76, 18, opt.jumpKey.isPressed(), accent);\n        }\n\n        private void drawKey(DrawContext ctx, String label, int kx, int ky, int kw, int kh, boolean pressed, int accentColor) {\n            ctx.fill(kx, ky, kx + kw, ky + kh, pressed ? accentColor : 0xAA081026);\n            ctx.drawBorder(kx, ky, kw, kh, accentColor & 0x77FFFFFF);\n            var tr = MinecraftClient.getInstance().textRenderer;\n            ctx.drawCenteredTextWithShadow(tr, label, kx + kw / 2, ky + (kh - 8) / 2, pressed ? 0xFF000000 : 0xFFFFFFFF);\n        }\n    }\n\n    public static class ArmorStatusModule extends DraggableHudModule {\n        public ArmorStatusModule() {\n            super(\"Armor Status\", \"Pokazuje wytrzymałość założonej zbroi obok paska\", 12, 220, 65, 76);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n\n            EquipmentSlot[] slots = {EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET};\n            int offsetY = 0;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0x80081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            for (EquipmentSlot slot : slots) {\n                ItemStack stack = mc.player.getEquippedStack(slot);\n                if (!stack.isEmpty()) {\n                    context.drawItem(stack, x + 4, y + offsetY + 2);\n                    if (stack.isDamageable()) {\n                        int max = stack.getMaxDamage();\n                        int cur = max - stack.getDamage();\n                        int pct = (int) ((cur / (float) max) * 100);\n                        int color = pct > 50 ? 0xFF55FF55 : (pct > 20 ? 0xFFFFAA00 : 0xFFFF5555);\n                        context.drawText(mc.textRenderer, pct + \"%\", x + 24, y + offsetY + 6, color, true);\n                    }\n                }\n                offsetY += 18;\n            }\n        }\n    }\n\n    public static class FpsPingHudModule extends DraggableHudModule {\n        public FpsPingHudModule() {\n            super(\"FPS & Ping\", \"Wyświetla aktualne FPS, Ping oraz CPS w kafelku\", 190, 12, 115, 24);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            int fps = mc.getCurrentFps();\n            int ping = 0;\n            if (mc.getNetworkHandler() != null && mc.player != null) {\n                PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(mc.player.getUuid());\n                if (entry != null) ping = entry.getLatency();\n            }\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent);\n            context.drawCenteredTextWithShadow(mc.textRenderer, \"§b\" + fps + \" FPS §8| §a\" + ping + \" ms\", x + width / 2, y + 8, 0xFFFFFF);\n        }\n    }\n\n    public static class CoordinatesModule extends DraggableHudModule {\n        public CoordinatesModule() {\n            super(\"Coordinates\", \"Pokazuje współrzędne X, Y, Z oraz kierunek świata\", 190, 42, 135, 36);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            String coords = String.format(\"§bX: §f%.0f §bY: §f%.0f §bZ: §f%.0f\", mc.player.getX(), mc.player.getY(), mc.player.getZ());\n            String dir = \"§7Kierunek: §f\" + mc.player.getHorizontalFacing().asString().toUpperCase();\n\n            context.drawText(mc.textRenderer, coords, x + 6, y + 7, 0xFFFFFF, true);\n            context.drawText(mc.textRenderer, dir, x + 6, y + 20, 0xAAAAAA, false);\n        }\n    }\n\n    public static class ThemeEditorModule extends Module {\n        public static ThemeEditorModule INSTANCE;\n\n        public float accentRed = 0.0f;\n        public float accentGreen = 0.7f;\n        public float accentBlue = 1.0f;\n        public int guiAlpha = 242;\n\n        public ThemeEditorModule() {\n            super(\"Theme Editor\", \"Konfiguracja kolorów i przezroczystości (%) menu\", ModuleCategory.RENDER);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        public int getAccentColor() {\n            int r = (int)(accentRed * 255);\n            int g = (int)(accentGreen * 255);\n            int b = (int)(accentBlue * 255);\n            return (0xFF << 24) | (r << 16) | (g << 8) | b;\n        }\n\n        public int getBackgroundColor() {\n            return (guiAlpha << 24) | 0x081026;\n        }\n    }\n\n    public static class DestroyModule extends Module {\n        public DestroyModule() {\n            super(\"Destroy (Self-Destruct)\", \"Wyłącza mod i zmienia nazwę na Sodium Extra\", ModuleCategory.COMBAT);\n        }\n\n        @Override\n        public void onEnable() {\n            for (Module m : ModuleManager.getModules()) {\n                if (m.isEnabled() && m != this) {\n                    m.toggle();\n                }\n            }\n            isDestroyed = true;\n            fakeModName = \"Sodium Extra\";\n            fakeModDesc = \"Optimized rendering engine for Minecraft\";\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                mc.player.sendMessage(Text.literal(\"§b[Sodium Extra] Zaktualizowano pomyślnie.\"), false);\n            }\n            if (mc.currentScreen != null) {\n                mc.setScreen(null);\n            }\n        }\n    }\n\n    public static class NameTagsModule extends Module {\n        public static NameTagsModule INSTANCE;\n\n        public NameTagsModule() {\n            super(\"NameTags\", \"Wyświetla HP, ping i dystans nad graczami\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n            this.toggle();\n        }\n    }\n\n    public static class TracersModule extends Module {\n        public static TracersModule INSTANCE;\n        public double minDistance = 40.0; // Linie pojawiają się od 40 kratek\n\n        public TracersModule() {\n            super(\"Tracers\", \"Rysuje linie 3D do graczy od 40+ kratek\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n    }\n\n    public static class FreecamModule extends Module {\n        public static FreecamModule INSTANCE;\n        public float speed = 0.8f;\n        public Vec3d savedPos;\n        public Vec3d camPos = Vec3d.ZERO;\n        private static final Identifier FREECAM_ID = Identifier.of(MOD_ID, \"freecam_reach\");\n\n        public FreecamModule() {\n            super(\"Freecam\", \"Swobodna kamera z możliwością interakcji\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onEnable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                savedPos = mc.player.getPos();\n                camPos = savedPos;\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                if (savedPos != null) {\n                    mc.player.setPosition(savedPos);\n                    mc.player.setVelocity(Vec3d.ZERO);\n                }\n                mc.player.noClip = false;\n                var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n                if (reach != null) reach.removeModifier(FREECAM_ID);\n            }\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null || savedPos == null) return;\n\n            float yaw = mc.player.getYaw();\n            float pitch = mc.player.getPitch();\n            Vec3d forward = Vec3d.fromPolar(pitch, yaw);\n            Vec3d right = Vec3d.fromPolar(0, yaw + 90);\n            Vec3d motion = Vec3d.ZERO;\n\n            if (mc.options.forwardKey.isPressed()) motion = motion.add(forward);\n            if (mc.options.backKey.isPressed()) motion = motion.subtract(forward);\n            if (mc.options.rightKey.isPressed()) motion = motion.add(right);\n            if (mc.options.leftKey.isPressed()) motion = motion.subtract(right);\n            if (mc.options.jumpKey.isPressed()) motion = motion.add(0, 1, 0);\n            if (mc.options.sneakKey.isPressed()) motion = motion.subtract(0, 1, 0);\n\n            if (motion.lengthSquared() > 0) motion = motion.normalize().multiply(speed);\n            camPos = camPos.add(motion);\n\n            mc.player.noClip = true;\n            mc.player.setPosition(camPos);\n            mc.player.setVelocity(Vec3d.ZERO);\n            mc.player.fallDistance = 0.0f;\n            mc.player.setOnGround(true);\n\n            var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (reach != null) {\n                reach.removeModifier(FREECAM_ID);\n                reach.addTemporaryModifier(new EntityAttributeModifier(FREECAM_ID, 6.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n    }\n\n    public static class ReachModule extends Module {\n        public static ReachModule INSTANCE;\n        public double reachDistance = 4.5;\n        private static final Identifier REACH_ID = Identifier.of(MOD_ID, \"reach_boost\");\n\n        public ReachModule() {\n            super(\"Reach\", \"Zwiększa zasięg bicia graczy\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) {\n                instance.removeModifier(REACH_ID);\n                instance.addTemporaryModifier(new EntityAttributeModifier(REACH_ID, reachDistance - 3.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) instance.removeModifier(REACH_ID);\n        }\n    }\n\n    public static class NoPushModule extends Module {\n        public static NoPushModule INSTANCE;\n\n        public NoPushModule() {\n            super(\"NoPush\", \"Blokuje odpychanie i ułatwia wchodzenie pereł w ściany\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player != null) {\n                mc.player.pushSpeedReduction = 1.0f;\n                if (mc.player.horizontalCollision) {\n                    Vec3d vel = mc.player.getVelocity();\n                    if (vel.y < 0) {\n                        mc.player.setVelocity(vel.x * 1.05, vel.y, vel.z * 1.05);\n                    }\n                }\n            }\n        }\n    }\n\n    public static class ModuleSettingsScreen extends Screen {\n        private final Screen parent;\n        private final Module module;\n        private boolean waitingForKey = false;\n        private int activeSlider = -1;\n\n        public ModuleSettingsScreen(Screen parent, Module module) {\n            super(Text.literal(\"Ustawienia: \" + module.getName()));\n            this.parent = parent;\n            this.module = module;\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, 0x85050B1A);\n\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2;\n            int winY = (height - winH) / 2;\n\n            context.fill(winX, winY, winX + winW, winY + winH, bgCol);\n            context.drawBorder(winX, winY, winW, winH, accentCol);\n\n            context.drawText(textRenderer, \"§b§lUSTAWIENIA MODUŁU\", winX + 16, winY + 16, 0xFFFFFFFF, true);\n            context.drawText(textRenderer, \"§7\" + module.getName() + \" - \" + module.getDescription(), winX + 16, winY + 30, 0x888888, false);\n\n            int startY = winY + 56;\n\n            context.drawText(textRenderer, \"Skrót klawiszowy (Bind):\", winX + 20, startY + 4, 0xFFFFFF, false);\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            boolean hoverBind = mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH;\n            context.fill(bindBtnX, bindBtnY, bindBtnX + bindBtnW, bindBtnY + bindBtnH, hoverBind ? accentCol : 0xFF0A192F);\n            String keyName = waitingForKey ? \"§eNaciśnij klawisz...\" : (module.keyCode == GLFW.GLFW_KEY_UNKNOWN ? \"Brak\" : InputUtil.fromGlfwCode(module.keyCode, 0).getLocalizedText().getString().toUpperCase());\n            context.drawCenteredTextWithShadow(textRenderer, keyName, bindBtnX + bindBtnW / 2, bindBtnY + 6, 0xFFFFFF);\n\n            startY += 32;\n\n            if (module instanceof ThemeEditorModule theme) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Czerwony (R)\", theme.accentRed * 255.0f, 0.0, 255.0, 0);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Zielony (G)\", theme.accentGreen * 255.0f, 0.0, 255.0, 1);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Niebieski (B)\", theme.accentBlue * 255.0f, 0.0, 255.0, 2);\n                startY += 32;\n                float alphaPct = (theme.guiAlpha / 255.0f) * 100.0f;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Przezroczystość menu (%)\", alphaPct, 20.0, 100.0, 3);\n            } else if (module instanceof TracersModule tracers) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Min Dystans Tracerów (m)\", tracers.minDistance, 10.0, 150.0, 0);\n            } else if (module instanceof ReachModule r) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Zasięg bicia (Reach)\", r.reachDistance, 3.0, 6.0, 0);\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            boolean hoverBack = mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH;\n            context.fill(backBtnX, backBtnY, backBtnX + backBtnW, backBtnY + backBtnH, hoverBack ? accentCol : 0xFF0A192F);\n            context.drawBorder(backBtnX, backBtnY, backBtnW, backBtnH, accentCol);\n            context.drawCenteredTextWithShadow(textRenderer, \"§f§lZapisz i Wróć\", backBtnX + backBtnW / 2, backBtnY + 9, 0xFFFFFF);\n        }\n\n        private void drawSlider(DrawContext ctx, double mouseX, double mouseY, int x, int y, int w, String label, double val, double min, double max, int id) {\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n            ctx.drawText(textRenderer, String.format(\"%s: %.1f\", label, val), x, y, 0xFFFFFF, false);\n            int sY = y + 12, sH = 6;\n            double pct = (val - min) / (max - min);\n            ctx.fill(x, sY, x + w, sY + sH, 0xFF050B1A);\n            ctx.fill(x, sY, x + (int) (w * pct), sY + sH, accent);\n\n            if (activeSlider == id && GLFW.glfwGetMouseButton(MinecraftClient.getInstance().getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS) {\n                double newPct = MathHelper.clamp((mouseX - x) / (double) w, 0.0, 1.0);\n                double newVal = min + (newPct * (max - min));\n                setSliderValue(id, newVal);\n            }\n        }\n\n        private void setSliderValue(int id, double val) {\n            if (module instanceof ThemeEditorModule theme) {\n                if (id == 0) theme.accentRed = (float)(val / 255.0);\n                if (id == 1) theme.accentGreen = (float)(val / 255.0);\n                if (id == 2) theme.accentBlue = (float)(val / 255.0);\n                if (id == 3) theme.guiAlpha = (int)((val / 100.0f) * 255.0f);\n            } else if (module instanceof TracersModule tracers) {\n                if (id == 0) tracers.minDistance = val;\n            } else if (module instanceof ReachModule r) {\n                if (id == 0) r.reachDistance = val;\n            }\n        }\n\n        @Override\n        public boolean mouseClicked(double mouseX, double mouseY, int button) {\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2, winY = (height - winH) / 2;\n            int startY = winY + 56;\n\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            if (mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH) {\n                waitingForKey = true;\n                return true;\n            }\n\n            startY += 32;\n\n            int slidersCount = module instanceof ThemeEditorModule ? 4 : (module instanceof TracersModule || module instanceof ReachModule ? 1 : 0);\n            for (int i = 0; i < slidersCount; i++) {\n                if (mouseX >= winX + 20 && mouseX <= winX + 360 && mouseY >= startY + 10 && mouseY <= startY + 24) {\n                    activeSlider = i;\n                    setSliderFromMouse(mouseX, winX + 20, 340, i);\n                    return true;\n                }\n                startY += 32;\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            if (mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH) {\n                MinecraftClient.getInstance().setScreen(parent);\n                return true;\n            }\n\n            return super.mouseClicked(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) {\n            if (activeSlider != -1) {\n                setSliderFromMouse(mouseX, (width - 380) / 2 + 20, 340, activeSlider);\n                return true;\n            }\n            return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);\n        }\n\n        private void setSliderFromMouse(double mouseX, int sliderX, int sliderW, int id) {\n            double pct = MathHelper.clamp((mouseX - sliderX) / (double) sliderW, 0.0, 1.0);\n            double min = 0, max = 1;\n            if (module instanceof ThemeEditorModule) {\n                if (id >= 0 && id <= 2) { min = 0.0; max = 255.0; }\n                else if (id == 3) { min = 20.0; max = 100.0; }\n            } else if (module instanceof TracersModule) {\n                min = 10.0; max = 150.0;\n            } else if (module instanceof ReachModule) {\n                min = 3.0; max = 6.0;\n            }\n\n            setSliderValue(id, min + (pct * (max - min)));\n        }\n\n        @Override\n        public boolean mouseReleased(double mouseX, double mouseY, int button) {\n            activeSlider = -1;\n            return super.mouseReleased(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean keyPressed(int keyCode, int scanCode, int modifiers) {\n            if (waitingForKey) {\n                if (keyCode == GLFW.GLFW_KEY_ESCAPE) {\n                    module.keyCode = GLFW.GLFW_KEY_UNKNOWN;\n                } else {\n                    module.keyCode = keyCode;\n                }\n                waitingForKey = false;\n                return true;\n            }\n            return super.keyPressed(keyCode, scanCode, modifiers);\n        }\n\n        @Override\n        public boolean shouldPause() { return false; }\n    }\n\n    public static class ClientMenuScreen extends Screen {\n        private ModuleCategory selectedCategory = ModuleCategory.HUD;\n        private boolean hudEditMode = false;\n        private DraggableHudModule draggedModule = null;\n        private int dragOffsetX = 0, dragOffsetY = 0;\n        private static final int SNAP_GRID = 4;\n        private int scrollOffset = 0;\n\n        public ClientMenuScreen() {\n            super(Text.literal(fakeModName));\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, hudEditMode ? 0x45050B1A : (bgCol & 0x80FFFFFF));\n\n            if (hudEditMode) {\n                context.fill(width / 2, 0, width / 2 + 1, height, accentCol & 0x40FFFFFF);\n                context.fill(0, height / 2, width, height / 2 + 1, accentCol & 0x40FFFFFF);\n            }\n\n            for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                if (!hud.isEnabled()) continue;\n                hud.onRender2D(context, delta);\n\n                boolean hovered = hud.isHovered(mouseX, mouseY) || hud == draggedModule;\n                int borderColor = hovered ? accentCol : (hudEditMode ? 0x80FFFFFF : (accentCol & 0x77FFFFFF));\n                context.drawBorder(hud.x - 1, hud.y - 1, hud.width + 2, hud.height + 2, borderColor);\n            }\n\n            if (hudEditMode) {\n                int backW = 170, backH = 26;\n                int backX = (width - backW) / 2, backY = 14;\n                boolean hoverBack = mouseX >= backX && mouseX <= backX + backW && mouseY >= backY && mouseY <= backY + backH;\n\n                context.fill(backX, backY, backX + backW, backY + backH, hoverBack ? accentCol : 0xEE081026);\n                context.drawBorder(backX, backY, backW, backH, accentCol);\n                context.drawCenteredTextWithShadow(textRenderer, \"§b§l⬅ Wróć do Menu Modów\", backX + backW / 2, backY + 9, 0xFFFFFF);\n                context.drawCenteredTextWithShadow(textRenderer, \"§7Przeciągaj elementy HUD myszką po ekranie\", width / 2, backY + 34, 0xAAAAAA);\n                return;\n            }\n\n            int winW = 450;\n            int winH = 290;\n            int winX = (width - winW) / 2;\n            int winY = (height - winH) / 2;\n\n            context.fill(winX, winY, winX + winW, winY + winH, bgCol);\n            context.fill(winX, winY, winX + 120, winY + winH, bgCol & 0xF8FFFFFF);\n            context.drawBorder(winX, winY, winW, winH, accentCol);\n\n            context.drawText(textRenderer, \"§b§l\" + fakeModName.split(\" \")[0], winX + 16, winY + 16, 0xFFFFFFFF, true);\n            context.drawText(textRenderer, \"§f§l\" + (fakeModName.contains(\" \") ? fakeModName.split(\" \")[1] : \"CLIENT\"), winX + 16, winY + 28, accentCol | 0xFF000000, true);\n\n            int catY = winY + 54;\n            for (ModuleCategory cat : ModuleCategory.values()) {\n                boolean active = (cat == selectedCategory);\n                if (active) {\n                    context.fill(winX + 6, catY, winX + 114, catY + 22, accentCol & 0x35FFFFFF);\n                    context.fill(winX + 6, catY, winX + 8, catY + 22, accentCol);\n                }\n                context.drawText(textRenderer, cat.displayName, winX + 14, catY + 7, active ? 0xFFFFFFFF : 0xFF888888, false);\n                catY += 26;\n            }\n\n            int hudBtnX = winX + 8;\n            int hudBtnY = winY + winH - 32;\n            boolean hoverHudBtn = mouseX >= hudBtnX && mouseX <= hudBtnX + 104 && mouseY >= hudBtnY && mouseY <= hudBtnY + 22;\n            context.fill(hudBtnX, hudBtnY, hudBtnX + 104, hudBtnY + 22, hoverHudBtn ? accentCol : 0xFF0A192F);\n            context.drawCenteredTextWithShadow(textRenderer, \"§f§l📐 Układaj HUD\", hudBtnX + 52, hudBtnY + 7, 0xFFFFFF);\n\n            int gridX = winX + 130;\n            int gridY = winY + 14;\n            int cardW = 148;\n            int cardH = 60;\n            int index = 0;\n\n            context.enableScissor(winX + 122, winY + 10, winX + winW - 6, winY + winH - 10);\n\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.getCategory() != selectedCategory) continue;\n\n                int x = gridX + (index % 2) * (cardW + 10);\n                int y = gridY + (index / 2) * (cardH + 8) - scrollOffset;\n\n                context.fill(x, y, x + cardW, y + cardH, mod.isEnabled() ? 0xFF0D1B2A : 0xFF0A1220);\n                context.drawBorder(x, y, cardW, cardH, mod.isEnabled() ? accentCol : 0x3300B4D8);\n\n                context.drawText(textRenderer, mod.getName(), x + 8, y + 7, 0xFFFFFFFF, true);\n                context.drawText(textRenderer, textRenderer.trimToWidth(mod.getDescription(), cardW - 14), x + 8, y + 19, 0xFF888888, false);\n\n                if (mod instanceof TracersModule tracers) {\n                    int sX = x + 8, sY = y + 32, sW = cardW - 16;\n                    double pct = (tracers.minDistance - 10.0) / 140.0;\n                    context.fill(sX, sY, sX + sW, sY + 4, 0xFF050B1A);\n                    context.fill(sX, sY, sX + (int) (sW * pct), sY + 4, accentCol);\n                    context.drawText(textRenderer, String.format(\"Min Dystans: %.0fm\", tracers.minDistance), sX, sY + 7, 0xFFCCCCCC, false);\n                }\n\n                int pillX = x + cardW - 38;\n                int pillY = y + cardH - 16;\n                context.fill(pillX, pillY, pillX + 30, pillY + 12, mod.isEnabled() ? accentCol : 0xFF152238);\n                context.drawCenteredTextWithShadow(textRenderer, mod.isEnabled() ? \"ON\" : \"OFF\", pillX + 15, pillY + 2, 0xFFFFFF);\n\n                index++;\n            }\n\n            context.disableScissor();\n        }\n\n        @Override\n        public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {\n            if (!hudEditMode) {\n                scrollOffset = MathHelper.clamp(scrollOffset - (int) (verticalAmount * 24), 0, 520);\n            }\n            return true;\n        }\n\n        @Override\n        public boolean mouseClicked(double mouseX, double mouseY, int button) {\n            if (hudEditMode) {\n                int backW = 170, backH = 26;\n                int backX = (width - backW) / 2, backY = 14;\n                if (mouseX >= backX && mouseX <= backX + backW && mouseY >= backY && mouseY <= backY + backH) {\n                    hudEditMode = false;\n                    return true;\n                }\n\n                if (button == 0) {\n                    for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                        if (hud.isEnabled() && hud.isHovered(mouseX, mouseY)) {\n                            draggedModule = hud;\n                            dragOffsetX = (int) mouseX - hud.x;\n                            dragOffsetY = (int) mouseY - hud.y;\n                            return true;\n                        }\n                    }\n                }\n                return super.mouseClicked(mouseX, mouseY, button);\n            }\n\n            int winW = 450, winH = 290;\n            int winX = (width - winW) / 2, winY = (height - winH) / 2;\n\n            if (mouseX < winX || mouseX > winX + winW || mouseY < winY || mouseY > winY + winH) {\n                if (button == 0) {\n                    for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                        if (hud.isEnabled() && hud.isHovered(mouseX, mouseY)) {\n                            draggedModule = hud;\n                            dragOffsetX = (int) mouseX - hud.x;\n                            dragOffsetY = (int) mouseY - hud.y;\n                            return true;\n                        }\n                    }\n                }\n            }\n\n            int catY = winY + 54;\n            for (ModuleCategory cat : ModuleCategory.values()) {\n                if (mouseX >= winX + 6 && mouseX <= winX + 114 && mouseY >= catY && mouseY <= catY + 22) {\n                    selectedCategory = cat;\n                    scrollOffset = 0;\n                    return true;\n                }\n                catY += 26;\n            }\n\n            int hudBtnX = winX + 8, hudBtnY = winY + winH - 32;\n            if (mouseX >= hudBtnX && mouseX <= hudBtnX + 104 && mouseY >= hudBtnY && mouseY <= hudBtnY + 22) {\n                hudEditMode = true;\n                return true;\n            }\n\n            int gridX = winX + 130, gridY = winY + 14;\n            int cardW = 148, cardH = 60;\n            int index = 0;\n\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.getCategory() != selectedCategory) continue;\n\n                int x = gridX + (index % 2) * (cardW + 10);\n                int y = gridY + (index / 2) * (cardH + 8) - scrollOffset;\n\n                if (y + cardH < winY + 10 || y > winY + winH - 10) {\n                    index++;\n                    continue;\n                }\n\n                if (mouseX >= x && mouseX <= x + cardW && mouseY >= y && mouseY <= y + cardH) {\n                    if (button == 1) {\n                        MinecraftClient.getInstance().setScreen(new ModuleSettingsScreen(this, mod));\n                        return true;\n                    } else if (button == 0) {\n                        mod.toggle();\n                        return true;\n                    }\n                }\n                index++;\n            }\n\n            return super.mouseClicked(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) {\n            if (hudEditMode && draggedModule != null && button == 0) {\n                int rawX = (int) mouseX - dragOffsetX;\n                int rawY = (int) mouseY - dragOffsetY;\n\n                int snappedX = Math.round((float) rawX / SNAP_GRID) * SNAP_GRID;\n                int snappedY = Math.round((float) rawY / SNAP_GRID) * SNAP_GRID;\n\n                draggedModule.x = MathHelper.clamp(snappedX, 2, width - draggedModule.width - 2);\n                draggedModule.y = MathHelper.clamp(snappedY, 2, height - draggedModule.height - 2);\n                return true;\n            }\n            return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);\n        }\n\n        @Override\n        public boolean mouseReleased(double mouseX, double mouseY, int button) {\n            draggedModule = null;\n            return super.mouseReleased(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean shouldPause() { return false; }\n    }\n}\n```","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T20:34:16.984918","sequenceNumber":21},{"id":527747,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"<kodariReadingFiles id=\"ce0d0dbc-ee35-49bb-a2ac-d22849832d1e\" status=\"succeeded\"/><kodariReadFile id=\"ce0d0dbc-ee35-49bb-a2ac-d22849832d1e\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariReadFile>Nie — dodałem tylko logo. Załączony update nie został jeszcze wgrany; obecny mod ma prostsze menu oraz moduły Tracers i Name Tags. Logo kobiety pozostaje podłączone.","tokensUsed":12686,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T20:34:16.985476","sequenceNumber":22},{"id":527748,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"zrob aktualizje wraz z logiem","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T20:35:11.082241","sequenceNumber":23},{"id":527749,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"Jaką aktualizację mam wdrożyć? Podaj proszę, co ma się zmienić oraz czy przez „log” masz na myśli logowanie zdarzeń w grze, czy changelog opisujący aktualizację.","tokensUsed":469,"creditsCharged":1.0,"metadata":{},"createdAt":"2026-10-22T20:35:11.082622","sequenceNumber":24},{"id":527830,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"z tego dodaj to czego nie ma w starej\n\n---\n📎 Attached 1 file(s):\n\n### File: gemini-code-1792700664855.java\n```java\npackage com.client;\n\nimport net.fabricmc.api.ClientModInitializer;\nimport net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;\nimport net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;\nimport net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;\nimport net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.font.TextRenderer;\nimport net.minecraft.client.gui.DrawContext;\nimport net.minecraft.client.gui.screen.Screen;\nimport net.minecraft.client.network.PlayerListEntry;\nimport net.minecraft.client.option.KeyBinding;\nimport net.minecraft.client.render.*;\nimport net.minecraft.client.util.InputUtil;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.entity.EquipmentSlot;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.attribute.EntityAttributeModifier;\nimport net.minecraft.entity.attribute.EntityAttributes;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.item.ItemStack;\nimport net.minecraft.text.Text;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport org.joml.Matrix4f;\nimport org.lwjgl.glfw.GLFW;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.FileWriter;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class FeatherClientMod implements ClientModInitializer {\n\n    public static final String MOD_ID = \"bonita_client\";\n    private static KeyBinding openMenuKey;\n    public static boolean isDestroyed = false; \n\n    public static String fakeModName = \"Bonita Client\";\n    public static String fakeModDesc = \"Modułowy klient PvP pod wersję 1.21.4\";\n\n    @Override\n    public void onInitializeClient() {\n        loadSettingsFromTxt();\n        ModuleManager.init();\n\n        openMenuKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(\n                \"Otwórz Menu Bonita Client\",\n                InputUtil.Type.KEYSYM,\n                GLFW.GLFW_KEY_RIGHT_SHIFT,\n                \"Bonita Client\"\n        ));\n\n        ClientTickEvents.END_CLIENT_TICK.register(client -> {\n            if (isDestroyed) return;\n\n            while (openMenuKey.wasPressed()) {\n                client.setScreen(new ClientMenuScreen());\n            }\n            CPSTracker.onTick();\n            \n            for (Module mod : ModuleManager.getModules()) {\n                mod.checkKeybind(client);\n                if (mod.isEnabled()) {\n                    mod.onTick(client);\n                }\n            }\n        });\n\n        HudRenderCallback.EVENT.register((context, tickCounter) -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.currentScreen instanceof ClientMenuScreen) return;\n\n            float delta = tickCounter.getTickDelta(false);\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.isEnabled() && mod instanceof DraggableHudModule hud) {\n                    hud.onRender2D(context, delta);\n                }\n            }\n        });\n\n        WorldRenderEvents.LAST.register(context -> {\n            if (isDestroyed) return;\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.world == null || mc.player == null) return;\n\n            MatrixStack matrices = context.matrixStack();\n            Vec3d camPos = context.camera().getPos();\n\n            for (Entity entity : mc.world.getEntities()) {\n                if (entity == mc.player || !(entity instanceof LivingEntity living)) continue;\n\n                double distToEntity = mc.player.distanceTo(entity);\n\n                // Tracers aktywne tylko od zdefiniowanego dystansu (domyślnie od 40 kratek)\n                if (TracersModule.INSTANCE != null && TracersModule.INSTANCE.isEnabled()) {\n                    if (distToEntity >= TracersModule.INSTANCE.minDistance) {\n                        VertexConsumer consumer = context.consumers().getBuffer(RenderLayer.getLines());\n                        Matrix4f matrix = matrices.peek().getPositionMatrix();\n\n                        Vec3d start = new Vec3d(0, 0, 1)\n                                .rotateX(-(float)Math.toRadians(context.camera().getPitch()))\n                                .rotateY(-(float)Math.toRadians(context.camera().getYaw()));\n                        Vec3d end = entity.getPos().add(0, entity.getHeight() / 2.0, 0).subtract(camPos);\n\n                        float r = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentRed : 0.0f;\n                        float g = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentGreen : 0.7f;\n                        float b = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.accentBlue : 1.0f;\n\n                        consumer.vertex(matrix, (float) start.x, (float) start.y, (float) start.z).color(r, g, b, 1.0f).normal(0.0f, 1.0f, 0.0f);\n                        consumer.vertex(matrix, (float) end.x, (float) end.y, (float) end.z).color(r, g, b, 1.0f).normal(0.0f, 1.0f, 0.0f);\n                    }\n                }\n\n                // NameTags PvP\n                if (NameTagsModule.INSTANCE != null && NameTagsModule.INSTANCE.isEnabled()) {\n                    matrices.push();\n                    Vec3d pos = entity.getPos().subtract(camPos).add(0, entity.getHeight() + 0.5, 0);\n                    matrices.translate(pos.x, pos.y, pos.z);\n                    matrices.multiply(mc.getEntityRenderDispatcher().getRotation());\n                    matrices.scale(-0.025f, -0.025f, 0.025f);\n\n                    int ping = 0;\n                    if (entity instanceof PlayerEntity player && mc.getNetworkHandler() != null) {\n                        PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(player.getUuid());\n                        if (entry != null) ping = entry.getLatency();\n                    }\n\n                    int dist = (int) distToEntity;\n                    float hp = (int) (living.getHealth() * 10) / 10.0f;\n                    float maxHp = (int) (living.getMaxHealth() * 10) / 10.0f;\n\n                    String nameLine = entity.getName().getString();\n                    String infoLine = String.format(\"§b[%dms] §c[%.1f/%.1f] §7[%dm]\", ping, hp, maxHp, dist);\n\n                    var tr = mc.textRenderer;\n                    int maxW = Math.max(tr.getWidth(nameLine), tr.getWidth(infoLine));\n\n                    Matrix4f matrix = matrices.peek().getPositionMatrix();\n\n                    context.fill(-maxW / 2 - 4, -14, maxW / 2 + 4, 14, 0x88050B1A);\n                    tr.draw(nameLine, -tr.getWidth(nameLine) / 2.0f, -12, 0xFFFFFFFF, true, matrix, context.consumers(), TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n                    tr.draw(infoLine, -tr.getWidth(infoLine) / 2.0f, -2, 0xFFAAAAAA, true, matrix, context.consumers(), TextRenderer.TextLayerType.SEE_THROUGH, 0, 15728880);\n\n                    matrices.pop();\n                }\n            }\n        });\n    }\n\n    public static void loadSettingsFromTxt() {\n        try {\n            File dir = new File(\"config/bonitaclient\");\n            if (!dir.exists()) dir.mkdirs();\n            File txtFile = new File(dir, \"settings.txt\");\n            if (!txtFile.exists()) {\n                FileWriter writer = new FileWriter(txtFile);\n                writer.write(\"modName=Bonita Client\\n\");\n                writer.write(\"modDesc=Modułowy klient PvP pod wersję 1.21.4\\n\");\n                writer.close();\n            } else {\n                BufferedReader reader = new BufferedReader(new FileReader(txtFile));\n                String line;\n                while ((line = reader.readLine()) != null) {\n                    if (line.startsWith(\"modName=\")) {\n                        fakeModName = line.substring(\"modName=\".length()).trim();\n                    } else if (line.startsWith(\"modDesc=\")) {\n                        fakeModDesc = line.substring(\"modDesc=\".length()).trim();\n                    }\n                }\n                reader.close();\n            }\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n\n    public static class CPSTracker {\n        private static final List<Long> leftClicks = new ArrayList<>();\n        private static final List<Long> rightClicks = new ArrayList<>();\n        private static boolean wasLeftPressed = false;\n        private static boolean wasRightPressed = false;\n\n        public static void onTick() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            long now = System.currentTimeMillis();\n\n            boolean left = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean right = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            if (left && !wasLeftPressed) leftClicks.add(now);\n            if (right && !wasRightPressed) rightClicks.add(now);\n\n            wasLeftPressed = left;\n            wasRightPressed = right;\n\n            leftClicks.removeIf(t -> now - t > 1000L);\n            rightClicks.removeIf(t -> now - t > 1000L);\n        }\n\n        public static int getLeftCPS() { return leftClicks.size(); }\n        public static int getRightCPS() { return rightClicks.size(); }\n    }\n\n    public enum ModuleCategory {\n        HUD(\"HUD & Ekran\"),\n        COMBAT(\"Combat / Cheats\"),\n        RENDER(\"Visuals & Motyw\");\n\n        public final String displayName;\n        ModuleCategory(String displayName) { this.displayName = displayName; }\n    }\n\n    public static abstract class Module {\n        private final String name;\n        private final String description;\n        private final ModuleCategory category;\n        private boolean enabled;\n        public int keyCode = GLFW.GLFW_KEY_UNKNOWN;\n\n        public Module(String name, String description, ModuleCategory category) {\n            this.name = name;\n            this.description = description;\n            this.category = category;\n            this.enabled = false;\n        }\n\n        public void toggle() {\n            this.enabled = !this.enabled;\n            if (this.enabled) onEnable(); else onDisable();\n        }\n\n        private boolean wasKeyPressed = false;\n        public void checkKeybind(MinecraftClient client) {\n            if (keyCode == GLFW.GLFW_KEY_UNKNOWN || client.currentScreen != null) return;\n            boolean pressed = InputUtil.isKeyPressed(client.getWindow().getHandle(), keyCode);\n            if (pressed && !wasKeyPressed) {\n                toggle();\n            }\n            wasKeyPressed = pressed;\n        }\n\n        public void onEnable() {}\n        public void onDisable() {}\n        public void onTick(MinecraftClient client) {}\n        public void onRender2D(DrawContext context, float tickDelta) {}\n\n        public String getName() { return name; }\n        public String getDescription() { return description; }\n        public ModuleCategory getCategory() { return category; }\n        public boolean isEnabled() { return enabled; }\n    }\n\n    public static abstract class DraggableHudModule extends Module {\n        public int x, y, width, height;\n\n        public DraggableHudModule(String name, String description, int defaultX, int defaultY, int width, int height) {\n            super(name, description, ModuleCategory.HUD);\n            this.x = defaultX;\n            this.y = defaultY;\n            this.width = width;\n            this.height = height;\n        }\n\n        public boolean isHovered(double mouseX, double mouseY) {\n            return mouseX >= x && mouseX <= x + width && mouseY >= y && mouseY <= y + height;\n        }\n    }\n\n    public static class ModuleManager {\n        private static final List<Module> modules = new ArrayList<>();\n\n        public static void init() {\n            modules.add(new LogoHudModule());\n            modules.add(new KeystrokesModule());\n            modules.add(new ArmorStatusModule());\n            modules.add(new FpsPingHudModule());\n            modules.add(new CoordinatesModule());\n\n            modules.add(new NameTagsModule());\n            modules.add(new TracersModule());\n            modules.add(new FreecamModule());\n            modules.add(new ReachModule());\n            modules.add(new NoPushModule());\n            modules.add(new DestroyModule());\n\n            modules.add(new ThemeEditorModule());\n        }\n\n        public static List<Module> getModules() { return modules; }\n\n        public static List<DraggableHudModule> getHudModules() {\n            List<DraggableHudModule> list = new ArrayList<>();\n            for (Module m : modules) {\n                if (m instanceof DraggableHudModule hud) list.add(hud);\n            }\n            return list;\n        }\n    }\n\n    public static class LogoHudModule extends DraggableHudModule {\n        public static LogoHudModule INSTANCE;\n        public static final Identifier LOGO_TEXTURE = Identifier.of(MOD_ID, \"textures/gui/logo.png\");\n\n        public LogoHudModule() {\n            super(\"Logo Watermark\", \"Graficzne logo Bonita Client na ekranie\", 12, 12, 165, 44);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var tr = mc.textRenderer;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.fill(x, y, x + 3, y + height, accent);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            context.drawTexture(RenderLayer::getGuiTextured, LOGO_TEXTURE, x + 6, y + 2, 0.0f, 0.0f, 40, 40, 40, 40);\n            context.drawText(tr, \"§b§lBONITA §f§lCLIENT\", x + 52, y + 9, 0xFFFFFFFF, true);\n            context.drawText(tr, \"§7FPS: §b\" + mc.getCurrentFps() + \" §8| §71.21.4\", x + 52, y + 23, 0xFFAAAAAA, false);\n        }\n    }\n\n    public static class KeystrokesModule extends DraggableHudModule {\n        public KeystrokesModule() {\n            super(\"Keystrokes & CPS\", \"Klawisze WASD, Spacja oraz licznik kliknięć CPS\", 12, 115, 78, 96);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            var opt = mc.options;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            drawKey(context, \"W\", x + 26, y, 24, 22, opt.forwardKey.isPressed(), accent);\n            drawKey(context, \"A\", x, y + 24, 24, 22, opt.leftKey.isPressed(), accent);\n            drawKey(context, \"S\", x + 26, y + 24, 24, 22, opt.backKey.isPressed(), accent);\n            drawKey(context, \"D\", x + 52, y + 24, 24, 22, opt.rightKey.isPressed(), accent);\n\n            boolean lmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS;\n            boolean rmb = GLFW.glfwGetMouseButton(mc.getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) == GLFW.GLFW_PRESS;\n\n            drawKey(context, CPSTracker.getLeftCPS() + \" CPS\", x, y + 48, 37, 22, lmb, accent);\n            drawKey(context, CPSTracker.getRightCPS() + \" CPS\", x + 39, y + 48, 37, 22, rmb, accent);\n            drawKey(context, \"───\", x, y + 72, 76, 18, opt.jumpKey.isPressed(), accent);\n        }\n\n        private void drawKey(DrawContext ctx, String label, int kx, int ky, int kw, int kh, boolean pressed, int accentColor) {\n            ctx.fill(kx, ky, kx + kw, ky + kh, pressed ? accentColor : 0xAA081026);\n            ctx.drawBorder(kx, ky, kw, kh, accentColor & 0x77FFFFFF);\n            var tr = MinecraftClient.getInstance().textRenderer;\n            ctx.drawCenteredTextWithShadow(tr, label, kx + kw / 2, ky + (kh - 8) / 2, pressed ? 0xFF000000 : 0xFFFFFFFF);\n        }\n    }\n\n    public static class ArmorStatusModule extends DraggableHudModule {\n        public ArmorStatusModule() {\n            super(\"Armor Status\", \"Pokazuje wytrzymałość założonej zbroi obok paska\", 12, 220, 65, 76);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n\n            EquipmentSlot[] slots = {EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET};\n            int offsetY = 0;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0x80081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            for (EquipmentSlot slot : slots) {\n                ItemStack stack = mc.player.getEquippedStack(slot);\n                if (!stack.isEmpty()) {\n                    context.drawItem(stack, x + 4, y + offsetY + 2);\n                    if (stack.isDamageable()) {\n                        int max = stack.getMaxDamage();\n                        int cur = max - stack.getDamage();\n                        int pct = (int) ((cur / (float) max) * 100);\n                        int color = pct > 50 ? 0xFF55FF55 : (pct > 20 ? 0xFFFFAA00 : 0xFFFF5555);\n                        context.drawText(mc.textRenderer, pct + \"%\", x + 24, y + offsetY + 6, color, true);\n                    }\n                }\n                offsetY += 18;\n            }\n        }\n    }\n\n    public static class FpsPingHudModule extends DraggableHudModule {\n        public FpsPingHudModule() {\n            super(\"FPS & Ping\", \"Wyświetla aktualne FPS, Ping oraz CPS w kafelku\", 190, 12, 115, 24);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            int fps = mc.getCurrentFps();\n            int ping = 0;\n            if (mc.getNetworkHandler() != null && mc.player != null) {\n                PlayerListEntry entry = mc.getNetworkHandler().getPlayerListEntry(mc.player.getUuid());\n                if (entry != null) ping = entry.getLatency();\n            }\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent);\n            context.drawCenteredTextWithShadow(mc.textRenderer, \"§b\" + fps + \" FPS §8| §a\" + ping + \" ms\", x + width / 2, y + 8, 0xFFFFFF);\n        }\n    }\n\n    public static class CoordinatesModule extends DraggableHudModule {\n        public CoordinatesModule() {\n            super(\"Coordinates\", \"Pokazuje współrzędne X, Y, Z oraz kierunek świata\", 190, 42, 135, 36);\n            this.toggle();\n        }\n\n        @Override\n        public void onRender2D(DrawContext context, float tickDelta) {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(x, y, x + width, y + height, 0xCC081026);\n            context.drawBorder(x, y, width, height, accent & 0x77FFFFFF);\n\n            String coords = String.format(\"§bX: §f%.0f §bY: §f%.0f §bZ: §f%.0f\", mc.player.getX(), mc.player.getY(), mc.player.getZ());\n            String dir = \"§7Kierunek: §f\" + mc.player.getHorizontalFacing().asString().toUpperCase();\n\n            context.drawText(mc.textRenderer, coords, x + 6, y + 7, 0xFFFFFF, true);\n            context.drawText(mc.textRenderer, dir, x + 6, y + 20, 0xAAAAAA, false);\n        }\n    }\n\n    public static class ThemeEditorModule extends Module {\n        public static ThemeEditorModule INSTANCE;\n\n        public float accentRed = 0.0f;\n        public float accentGreen = 0.7f;\n        public float accentBlue = 1.0f;\n        public int guiAlpha = 242;\n\n        public ThemeEditorModule() {\n            super(\"Theme Editor\", \"Konfiguracja kolorów i przezroczystości (%) menu\", ModuleCategory.RENDER);\n            INSTANCE = this;\n            this.toggle();\n        }\n\n        public int getAccentColor() {\n            int r = (int)(accentRed * 255);\n            int g = (int)(accentGreen * 255);\n            int b = (int)(accentBlue * 255);\n            return (0xFF << 24) | (r << 16) | (g << 8) | b;\n        }\n\n        public int getBackgroundColor() {\n            return (guiAlpha << 24) | 0x081026;\n        }\n    }\n\n    public static class DestroyModule extends Module {\n        public DestroyModule() {\n            super(\"Destroy (Self-Destruct)\", \"Wyłącza mod i zmienia nazwę na Sodium Extra\", ModuleCategory.COMBAT);\n        }\n\n        @Override\n        public void onEnable() {\n            for (Module m : ModuleManager.getModules()) {\n                if (m.isEnabled() && m != this) {\n                    m.toggle();\n                }\n            }\n            isDestroyed = true;\n            fakeModName = \"Sodium Extra\";\n            fakeModDesc = \"Optimized rendering engine for Minecraft\";\n\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                mc.player.sendMessage(Text.literal(\"§b[Sodium Extra] Zaktualizowano pomyślnie.\"), false);\n            }\n            if (mc.currentScreen != null) {\n                mc.setScreen(null);\n            }\n        }\n    }\n\n    public static class NameTagsModule extends Module {\n        public static NameTagsModule INSTANCE;\n\n        public NameTagsModule() {\n            super(\"NameTags\", \"Wyświetla HP, ping i dystans nad graczami\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n            this.toggle();\n        }\n    }\n\n    public static class TracersModule extends Module {\n        public static TracersModule INSTANCE;\n        public double minDistance = 40.0; // Linie pojawiają się od 40 kratek\n\n        public TracersModule() {\n            super(\"Tracers\", \"Rysuje linie 3D do graczy od 40+ kratek\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n    }\n\n    public static class FreecamModule extends Module {\n        public static FreecamModule INSTANCE;\n        public float speed = 0.8f;\n        public Vec3d savedPos;\n        public Vec3d camPos = Vec3d.ZERO;\n        private static final Identifier FREECAM_ID = Identifier.of(MOD_ID, \"freecam_reach\");\n\n        public FreecamModule() {\n            super(\"Freecam\", \"Swobodna kamera z możliwością interakcji\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onEnable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                savedPos = mc.player.getPos();\n                camPos = savedPos;\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player != null) {\n                if (savedPos != null) {\n                    mc.player.setPosition(savedPos);\n                    mc.player.setVelocity(Vec3d.ZERO);\n                }\n                mc.player.noClip = false;\n                var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n                if (reach != null) reach.removeModifier(FREECAM_ID);\n            }\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null || savedPos == null) return;\n\n            float yaw = mc.player.getYaw();\n            float pitch = mc.player.getPitch();\n            Vec3d forward = Vec3d.fromPolar(pitch, yaw);\n            Vec3d right = Vec3d.fromPolar(0, yaw + 90);\n            Vec3d motion = Vec3d.ZERO;\n\n            if (mc.options.forwardKey.isPressed()) motion = motion.add(forward);\n            if (mc.options.backKey.isPressed()) motion = motion.subtract(forward);\n            if (mc.options.rightKey.isPressed()) motion = motion.add(right);\n            if (mc.options.leftKey.isPressed()) motion = motion.subtract(right);\n            if (mc.options.jumpKey.isPressed()) motion = motion.add(0, 1, 0);\n            if (mc.options.sneakKey.isPressed()) motion = motion.subtract(0, 1, 0);\n\n            if (motion.lengthSquared() > 0) motion = motion.normalize().multiply(speed);\n            camPos = camPos.add(motion);\n\n            mc.player.noClip = true;\n            mc.player.setPosition(camPos);\n            mc.player.setVelocity(Vec3d.ZERO);\n            mc.player.fallDistance = 0.0f;\n            mc.player.setOnGround(true);\n\n            var reach = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (reach != null) {\n                reach.removeModifier(FREECAM_ID);\n                reach.addTemporaryModifier(new EntityAttributeModifier(FREECAM_ID, 6.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n    }\n\n    public static class ReachModule extends Module {\n        public static ReachModule INSTANCE;\n        public double reachDistance = 4.5;\n        private static final Identifier REACH_ID = Identifier.of(MOD_ID, \"reach_boost\");\n\n        public ReachModule() {\n            super(\"Reach\", \"Zwiększa zasięg bicia graczy\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) {\n                instance.removeModifier(REACH_ID);\n                instance.addTemporaryModifier(new EntityAttributeModifier(REACH_ID, reachDistance - 3.0, EntityAttributeModifier.Operation.ADD_VALUE));\n            }\n        }\n\n        @Override\n        public void onDisable() {\n            MinecraftClient mc = MinecraftClient.getInstance();\n            if (mc.player == null) return;\n            var instance = mc.player.getAttributeInstance(EntityAttributes.ENTITY_INTERACTION_RANGE);\n            if (instance != null) instance.removeModifier(REACH_ID);\n        }\n    }\n\n    public static class NoPushModule extends Module {\n        public static NoPushModule INSTANCE;\n\n        public NoPushModule() {\n            super(\"NoPush\", \"Blokuje odpychanie i ułatwia wchodzenie pereł w ściany\", ModuleCategory.COMBAT);\n            INSTANCE = this;\n        }\n\n        @Override\n        public void onTick(MinecraftClient mc) {\n            if (mc.player != null) {\n                mc.player.pushSpeedReduction = 1.0f;\n                if (mc.player.horizontalCollision) {\n                    Vec3d vel = mc.player.getVelocity();\n                    if (vel.y < 0) {\n                        mc.player.setVelocity(vel.x * 1.05, vel.y, vel.z * 1.05);\n                    }\n                }\n            }\n        }\n    }\n\n    public static class ModuleSettingsScreen extends Screen {\n        private final Screen parent;\n        private final Module module;\n        private boolean waitingForKey = false;\n        private int activeSlider = -1;\n\n        public ModuleSettingsScreen(Screen parent, Module module) {\n            super(Text.literal(\"Ustawienia: \" + module.getName()));\n            this.parent = parent;\n            this.module = module;\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, 0x85050B1A);\n\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2;\n            int winY = (height - winH) / 2;\n\n            context.fill(winX, winY, winX + winW, winY + winH, bgCol);\n            context.drawBorder(winX, winY, winW, winH, accentCol);\n\n            context.drawText(textRenderer, \"§b§lUSTAWIENIA MODUŁU\", winX + 16, winY + 16, 0xFFFFFFFF, true);\n            context.drawText(textRenderer, \"§7\" + module.getName() + \" - \" + module.getDescription(), winX + 16, winY + 30, 0x888888, false);\n\n            int startY = winY + 56;\n\n            context.drawText(textRenderer, \"Skrót klawiszowy (Bind):\", winX + 20, startY + 4, 0xFFFFFF, false);\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            boolean hoverBind = mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH;\n            context.fill(bindBtnX, bindBtnY, bindBtnX + bindBtnW, bindBtnY + bindBtnH, hoverBind ? accentCol : 0xFF0A192F);\n            String keyName = waitingForKey ? \"§eNaciśnij klawisz...\" : (module.keyCode == GLFW.GLFW_KEY_UNKNOWN ? \"Brak\" : InputUtil.fromGlfwCode(module.keyCode, 0).getLocalizedText().getString().toUpperCase());\n            context.drawCenteredTextWithShadow(textRenderer, keyName, bindBtnX + bindBtnW / 2, bindBtnY + 6, 0xFFFFFF);\n\n            startY += 32;\n\n            if (module instanceof ThemeEditorModule theme) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Czerwony (R)\", theme.accentRed * 255.0f, 0.0, 255.0, 0);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Zielony (G)\", theme.accentGreen * 255.0f, 0.0, 255.0, 1);\n                startY += 32;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Motyw: Niebieski (B)\", theme.accentBlue * 255.0f, 0.0, 255.0, 2);\n                startY += 32;\n                float alphaPct = (theme.guiAlpha / 255.0f) * 100.0f;\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Przezroczystość menu (%)\", alphaPct, 20.0, 100.0, 3);\n            } else if (module instanceof TracersModule tracers) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Min Dystans Tracerów (m)\", tracers.minDistance, 10.0, 150.0, 0);\n            } else if (module instanceof ReachModule r) {\n                drawSlider(context, mouseX, mouseY, winX + 20, startY, 340, \"Zasięg bicia (Reach)\", r.reachDistance, 3.0, 6.0, 0);\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            boolean hoverBack = mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH;\n            context.fill(backBtnX, backBtnY, backBtnX + backBtnW, backBtnY + backBtnH, hoverBack ? accentCol : 0xFF0A192F);\n            context.drawBorder(backBtnX, backBtnY, backBtnW, backBtnH, accentCol);\n            context.drawCenteredTextWithShadow(textRenderer, \"§f§lZapisz i Wróć\", backBtnX + backBtnW / 2, backBtnY + 9, 0xFFFFFF);\n        }\n\n        private void drawSlider(DrawContext ctx, double mouseX, double mouseY, int x, int y, int w, String label, double val, double min, double max, int id) {\n            int accent = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n            ctx.drawText(textRenderer, String.format(\"%s: %.1f\", label, val), x, y, 0xFFFFFF, false);\n            int sY = y + 12, sH = 6;\n            double pct = (val - min) / (max - min);\n            ctx.fill(x, sY, x + w, sY + sH, 0xFF050B1A);\n            ctx.fill(x, sY, x + (int) (w * pct), sY + sH, accent);\n\n            if (activeSlider == id && GLFW.glfwGetMouseButton(MinecraftClient.getInstance().getWindow().getHandle(), GLFW.GLFW_MOUSE_BUTTON_LEFT) == GLFW.GLFW_PRESS) {\n                double newPct = MathHelper.clamp((mouseX - x) / (double) w, 0.0, 1.0);\n                double newVal = min + (newPct * (max - min));\n                setSliderValue(id, newVal);\n            }\n        }\n\n        private void setSliderValue(int id, double val) {\n            if (module instanceof ThemeEditorModule theme) {\n                if (id == 0) theme.accentRed = (float)(val / 255.0);\n                if (id == 1) theme.accentGreen = (float)(val / 255.0);\n                if (id == 2) theme.accentBlue = (float)(val / 255.0);\n                if (id == 3) theme.guiAlpha = (int)((val / 100.0f) * 255.0f);\n            } else if (module instanceof TracersModule tracers) {\n                if (id == 0) tracers.minDistance = val;\n            } else if (module instanceof ReachModule r) {\n                if (id == 0) r.reachDistance = val;\n            }\n        }\n\n        @Override\n        public boolean mouseClicked(double mouseX, double mouseY, int button) {\n            int winW = 380;\n            int winH = module instanceof ThemeEditorModule ? 270 : 220;\n            int winX = (width - winW) / 2, winY = (height - winH) / 2;\n            int startY = winY + 56;\n\n            int bindBtnX = winX + 220, bindBtnY = startY, bindBtnW = 140, bindBtnH = 20;\n            if (mouseX >= bindBtnX && mouseX <= bindBtnX + bindBtnW && mouseY >= bindBtnY && mouseY <= bindBtnY + bindBtnH) {\n                waitingForKey = true;\n                return true;\n            }\n\n            startY += 32;\n\n            int slidersCount = module instanceof ThemeEditorModule ? 4 : (module instanceof TracersModule || module instanceof ReachModule ? 1 : 0);\n            for (int i = 0; i < slidersCount; i++) {\n                if (mouseX >= winX + 20 && mouseX <= winX + 360 && mouseY >= startY + 10 && mouseY <= startY + 24) {\n                    activeSlider = i;\n                    setSliderFromMouse(mouseX, winX + 20, 340, i);\n                    return true;\n                }\n                startY += 32;\n            }\n\n            int backBtnX = winX + 20, backBtnY = winY + winH - 40, backBtnW = winW - 40, backBtnH = 26;\n            if (mouseX >= backBtnX && mouseX <= backBtnX + backBtnW && mouseY >= backBtnY && mouseY <= backBtnY + backBtnH) {\n                MinecraftClient.getInstance().setScreen(parent);\n                return true;\n            }\n\n            return super.mouseClicked(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) {\n            if (activeSlider != -1) {\n                setSliderFromMouse(mouseX, (width - 380) / 2 + 20, 340, activeSlider);\n                return true;\n            }\n            return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);\n        }\n\n        private void setSliderFromMouse(double mouseX, int sliderX, int sliderW, int id) {\n            double pct = MathHelper.clamp((mouseX - sliderX) / (double) sliderW, 0.0, 1.0);\n            double min = 0, max = 1;\n            if (module instanceof ThemeEditorModule) {\n                if (id >= 0 && id <= 2) { min = 0.0; max = 255.0; }\n                else if (id == 3) { min = 20.0; max = 100.0; }\n            } else if (module instanceof TracersModule) {\n                min = 10.0; max = 150.0;\n            } else if (module instanceof ReachModule) {\n                min = 3.0; max = 6.0;\n            }\n\n            setSliderValue(id, min + (pct * (max - min)));\n        }\n\n        @Override\n        public boolean mouseReleased(double mouseX, double mouseY, int button) {\n            activeSlider = -1;\n            return super.mouseReleased(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean keyPressed(int keyCode, int scanCode, int modifiers) {\n            if (waitingForKey) {\n                if (keyCode == GLFW.GLFW_KEY_ESCAPE) {\n                    module.keyCode = GLFW.GLFW_KEY_UNKNOWN;\n                } else {\n                    module.keyCode = keyCode;\n                }\n                waitingForKey = false;\n                return true;\n            }\n            return super.keyPressed(keyCode, scanCode, modifiers);\n        }\n\n        @Override\n        public boolean shouldPause() { return false; }\n    }\n\n    public static class ClientMenuScreen extends Screen {\n        private ModuleCategory selectedCategory = ModuleCategory.HUD;\n        private boolean hudEditMode = false;\n        private DraggableHudModule draggedModule = null;\n        private int dragOffsetX = 0, dragOffsetY = 0;\n        private static final int SNAP_GRID = 4;\n        private int scrollOffset = 0;\n\n        public ClientMenuScreen() {\n            super(Text.literal(fakeModName));\n        }\n\n        @Override\n        public void render(DrawContext context, int mouseX, int mouseY, float delta) {\n            int bgCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getBackgroundColor() : 0xF2081026;\n            int accentCol = ThemeEditorModule.INSTANCE != null ? ThemeEditorModule.INSTANCE.getAccentColor() : 0xFF00B4D8;\n\n            context.fill(0, 0, width, height, hudEditMode ? 0x45050B1A : (bgCol & 0x80FFFFFF));\n\n            if (hudEditMode) {\n                context.fill(width / 2, 0, width / 2 + 1, height, accentCol & 0x40FFFFFF);\n                context.fill(0, height / 2, width, height / 2 + 1, accentCol & 0x40FFFFFF);\n            }\n\n            for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                if (!hud.isEnabled()) continue;\n                hud.onRender2D(context, delta);\n\n                boolean hovered = hud.isHovered(mouseX, mouseY) || hud == draggedModule;\n                int borderColor = hovered ? accentCol : (hudEditMode ? 0x80FFFFFF : (accentCol & 0x77FFFFFF));\n                context.drawBorder(hud.x - 1, hud.y - 1, hud.width + 2, hud.height + 2, borderColor);\n            }\n\n            if (hudEditMode) {\n                int backW = 170, backH = 26;\n                int backX = (width - backW) / 2, backY = 14;\n                boolean hoverBack = mouseX >= backX && mouseX <= backX + backW && mouseY >= backY && mouseY <= backY + backH;\n\n                context.fill(backX, backY, backX + backW, backY + backH, hoverBack ? accentCol : 0xEE081026);\n                context.drawBorder(backX, backY, backW, backH, accentCol);\n                context.drawCenteredTextWithShadow(textRenderer, \"§b§l⬅ Wróć do Menu Modów\", backX + backW / 2, backY + 9, 0xFFFFFF);\n                context.drawCenteredTextWithShadow(textRenderer, \"§7Przeciągaj elementy HUD myszką po ekranie\", width / 2, backY + 34, 0xAAAAAA);\n                return;\n            }\n\n            int winW = 450;\n            int winH = 290;\n            int winX = (width - winW) / 2;\n            int winY = (height - winH) / 2;\n\n            context.fill(winX, winY, winX + winW, winY + winH, bgCol);\n            context.fill(winX, winY, winX + 120, winY + winH, bgCol & 0xF8FFFFFF);\n            context.drawBorder(winX, winY, winW, winH, accentCol);\n\n            context.drawText(textRenderer, \"§b§l\" + fakeModName.split(\" \")[0], winX + 16, winY + 16, 0xFFFFFFFF, true);\n            context.drawText(textRenderer, \"§f§l\" + (fakeModName.contains(\" \") ? fakeModName.split(\" \")[1] : \"CLIENT\"), winX + 16, winY + 28, accentCol | 0xFF000000, true);\n\n            int catY = winY + 54;\n            for (ModuleCategory cat : ModuleCategory.values()) {\n                boolean active = (cat == selectedCategory);\n                if (active) {\n                    context.fill(winX + 6, catY, winX + 114, catY + 22, accentCol & 0x35FFFFFF);\n                    context.fill(winX + 6, catY, winX + 8, catY + 22, accentCol);\n                }\n                context.drawText(textRenderer, cat.displayName, winX + 14, catY + 7, active ? 0xFFFFFFFF : 0xFF888888, false);\n                catY += 26;\n            }\n\n            int hudBtnX = winX + 8;\n            int hudBtnY = winY + winH - 32;\n            boolean hoverHudBtn = mouseX >= hudBtnX && mouseX <= hudBtnX + 104 && mouseY >= hudBtnY && mouseY <= hudBtnY + 22;\n            context.fill(hudBtnX, hudBtnY, hudBtnX + 104, hudBtnY + 22, hoverHudBtn ? accentCol : 0xFF0A192F);\n            context.drawCenteredTextWithShadow(textRenderer, \"§f§l📐 Układaj HUD\", hudBtnX + 52, hudBtnY + 7, 0xFFFFFF);\n\n            int gridX = winX + 130;\n            int gridY = winY + 14;\n            int cardW = 148;\n            int cardH = 60;\n            int index = 0;\n\n            context.enableScissor(winX + 122, winY + 10, winX + winW - 6, winY + winH - 10);\n\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.getCategory() != selectedCategory) continue;\n\n                int x = gridX + (index % 2) * (cardW + 10);\n                int y = gridY + (index / 2) * (cardH + 8) - scrollOffset;\n\n                context.fill(x, y, x + cardW, y + cardH, mod.isEnabled() ? 0xFF0D1B2A : 0xFF0A1220);\n                context.drawBorder(x, y, cardW, cardH, mod.isEnabled() ? accentCol : 0x3300B4D8);\n\n                context.drawText(textRenderer, mod.getName(), x + 8, y + 7, 0xFFFFFFFF, true);\n                context.drawText(textRenderer, textRenderer.trimToWidth(mod.getDescription(), cardW - 14), x + 8, y + 19, 0xFF888888, false);\n\n                if (mod instanceof TracersModule tracers) {\n                    int sX = x + 8, sY = y + 32, sW = cardW - 16;\n                    double pct = (tracers.minDistance - 10.0) / 140.0;\n                    context.fill(sX, sY, sX + sW, sY + 4, 0xFF050B1A);\n                    context.fill(sX, sY, sX + (int) (sW * pct), sY + 4, accentCol);\n                    context.drawText(textRenderer, String.format(\"Min Dystans: %.0fm\", tracers.minDistance), sX, sY + 7, 0xFFCCCCCC, false);\n                }\n\n                int pillX = x + cardW - 38;\n                int pillY = y + cardH - 16;\n                context.fill(pillX, pillY, pillX + 30, pillY + 12, mod.isEnabled() ? accentCol : 0xFF152238);\n                context.drawCenteredTextWithShadow(textRenderer, mod.isEnabled() ? \"ON\" : \"OFF\", pillX + 15, pillY + 2, 0xFFFFFF);\n\n                index++;\n            }\n\n            context.disableScissor();\n        }\n\n        @Override\n        public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) {\n            if (!hudEditMode) {\n                scrollOffset = MathHelper.clamp(scrollOffset - (int) (verticalAmount * 24), 0, 520);\n            }\n            return true;\n        }\n\n        @Override\n        public boolean mouseClicked(double mouseX, double mouseY, int button) {\n            if (hudEditMode) {\n                int backW = 170, backH = 26;\n                int backX = (width - backW) / 2, backY = 14;\n                if (mouseX >= backX && mouseX <= backX + backW && mouseY >= backY && mouseY <= backY + backH) {\n                    hudEditMode = false;\n                    return true;\n                }\n\n                if (button == 0) {\n                    for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                        if (hud.isEnabled() && hud.isHovered(mouseX, mouseY)) {\n                            draggedModule = hud;\n                            dragOffsetX = (int) mouseX - hud.x;\n                            dragOffsetY = (int) mouseY - hud.y;\n                            return true;\n                        }\n                    }\n                }\n                return super.mouseClicked(mouseX, mouseY, button);\n            }\n\n            int winW = 450, winH = 290;\n            int winX = (width - winW) / 2, winY = (height - winH) / 2;\n\n            if (mouseX < winX || mouseX > winX + winW || mouseY < winY || mouseY > winY + winH) {\n                if (button == 0) {\n                    for (DraggableHudModule hud : ModuleManager.getHudModules()) {\n                        if (hud.isEnabled() && hud.isHovered(mouseX, mouseY)) {\n                            draggedModule = hud;\n                            dragOffsetX = (int) mouseX - hud.x;\n                            dragOffsetY = (int) mouseY - hud.y;\n                            return true;\n                        }\n                    }\n                }\n            }\n\n            int catY = winY + 54;\n            for (ModuleCategory cat : ModuleCategory.values()) {\n                if (mouseX >= winX + 6 && mouseX <= winX + 114 && mouseY >= catY && mouseY <= catY + 22) {\n                    selectedCategory = cat;\n                    scrollOffset = 0;\n                    return true;\n                }\n                catY += 26;\n            }\n\n            int hudBtnX = winX + 8, hudBtnY = winY + winH - 32;\n            if (mouseX >= hudBtnX && mouseX <= hudBtnX + 104 && mouseY >= hudBtnY && mouseY <= hudBtnY + 22) {\n                hudEditMode = true;\n                return true;\n            }\n\n            int gridX = winX + 130, gridY = winY + 14;\n            int cardW = 148, cardH = 60;\n            int index = 0;\n\n            for (Module mod : ModuleManager.getModules()) {\n                if (mod.getCategory() != selectedCategory) continue;\n\n                int x = gridX + (index % 2) * (cardW + 10);\n                int y = gridY + (index / 2) * (cardH + 8) - scrollOffset;\n\n                if (y + cardH < winY + 10 || y > winY + winH - 10) {\n                    index++;\n                    continue;\n                }\n\n                if (mouseX >= x && mouseX <= x + cardW && mouseY >= y && mouseY <= y + cardH) {\n                    if (button == 1) {\n                        MinecraftClient.getInstance().setScreen(new ModuleSettingsScreen(this, mod));\n                        return true;\n                    } else if (button == 0) {\n                        mod.toggle();\n                        return true;\n                    }\n                }\n                index++;\n            }\n\n            return super.mouseClicked(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) {\n            if (hudEditMode && draggedModule != null && button == 0) {\n                int rawX = (int) mouseX - dragOffsetX;\n                int rawY = (int) mouseY - dragOffsetY;\n\n                int snappedX = Math.round((float) rawX / SNAP_GRID) * SNAP_GRID;\n                int snappedY = Math.round((float) rawY / SNAP_GRID) * SNAP_GRID;\n\n                draggedModule.x = MathHelper.clamp(snappedX, 2, width - draggedModule.width - 2);\n                draggedModule.y = MathHelper.clamp(snappedY, 2, height - draggedModule.height - 2);\n                return true;\n            }\n            return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);\n        }\n\n        @Override\n        public boolean mouseReleased(double mouseX, double mouseY, int button) {\n            draggedModule = null;\n            return super.mouseReleased(mouseX, mouseY, button);\n        }\n\n        @Override\n        public boolean shouldPause() { return false; }\n    }\n}\n```","tokensUsed":null,"creditsCharged":0.0,"metadata":{"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T20:59:23.09474","sequenceNumber":25},{"id":527831,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"Plan:\n1. Porównam załączony kod z obecną implementacją projektu.\n2. Sprawdzę podpisy Fabric/Minecraft dla brakujących elementów.\n3. Dodam wyłącznie brakujące funkcje i dopiszę log zmian.<kodariReadingFiles id=\"195d27a5-8ef0-4b3b-a59e-bda554b98c97\" status=\"succeeded\"/><kodariReadFile id=\"195d27a5-8ef0-4b3b-a59e-bda554b98c97\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariReadFile><kodariReadFile id=\"195d27a5-8ef0-4b3b-a59e-bda554b98c97\" status=\"succeeded\">src/main/java/com/client/BonitaHudClient.java</kodariReadFile><kodariReadFile id=\"195d27a5-8ef0-4b3b-a59e-bda554b98c97\" status=\"succeeded\">gradle.properties</kodariReadFile><kodariReadFile id=\"195d27a5-8ef0-4b3b-a59e-bda554b98c97\" status=\"succeeded\">build.gradle</kodariReadFile><kodariReadFile id=\"195d27a5-8ef0-4b3b-a59e-bda554b98c97\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariReadFile><kodariReadFile id=\"195d27a5-8ef0-4b3b-a59e-bda554b98c97\" status=\"succeeded\">src/main/resources/assets/bonita_client/lang/en_us.json</kodariReadFile><kodariApplyingPatches id=\"2a0a35e1-3b17-4bbd-990e-a4b92248110d\" status=\"succeeded\"/><kodariPatchedFile id=\"2a0a35e1-3b17-4bbd-990e-a4b92248110d\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariPatchedFile><kodariPatchedFile id=\"2a0a35e1-3b17-4bbd-990e-a4b92248110d\" status=\"succeeded\">src/main/java/com/client/mixin/ClientPushMixin.java</kodariPatchedFile><kodariPatchedFile id=\"2a0a35e1-3b17-4bbd-990e-a4b92248110d\" status=\"succeeded\">src/main/resources/bonita_client.mixins.json</kodariPatchedFile><kodariPatchedFile id=\"2a0a35e1-3b17-4bbd-990e-a4b92248110d\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariPatchedFile><kodariPatchedFile id=\"2a0a35e1-3b17-4bbd-990e-a4b92248110d\" status=\"succeeded\">gradle.properties</kodariPatchedFile><kodariPatchedFile id=\"2a0a35e1-3b17-4bbd-990e-a4b92248110d\" status=\"succeeded\">build.gradle</kodariPatchedFile><kodariPatchedFile id=\"2a0a35e1-3b17-4bbd-990e-a4b92248110d\" status=\"succeeded\">CHANGELOG.md</kodariPatchedFile><kodariApplyingPatches id=\"05fbaf70-4dc1-4caa-838e-e6aefea5b3c7\" status=\"succeeded\"/><kodariPatchedFile id=\"05fbaf70-4dc1-4caa-838e-e6aefea5b3c7\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariPatchedFile><kodariPatchedFile id=\"05fbaf70-4dc1-4caa-838e-e6aefea5b3c7\" status=\"succeeded\">src/main/java/com/client/mixin/ClientPushMixin.java</kodariPatchedFile><kodariApplyingPatches id=\"d4c5a06f-aa4b-4bb8-a409-ea939668cd1d\" status=\"succeeded\"/><kodariPatchedFile id=\"d4c5a06f-aa4b-4bb8-a409-ea939668cd1d\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariPatchedFile>Dodałem brakujące funkcje z załącznika: modułowe menu z kategoriami i bindami, edytor motywu, przeciągane widżety HUD, konfigurację tracerów oraz moduły Freecam, Reach, NoPush i Self-Destruct. Zaktualizowałem numer wersji z **1.0.0** do **1.1.0** i dodałem `CHANGELOG.md`.\n\n`PlayerEntity.pushSpeedReduction` nie istnieje w tej wersji, więc NoPush działa przez client mixin. Freecam, Reach i NoPush są po stronie klienta; serwer może je ograniczać lub korygować.","tokensUsed":170642,"creditsCharged":5.0,"metadata":{},"createdAt":"2026-10-22T20:59:23.095428","sequenceNumber":26},{"id":527854,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"user","role":"user","content":"zrobisz takie menu tylko usuniesz takie rzeczy z glownego ekranu gry\n\n[Viewing 2 images]","tokensUsed":null,"creditsCharged":0.0,"metadata":{"refs":["79eac7da-3a21-4175-b36e-f0493f80ee2a.png","303b3adb-99d4-4bca-be3e-fe26d61c873a.png"],"userId":45349,"imageUrl":"https://lh3.googleusercontent.com/a/ACg8ocIUwRmmpJ__pRnGC15Ai0SM9heYN-V5wFbOn3djTbol_J_iOA=s256-c","username":"Krzysztof Cieplak"},"createdAt":"2026-10-22T21:10:37.92105","sequenceNumber":27},{"id":527855,"sessionId":"KDR-202610-QKAKNDTZ","messageType":"assistant","role":"assistant","content":"Plan:\n1. Sprawdzę, jak projekt obsługuje ekran menu i elementy HUD z drugiego obrazka.\n2. Dodam menu inspirowane pierwszym obrazkiem i usunę wskazane nakładki z rozgrywki.<kodariReadingFiles id=\"6d030baf-a5ff-4db8-8990-7e0010b336c4\" status=\"succeeded\"/><kodariReadFile id=\"6d030baf-a5ff-4db8-8990-7e0010b336c4\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariReadFile><kodariReadFile id=\"6d030baf-a5ff-4db8-8990-7e0010b336c4\" status=\"succeeded\">src/main/java/com/client/BonitaHudClient.java</kodariReadFile><kodariReadFile id=\"6d030baf-a5ff-4db8-8990-7e0010b336c4\" status=\"succeeded\">src/main/resources/assets/bonita_client/lang/en_us.json</kodariReadFile><kodariReadingFiles id=\"e71f8b33-3edc-441b-ab83-b4de84e65328\" status=\"succeeded\"/><kodariReadFile id=\"e71f8b33-3edc-441b-ab83-b4de84e65328\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariReadFile><kodariReadFile id=\"e71f8b33-3edc-441b-ab83-b4de84e65328\" status=\"succeeded\">src/main/resources/fabric.mod.json</kodariReadFile><kodariApplyingPatches id=\"2ca2ec9d-f074-4540-9f75-66c4f870b7ba\" status=\"succeeded\"/><kodariPatchedFile id=\"2ca2ec9d-f074-4540-9f75-66c4f870b7ba\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariPatchedFile><kodariApplyingPatches id=\"5b123919-f3ad-4735-9d7b-a37da40a2dcb\" status=\"succeeded\"/><kodariPatchedFile id=\"5b123919-f3ad-4735-9d7b-a37da40a2dcb\" status=\"succeeded\">src/main/java/com/client/FeatherClientMod.java</kodariPatchedFile>Dodałem menu w ciemnym, granatowo-cyjanowym stylu, z wyszukiwaniem, zakładkami **Combat / Motyw / GUI** i przyciskiem zamknięcia. Otwierasz je klawiszem **Right Shift**; kliknięcie modułu przełącza go, a prawy przycisk myszy otwiera ustawienia.\n\nWyłączyłem nakładki HUD z rozgrywki: logo i wersję, koordynaty, FPS/ping, WASD/CPS oraz panel zbroi. W zakładce **GUI** menu pokazuje, że HUD jest wyłączony.","tokensUsed":90028,"creditsCharged":2.0,"metadata":{},"createdAt":"2026-10-22T21:10:37.921546","sequenceNumber":28}]}