HeightBoxLib
by Trunkis
HeightBoxLib is a library for reading an entity's hitbox height, eye position and anchor points, and it is aimed at data packs and mod authors.
What it does
Hitbox related values from the library can be read for any entity, including the height of its hitbox, the position of its eye and the anchor used for aiming. Those values are written to hblib:hitbox storage and to scoreboard objectives such as Eye, hblib.number and Total, so a data pack can use them in commands. The library also lets an entity face the torso of a player. It is published for Fabric, Forge, NeoForge and Quilt, and as a data pack, with files for 1.20.3 – 26.2 and 3+mod for 1.21.4 as the latest file. The server requires it and the client may leave it out, and it is released under the MIT License, so it is open source.
Key features
Hitbox height readout
The height of an entity's hitbox is made available for use by commands and data packs.
Eye and anchor values
Eye position and anchor point values are stored in hblib:hitbox storage and scoreboard objectives.
Facing a player's torso
Entities can be made to face the torso of a player instead of the eyes or feet.
Gallery
Compatibility
Latest build for each game version and loader.
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
How it compares
Hitbox Focus is a Fabric client-side only mod under the Apache License 2.0, not open source, for 26.2. Combat Hitboxes is client-side only under the Apache License 2.0, open source, for 1.19.3 – 26.3. Additional Entity Attributes runs on client and server under the MIT License, open source, for 1.19.2 – 26.2 on Fabric, NeoForge and Quilt.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| HeightBoxLib | Fabric, Forge, NeoForge and Quilt | 1.20.3 – 26.2 | Server required, client optional | 2026-09-01 |
| Hitbox Focus | Fabric | 26.2 | Client-side only | 2026-09-02 |
| Combat Hitboxes | Fabric | 1.19.3 – 26.3 | Client-side only | 2026-06-13 |
| Additional Entity Attributes | Fabric, NeoForge and Quilt | 1.19.2 – 26.2 | Client and server | 2026-07-13 |
Questions
Does the server need HeightBoxLib?
In the catalog
HeightBoxLib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,894 mods support Minecraft 26.2.
More from Trunkis
Similar mods
What the author says
The height position of both the entity's eye anchor and the hitbox height will be outputted as hblib:hitbox eye and hblib:hitbox out in storage. The height and eye values can be obtained in score as #Eye hblib.number and #Total hblib.number
Official listing
- Modrinth page
- modrinth.com/mod/heightboxlib
- Owner
- Trunkis
- Published
- 2024-12-21
- Updated on Modrinth
- 2026-09-01
- Facts verified
- 2026-10-15
