red_ziomek

zrób takie coś pod serwer anarchia.gg komenda pod statystyki czyli podpiac pod frakcje stats to jest /stats nickname a pod tpa podepnij /tpa nickname

[Viewing 1 image]

1 image attached
Kodari AI
KodariMay 6 at 4:03 pm 30,227 (v2)
GearReader
A client-side Fabric mod for anarchia.gg server. Displays a radar GUI showing nearby players with their equipment (netherite/elytra detection), HP, and bonus damage stats. Features two panels: active players and disappeared players. Each entry has STATY button (runs /stats nickname), TPA button (runs /tpa nickname with configurable interval), and BLOCK button. Includes Watchlist/Blacklist tabs, Auto-TPA toggle, and performance mode toggle.
GearReader
A client-side Fabric mod for anarchia.gg Minecraft server. Displays a radar GUI showing nearby players with their equipment (netherite/elytra detection), HP, and weapon stats. Features two panels: active players and disappeared players, with tabs for Watchlist and Blacklist management. Each player entry has STATY button (/stats nickname), TPA button (/tpa nickname with configurable interval), BLOCK button, and remove button. Includes Auto-TPA toggle and performance mode.

Here’s my plan:

  • PlayerData holds per-player state (gear, HP, skin, disappear status)

  • PlayerTracker scans client.world.getPlayers() each tick, moves unseen players to disappeared list

  • TpaManager throttles /tpa sends by configurable interval, handles Auto-TPA

  • GearReaderScreen renders the full 2-panel GUI with tabs, scrolling, and clickable buttons

  • Key binding (G) opens the screen; client tick drives scanning and auto-TPA

The mod is complete. Here’s what was built:

  • GearReaderClient — registers G key binding, drives PlayerTracker + TpaManager every tick

  • PlayerTracker — scans client.world.getPlayers() each tick, detects netherite/elytra/weapon/HP, moves players unseen for 3s to the disappeared list

  • TpaManager — throttles /tpa <name> sends by configurable interval (default 1s), handles Auto-TPA loop

  • GearReaderScreen — full two-panel GUI with GRACZE/WATCHLIST/BLACKLIST tabs, scrollable player rows, player head rendering from skin texture, armor item icons via drawItem, HP/bonus damage stats, and STATY (/stats nick), TPA (/tpa nick), BLOCK, X buttons per player. Bottom bar has Auto-TPA toggle, ⚙ settings popup for interval adjustment, and Perf label. Color scheme matches the dark teal aesthetic from the screenshot.

red_ziomek

The compilation failed with this error:

code
Compilation failed with 2 error(s):

ERROR in src/main/java/client/java/gg/p4pit0s/gearreader/PlayerTracker.java at line 7: cannot find symbol
import net.minecraft.component.type.ItemAttributeModifiers;
                                   ^
  symbol: class ItemAttributeModifiers
  location: package net.minecraft.component.type

ERROR in   src/main/java/client/java/gg/p4pit0s/gearreader/PlayerTracker.java at line 7: cannot find symbol
  import net.minecraft.component.type.ItemAttributeModifiers;
                                     ^
  symbol: class ItemAttributeModifiers
  location: package net.minecraft.component.type


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - ItemAttributeModifiers
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/client/java/gg/p4pit0s/gearreader/PlayerTracker.java
  -   src/main/java/client/java/gg/p4pit0s/gearreader/PlayerTracker.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariMay 6 at 4:11 pm 2,137 (v2)

Replaced ItemAttributeModifiers with the correct Yarn 1.21.4 class name AttributeModifiersComponent (in net.minecraft.component.type).

red_ziomek

The compilation failed with this error:

code
Compilation failed with 2 error(s):

ERROR in src/main/java/client/java/gg/p4pit0s/gearreader/GearReaderScreen.java at line 60: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in   src/main/java/client/java/gg/p4pit0s/gearreader/GearReaderScreen.java at line 60: method does not override or implement a method from a supertype
      @Override
      ^


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/client/java/gg/p4pit0s/gearreader/GearReaderScreen.java
  -   src/main/java/client/java/gg/p4pit0s/gearreader/GearReaderScreen.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariMay 6 at 4:14 pm 6,508 (v2)

shouldCloseOnEsc() is final in Screen since 1.21.x and cannot be overridden — removed that @Override method (the default is already true).

red_ziomek

The compilation failed with this error:

code
Compilation failed with 2 error(s):

ERROR in src/main/java/client/java/gg/p4pit0s/gearreader/GearReaderScreen.java at line 60: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in   src/main/java/client/java/gg/p4pit0s/gearreader/GearReaderScreen.java at line 60: method does not override or implement a method from a supertype
      @Override
      ^


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/client/java/gg/p4pit0s/gearreader/GearReaderScreen.java
  -   src/main/java/client/java/gg/p4pit0s/gearreader/GearReaderScreen.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariMay 6 at 4:15 pm 6,911 (v2)

The file still has isPauseScreen() as the @Override — that should be fine. The real problem is at line 60 which is the isPauseScreen() override. Let me check what’s actually at line 60.

The file content shows isPauseScreen() at around line 60. In 1.21.4, isPauseScreen() was made final. I need to remove it.

Removed the isPauseScreen() override — it’s final in 1.21.4 and cannot be overridden.

red_ziomek

zrób żeby pokazywało tylko i wyłącznie graczy z netheritowymi przedmiotami

Kodari AI
KodariMay 6 at 4:28 pm 9,741 (v2)

Zmiana jest prosta — w buildLeft() i buildRight() dla tab GRACZE dodaję filtr .filter(p -> p.hasNetherite).

Teraz w zakładce GRACZE (aktywni i zniknięci) wyświetlają się tylko gracze, którzy mają przynajmniej jeden element ekwipunku z netherytu (hełm, napierśnik, spodnie lub buty).

red_ziomek

dodaj jeszcze miecz netheritowy , kilof, elytrę

Kodari AI
KodariMay 6 at 4:29 pm 11,648 (v2)

Teraz rozszerzam detekcję: hasNetherite obejmuje już NETHERITE_SWORD i NETHERITE_AXE, ale brakuje NETHERITE_PICKAXE i elytra jest osobnym polem. Filtr w GUI musi uwzględniać też hasElytra.

Teraz poprawiam filtr w GUI — gracz pokazuje się gdy ma netherite LUB elytrę:

Teraz zaktualizuję oba filtry — gracz pojawia się gdy ma netherite LUB elytrę:

Zmiany:

  • PlayerTracker — isNetherite() rozszerzony o NETHERITE_PICKAXE; hasNetherite sprawdza teraz również mainhand i offhand (czyli miecz/kilof w rękach)

  • GearReaderScreen — filtr zmieniony z p.hasNetherite na p.hasNetherite || p.hasElytra, więc gracz z elytrą też się pojawi

red_ziomek

zrób bez elytry

Kodari AI
KodariMay 6 at 4:30 pm 9,251 (v2)

Filtr zmieniony — teraz pokazuje tylko graczy z netheritowymi przedmiotami. Elytra usunięta z filtrów i z nagłówka panelu.

red_ziomek

zrób mi innego moda o nazwie itemki pod komenda /itemki mozesz zmienic texture i lore przedmiotu ktory trzymasz na customowy z anarchi gg (eventówek)

Kodari AI
KodariMay 6 at 5:41 pm 22,086 (v2)

Tworzę kompletny osobny projekt moda itemki w podkatalogu itemki/.

Mod jest gotowy. Co robi:

  • /itemki — działa na przedmiocie w głównej ręce

  • Nazwa zmienia się na anarchia.gg » Eventówka w kolorach złoto/żółty

  • Lore zawiera anarchia.gg branding, info o evencie i oznaczenie unikatowego przedmiotu

  • custom_model_data = 1 — ustawione na stacku, dzięki czemu resource pack może nadpisać teksturę przez items/<item>.json z range_dispatch na minecraft:custom_model_data z progiem 1.0

Aby zmienić teksturę należy dodać plik assets/itemki/items/<item>.json z range_dispatch na custom_model_data wskazujący na własny model + PNG teksturę. Każdy typ przedmiotu wymaga osobnego pliku, bo tekstury są per-item w Minecraft 1.21.4.

red_ziomek

a czy mógłbyś mi wrzucić te textury ? i lore

red_ziomek

wrzuć textury i lore, zmień creditsy moda na Redz1k, popraw INVENTORY GUI usuń procenty na mieczu

red_ziomek

zmień credits moda na redz1k popraw INVENTORY GUI usuń procenty na mieczu

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 803
src/client/java/gg/p4pit0s/gearreader/GearReaderClient.java
package gg.p4pit0s.gearreader;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import org.lwjgl.glfw.GLFW;

public class GearReaderClient implements ClientModInitializer {

    private static KeyBinding openKey;

    @Override
    public void onInitializeClient() {
        openKey = KeyBindingHelper.registerKeyBinding(new KeyBinding(
                "key.gearreader.open",
                InputUtil.Type.KEYSYM,
                GLFW.GLFW_KEY_G,
                "category.gearreader"
        ));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            if (client.world == null) return;

            PlayerTracker.INSTANCE.tick(client);
            TpaManager.INSTANCE.tick(client);

            while (openKey.wasPressed()) {
                if (client.currentScreen == null) {
                    client.setScreen(new GearReaderScreen());
                } else if (client.currentScreen instanceof GearReaderScreen) {
                    client.setScreen(null);
                }
            }
        });
    }
}