ninja_343.

Client sided mod that change the nametag look like pvphq and the image the nametag is also rotating with the player look location

1 image attached
Kodari AI
KodariAug 3 at 4:57 pm 1
PvPHQNametags
A client-side Fabric mod that gives player nametags a PvPHQ-inspired appearance with crisp white lettering, dark pixel-style outlining, improved readability, and distance-aware rendering. Nametags remain visually anchored to players while reacting naturally to camera and player look direction, creating a polished competitive PvP presentation without changing server gameplay or requiring server-side installation.
PvPTag
A client-side Fabric 1.21.11 mod that replaces vanilla player nametags with a PvPHQ-inspired presentation. It renders a dark framed nameplate with a red-and-white PvP badge, crisp shadowed player names, and a badge that rotates according to the player’s head direction. The implementation is lightweight, requires no server installation, and uses the modern split client source set and Yarn mappings.

_rf

Created PvPTag, a client-side Fabric 1.21.11 mod that:

  • Replaces player nametags with a PvPHQ-inspired dark nameplate.

  • Adds a red-and-white PvP badge.

  • Rotates the badge based on the player’s head direction.

  • Uses Fabric’s split client source set and Yarn mappings.

  • Requires no server-side installation or external libraries.

ninja_343.

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/client/java/com/kodari/pvptag/client/NametagRenderer.java at line 45: cannot find symbol
        matrices.multiply(client.getEntityRenderDispatcher().getRotation());
                                                            ^
  symbol: method getRotation()
  location: class EntityRenderManager

ERROR in src/main/java/client/java/com/kodari/pvptag/client/NametagRenderer.java at line 87: cannot find symbol
        VertexConsumer vertices = vertexConsumers.getBuffer(RenderLayer.getEntityTranslucent(WHITE_TEXTURE));
                                                                       ^
  symbol: method getEntityTranslucent(Identifier)
  location: class RenderLayer

ERROR in   src/main/java/client/java/com/kodari/pvptag/client/NametagRenderer.java at line 45: cannot find symbol
          matrices.multiply(client.getEntityRenderDispatcher().getRotation());
                                                              ^
  symbol: method getRotation()
  location: class EntityRenderManager

ERROR in   src/main/java/client/java/com/kodari/pvptag/client/NametagRenderer.java at line 87: cannot find symbol
          VertexConsumer vertices = vertexConsumers.getBuffer(RenderLayer.getEntityTranslucent(WHITE_TEXTURE));
                                                                         ^
  symbol: method getEntityTranslucent(Identifier)
  location: class RenderLayer


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - getRotation()
  - getEntityTranslucent(Identifier)
ACTION: Check method names and signatures

FILES TO INVESTIGATE:
  - src/main/java/client/java/com/kodari/pvptag/client/NametagRenderer.java
  -   src/main/java/client/java/com/kodari/pvptag/client/NametagRenderer.java

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

Kodari AI
KodariAug 3 at 7:42 pm 3

Fixed NametagRenderer.java for Fabric 1.21.11:

  • Replaced removed EntityRenderManager#getRotation() with getEntityRenderDispatcher().camera.getRotation().

  • Replaced removed RenderLayer.getEntityTranslucent(...) with RenderLayers.entityTranslucent(...).

  • Added the required RenderLayers import.

The corrected client artifact is ready for compilation.

ninja_343.
1 image attached
Kodari AI
KodariAug 3 at 8:17 pm 3
  1. Inspect the mixin declaration and target class.

  2. Correct the client-only mixin registration or remove the fragile hook if the renderer can be registered safely without it.

  3. Patch the project and produce a new corrected artifact.

The crash is caused by a larger 1.21.11 rendering refactor than the previous fix accounted for: EntityRenderer.renderLabelIfPresent now receives an EntityRenderState, MatrixStack, render-command queue, and camera state. I’m replacing the outdated immediate-rendering mixin with the correct command-queue implementation.Created the corrected client artifact.

Fixed the crash by updating the nametag mixin for Fabric 1.21.11’s rendering API:

  • Uses EntityRenderState instead of the removed entity/text method parameters.

  • Uses MatrixStack, OrderedRenderCommandQueue, and CameraRenderState.

  • Replaced immediate vertex rendering with queue.submitCustom(...).

  • Updated text rendering to queue.submitText(...).

  • Preserved the PvPHQ-style panel and rotating badge using relativeHeadYaw.

  • Kept the mixin in the client-only section.

Updated files:

  • src/client/java/com/kodari/pvptag/mixin/EntityRendererMixin.java

  • src/client/java/com/kodari/pvptag/client/NametagRenderer.java

Replace the old BetterNametags.jar with the newly compiled artifact.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 281
src/main/java/com/kodari/pvptag/PvPTag.java
package com.kodari.pvptag;

import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class PvPTag implements ModInitializer {
    public static final String MOD_ID = "pvptag";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitialize() {
        LOGGER.info("PvPTag loaded");
    }
}