HitboxReveal
See enemy hitboxes the moment you hit them. HitboxReveal draws a colored bounding box around any player you attack — giving you instant visual feedback on their exact position, mid-combo, or while they're moving.
Built with AI-assisted coding; I handle all feature planning, testing, and bug fixes.
✨ Features
Player Hitboxes
- 3-state color system — boxes change color based on combat context:
- 🟡 Default — target is marked, normal range
- 🔴 Close — target is within your configured danger zone
- 🟣 Crit-Ready — target is airborne AND your attack cooldown is full
- Gradient fill — smooth top-to-bottom color gradient on hitbox faces, with per-state gradient support
- Fade out — hitbox fades as the timer expires
- Pulse — animated opacity pulsing with adjustable speed
- Corner-only outline — render just the corner brackets instead of full edges
- Eye height box — separate flat box at the target's eye level
- Look vector — line showing exactly where the target is looking
Entity Hitboxes
- Track ender pearls, arrows, and wind charges in flight
- Per-entity color, size multiplier, and outline-only toggle
- Enemy-only filter — only show projectiles not thrown by you
Friends List
- Add players by username to an ignore list — their hitbox will never reveal even if you hit them
- Perfect for FFAs with squadmates
- Press
Nto open (rebindable in Controls)
Range Indicator
- Circle on the ground showing your close-range threshold radius
- Custom color
Self-Reveal
- Show your own hitbox in third-person, permanently or on-hit
🎮 Controls
| Key | Action |
|---|---|
G |
Toggle mod on/off |
B |
Open config screen |
N |
Open Friends (ignore) list |
All keys are rebindable in Options → Controls → HitboxReveal
⚙️ Requirements
- Minecraft 1.21.11
- Fabric Loader
- Fabric API
- YACL (config screen)
- Mod Menu (optional, for Mod Menu integration)
Found a bug or have a suggestion? Contact lwkSlick on Discord.
How to Install Hitbox Reveal (Mod)
Hitbox Reveal by lwkSlick is verified for Fabric across Minecraft versions 1.21.11 (latest release: 1.0.10, file size: 55 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.11) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Hitbox Reveal file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version### Removed
- Crit color system (config option, per-state gradient color, and in-game logic)
- Close range threshold slider and fixed-distance close-range detection
- Range indicator (ground circle, its color option, and solo auto-reveal pulse toggle)
- Unused hit sound options (
hitSound,hitSoundVolume) - Unused per-state saturation/brightness fields (
satDefault/satClose/satCrit/satGradientTop,briDefault/briClose/briCrit/briGradientTop)
### Changed
- Smart targeting**: close-range color now triggers based on crosshair reach detection (aiming at a target within attack range) instead of a fixed block-distance threshold
- Renamed "Close range color" → **Smart target color** throughout the config UI, including the per-state gradient top option
- Hit register behavior**: hitbox now forces the default color during the hurt-flash window (
hurtTime > 0), overriding smart target color on a fresh hit
### Fixed
gradientFlipno longer silently fails — bottom fill colors were being extracted after the top/bottom swap instead of before, making the flip ineffective- Hoisted perspective and crosshair-target checks outside the per-player render loop for a small performance gain
### Config
- Config file will drop all removed fields above on next save (crit color, range indicator, close range threshold, hit sound, unused sat/bri fields)
### Added
- Reveal All Hitboxes** — a new toggle in Basics that permanently reveals every nearby player, ignoring range, player count, and hit requirements. Turn it off to hide them again.
### Fixed
- Update checker** was always displaying version
0.0.0due to a Modrinth API lookup bug. It now correctly checks for updates. - Max Players slider** (Solo Auto-Reveal) was an unbounded text field — replaced with a proper slider (1–100).
- Stuck hitboxes**: toggling off Reveal All or Solo Auto-Reveal now correctly clears revealed players instead of leaving them stuck highlighted.
### Removed
- Pearl Trail** (Trajectories tab) has been removed. This feature is seen as an unfair advantage and had to be removed.
#### New Features
- Reveal All button** — instantly reveals every player in the world permanently, bypassing range and count limits (same as F3+B but for players only)
- Reset Defaults button** — resets every setting to its default value in one click
- Close color toggle** — new option to disable the close-range color; targets will use the default color instead
- Crit color toggle** — new option to disable the crit-ready color; targets will use the default color instead
- Pearl trail fade-out** — trails now smoothly fade out after a pearl lands, lingering for a configurable duration before disappearing
#### Changes
- Line width slider minimum lowered from
2.0to0.5, allowing thinner outlines - Solo Auto max players input changed to a number field with a range of 1–100 (was a slider capped at 5)
- Entity fill now renders a proper top-to-bottom color gradient using the gradient top color setting
#### Performance
- Pearl trail renderer is now zero-allocation per frame — pre-computed sin/cos tables and reusable static arrays replace per-frame heap allocations
- Entity loop now uses a 64-block bounding box query instead of iterating all world entities, reducing CPU overhead at high entity counts
- Pearl trail search gated behind
pearlTrailEnabled— skipped entirely when the feature is off
#### Bug Fixes
- Pearl trails now use
LinkedListfor O(1) removal from the front instead of shifting anArrayList - Removed unused saturation/brightness color fields (
satDefault,satClose, etc.) that had no effect - Removed broken hit sound settings (
hitSound,hitSoundVolume) that referenced a non-existent sound API
### New Features
- 14 new entity hitbox types — brings the total to 20, each with its own toggle, color, size multiplier, and outline-only mode: Spectral Arrow, Trident, Snowball, Egg, Splash/Lingering Potion, Wither Skull, Shulker Bullet, End Crystal, TNT (block), Firework Rocket, Area Effect Cloud, Evoker Fangs, Eye of Ender, Fishing Bobber
- Config screen redesigned into 5 tabs — General, Visuals, Entities, Trajectories, Friends — with sub-groups in each
- Entity rendering skips entirely when all entity types are disabled
### Changes
- Friends screen removed — friends management moved into the config screen Friends tab
- N keybind removed
- Pearl landing beam, particles, and lightning removed — were unstable; trail system remains intact
### Fixes
- Pearl tracking now respects the global enabled toggle — trails no longer render when the mod is off
- Update checker slug fixed — was sending requests to
hitboxreveal(404), corrected tohitbox-reveal
### New: Entity Hitboxes
- TNT Minecart** hitbox with configurable color, size multiplier, and outline-only mode
- Fireball** hitbox (ghast, blaze, etc.) with same options
- Boat & Chest Boat** hitboxes with same options
- All entity hitboxes respect the existing "Only enemy projectiles" toggle
### New: Gradient Flip
- Option to reverse the gradient direction (bottom-to-top instead of top-to-bottom)
### New: Player Box Size Presets
- Three presets: Default, Minimum, Maximum
- Minimum and Maximum scales are fully configurable
- Useful on servers with custom entity scaling
### New: Solo Auto-Reveal Max Players
- Slider to set how many nearby players can be auto-revealed at once (1–5)
- Replaces the old hardcoded solo-only (==1) behaviour
### New: Pearl Trajectories
- Enemy ender pearls leave a visible **cylindrical trail** as they fly
- Trail uses a smooth color gradient (start → end), configurable opacity, width, length, and linger time
- Optional: show trails on your own pearls too
- Landing beam** marks where a pearl lands — vertical beam with animated **lightning effect**
- Portal particles** spawn on impact
- All settings under the new **Trajectories** tab in the config screen
### New: Trajectories Config Tab
- New tab in the config screen (
B) with **Pearl Trail** and **Landing Beam** groups
### Credits
- Pearl trajectory rendering adapted from [Pearl-Trajectories-Fabric](https://github.com/szokk/Pearl-Trajectories-Fabric) by szokk (MIT License)
### New Features
- Entity hitboxes** — toggleable hitbox rendering for Ender Pearls, Arrows, and Wind Charges with per-entity color, size multiplier, and outline-only mode
- Enemy-only filter** — option to only show hitboxes for projectiles not thrown/shot by you
- Friends list** — players added to the ignore list will never have their hitbox revealed (open with **N**)
- Solo Auto-Reveal** — automatically reveals the hitbox of the only nearby enemy without needing to hit them; deactivates when more than one enemy is in range. Includes configurable detection range (up to 300 blocks), linger ticks, action bar notifications, and range indicator pulse
- Update checker** — notifies you on launch if a newer version is available
### Changes
- Keybinds now appear correctly in Minecraft's Controls screen
### New Features
- ModMenu support** — config screen now accessible via the ModMenu mod list
- YACL config screen** — completely rebuilt config UI using YetAnotherConfigLib with tabbed layout, proper sliders, colour pickers, and descriptions for every option
- Gradient system** — toggle gradient fill on/off; choose a single top colour or enable per-state gradients with separate top colours for default, close range, and crit states
- Fade out** — hitbox opacity smoothly fades as the reveal timer expires
- Pulse animation** — hitbox opacity animates with a configurable pulsing effect and speed
- Corner-only outline** — render clean bracket-style corners instead of a full outline, with adjustable corner length
- Range indicator** — circle on the ground showing your close-range threshold radius, with configurable colour
- Self-reveal** — show your own hitbox in third-person, either permanently or only after hitting someone
- Dedicated keybind category** — toggle and config keys now appear under their own HitboxReveal category in controls
### Changes
- Config screen tabs ordered as: Options → Colors → Gradient → Effects
- Outline toggle no longer hides the translucent fill — they are now independent
- Line width scales with distance so outlines stay visually consistent at range
- Hitbox rendering now uses smooth sub-tick position interpolation for fluid movement
### Fixes
- Config screen crash on open fixed
- Gradient colours now correctly applied per state when per-state mode is enabled
### 🐛 Bug Fixes
- Fixed hitbox jitter** — hitboxes now interpolate using
getLerpedPosat your actual framerate instead of snapping to tick boundaries. Movement is now as smooth as vanilla debug hitboxes.
### ✨ New Features
- Fill rendering** — hitboxes now render a translucent fill inside the box in addition to the outline. Opacity is configurable.
- Gradient colors** — outline and fill now support a separate top color, blending vertically from bottom to top across the box.
- Eye height box** — optional thin box drawn at the target's exact eye level. Toggle in config.
- Look vector arrow** — optional line + arrowhead showing the direction the target is facing. Toggle in config.
- Configurable line width** — slider in config screen (note: line width is locked to 1px when Sodium is installed, this is a Sodium engine limitation).
### ⚙️ Config Screen (B key)
- Added **Gradient Top** color slider
- Added **Eye Box** toggle
- Added **Look Vector** toggle
- Added **Fill Opacity** slider
- Added **Line Width** slider
### ✨ Added
- Hitbox rendering on player attack — box stays visible for a configurable duration
- 3-state color system:**
- Default color (normal range)
- Close color (≤3 blocks)
- Crit-ready color (target airborne + your cooldown full)
- In-game config screen (press **B**):
- RGB sliders for all 3 colors
- Duration slider (1s / 2s / 3s / 5s / 10s / 20s)
- Line width slider (0.5 – 4.0)
- Outline toggle
- Toggle keybind (press **G**) with hotbar feedback
- Both keybinds rebindable via Minecraft Controls settings
### 🔧 Technical
- Fabric 1.21.11 / Yarn mappings
- No mixin usage
- Rendering via
WorldRenderEvents.AFTER_ENTITIES+RenderLayers.LINES