
PikaPvP — Client-Side Target HUD (Fabric + Forge)
PikaPvP adds a clean, lightweight Target HUD for PvP. It displays key combat info for the player you’re aiming at — no server plugin required.
Client-side only. It’s an overlay that organizes information your client can already access. No gameplay changes. It doesn’t modify mechanics like damage, reach, speed, or packets.
Features
-
Target + Health HUD (clear, readable, color-coded)
-
Optional details:
- Absorption
- Weapon info (damage, cooldown, durability)
- Distance / Ping / Line of Sight
- Movement speed multiplier
- Armor stats (armor, toughness, knockback resistance)
- Offhand detection (Totem / Shield) + Blocking
- Armor pieces + durability
- Status effects (amplifier + timer, with max-limit to stay clean)
Smart Targeting (stable in fights)
- Prioritizes your crosshair target
- Supports aim-tolerance for fast movement
- Sticky targeting reduces flicker
- Stale timer prevents outdated HUD info lingering
Customization

- Toggle sections on/off (minimal → full tactical)
- Compact mode
- HUD position (anchors + offsets + screen clamping)
- Visual styling (opacity, padding, spacing)
- Behavior tuning (range, tolerance, sticky/stale ticks)
Config: config/pikapvp.json
Controls
- O — Open HUD Settings
- H — Toggle HUD
Also adds a “PikaPvP HUD” button to the Pause Menu and Options Menu. ModMenu supported (optional, Fabric).
Requirements
Minecraft: 1.21.x (>= 1.21.8, < 1.22) Java: 21+
Fabric
- Fabric Loader >= 0.15.0
- Fabric API required
- ModMenu optional
Forge
- Forge (JavaFML) 58+
- No extra dependencies beyond Forge
Server Notes
Some servers may restrict what clients can see (e.g., other players’ health). In those cases, available HUD details depend on server rules — the mod remains useful for things like distance/ping/LOS/offhand/armor/effects where permitted.
License
MIT (modpack-friendly)
How to Install Pika PvP (Mod)
Pika PvP by SezarBD is verified for Fabric, Forge across Minecraft versions 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5 (latest release: 1.0.0, file size: 51 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5) and platform (Fabric, Forge).
- Make sure you have the compatible loader or environment installed for Fabric, Forge.
- Move the downloaded Pika PvP file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version✅ Fixed build-breaking issues
PikaPvPConstants.java
❌ Removed new Identifier(MOD_ID, path) (constructor is private in 1.21.8 mappings)
✅ Replaced with Identifier.of(MOD_ID, path) + safe fallback via Identifier.tryParse(...)
✅ Added path sanitize (null/empty protection)
mods.toml
❌ Removed invalid :contentReference[...] text (breaks TOML parsing)
✅ Switched to Gradle-expanded placeholders: ${mod_id}, ${mod_name}, ${version}
✅ Kept clientSideOnly=true
✅ Added displayTest="IGNORE_ALL_VERSION"
✅ Set Minecraft range to [1.21.8,1.22) to match your project
✅ Rendering / HUD visibility improvements
PikaPvPConfig.java
✅ Added NaN/Infinity protection + stronger clamps (offsets, opacity, ranges)
✅ (Optional visibility fix) Set default alwaysShow=true and bumped configVersion (if you used that patch)
PikaPvPConfigIO.java
✅ Made load() and save() synchronized (avoids rare partial read/write collisions)
✅ Safer temp file write options (Windows safe)
✅ (Optional upgrade logic) Auto-upgrade old configs → forces alwaysShow=true and saves once
InGameHudMixin.java
✅ (Optional) Dual-hook compatibility: inject into renderMainHud and fallback render
✅ Prevented double-drawing using a boolean guard
✅ (Optional) One-time INFO log to confirm mixin is active
✅ UI / Settings improvements
PikaPvPConfigScreen.java
✅ Clamped offset changes immediately when pressing move buttons
✅ Safe screen switching when MinecraftClient is null
✅ Sliders now display clamped values (no drift)
en_us.json
✅ Changed offset format to: "Offset: %d, %d" (you pass ints, safer than %s)
✅ Data safety (prevents random NPE / list mutation bugs)
PlayerInfoPayload.java
✅ Hardened against null values
✅ Normalized armor list to exactly 4 entries (always safe)
✅ Made armor / effects lists immutable (List.copyOf)
✅ Sanitized numeric values (health/maxHealth/distance/ping)
RequestPlayerInfoPayload.java
✅ Null-safe UUID default
✅ Cleanup / maintenance
PikaPvPForge.java
✅ Removed broken :contentReference[...] junk
✅ Kept MinecraftForge.registerConfigScreen(PikaPvPConfigScreen::new)
✅ Kept PikaPvPServer.init() no-op for compatibility
PikaPvPNetworking.java
✅ Added one-time init guard (inited) + debug log (optional)
PikaPvPServer.java
✅ Added one-time debug log (optional) so you know if something unexpectedly calls it
pack.mcmeta
✅ Converted description to JSON text component (more future-proof)
✅ Kept pack_format: 64 (correct for MC 1.21.8)
pikapvp.mixins.json
✅ No functional change (your file is already correct)
✅ Ensured it stays in src/main/resources/
build.gradle
✅ Ensured Forge mixin config is included: forge { mixinConfig "pikapvp.mixins.json" }
✅ Added Loom mixin refmap settings: useLegacyMixinAp + defaultRefmapName
✅ Added annotationProcessor "org.spongepowered:mixin:0.8.5:processor"
✅ Added resource duplicates strategy + stronger inputs.property for caching safety
Optional version bump
If you want a c
...
- Added a lightweight **client-side Target HUD** (no server plugin/mod required).
- Smart targeting: **crosshair target + aim-cone fallback**, with **sticky target** + **stale timer** to prevent flicker.
- HUD modules (toggle each): **Health/Absorption (+ optional SB)**, **Weapon stats (damage/cooldown/durability)**, **Distance**, **Ping**, **Line of Sight**, **Move speed**, **Defense (armor/toughness/KB)**, **Offhand (Totem/Shield + Blocking)**, **Armor pieces + durability**, **Active effects (I/II/III + time)**.
- Full customization: **anchor position**, **offsets**, **screen clamp**, **padding/margins**, **opacity controls**, **compact mode**, **max effects**, and more.
- In-game settings UI with **Basic / Content / Advanced** pages + quick access button in **Pause/Options** menus.
- Keybinds: **O** (open settings) and **H** (toggle HUD).
- Optional **ModMenu** integration.
- Safe config handling: loads defaults if missing/broken and writes config safely to
config/pikapvp.json.