Skip to content

HeightBoxLib

Hitbox related Library that gets the entity's height!

FabricNeoForgeForgeQuilt
Loaders
FabricNeoForgeForgeQuilt
Downloads on Modrinth
412
Followers on Modrinth
0
versions
6
Updated
September 1, 2026Sep 1
Published
in 2024
This is a library — other mods need it, and it adds nothing to the game by itself
Thumbnail · swipe

At a glance

A library: other mods need it
Runs on Fabric, NeoForge, Forge and Quilt
For Minecraft 1.20.3–26.2
Needed on the server; optional in the game
Latest version — 6 from September 1, 2026
License MIT — free
Where it's needed
In gameoptionalOn serverrequired

Needed on the server; optional in the game

Game versions1.20.3–26.2

HeightBoxLib

Hitbox related library datapack for geting the height of an entity.

Usage

Execute as an entity at itself and run hblib:util/get_height or any of the other variants.

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

Example: Making an entity face a torso of a player

##This is from the targetted entity
scoreboard players set #Player hblib.number 1
function hblib:util/get_height

##Full - Eye height
scoreboard players operation #Temp plate_havoc.temp = #Total hblib.number
scoreboard players operation #Temp plate_havoc.temp -= #Eye hblib.number
#Full /2
scoreboard players operation #Temp2 plate_havoc.temp = #Total hblib.number
scoreboard players operation #Temp2 plate_havoc.temp /= #2 plate_havoc.temp
#Halved + Temp
execute store result storage plate_havoc:custom torso double 0.01 run scoreboard players operation #Temp plate_havoc.temp += #Temp2 plate_havoc.temp

execute anchored eyes as 00000000-0000-0005-0000-0001000007e9 run function plate_havoc:game/misc/face_torso/execute with storage plate_havoc:custom

Variants

hblib:util/get_height | Gets height of an entity's hitbox
hblib:util/get_height_dy | Height of an entity's hitbox -0.01
hblib:util/get_halved | Height of an entity's hitbox /2.

FAQ

How to install HeightBoxLib?

Install Fabric for your Minecraft version, download HeightBoxLib for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does HeightBoxLib support?

HeightBoxLib has builds for Minecraft 1.20.3–26.2.

Is HeightBoxLib needed on the server?

Needed on the server; optional in the game

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More