CurseForge · Minecraft mod
Hitbox Api
Add more colliders for Minecraft
Quick answer
Which Hitbox Api release should I use?
Hitbox Api hitboxapi-neo-1.21.1-1.0.0.jar targets 1.21.3, 1.21.1, 1.21.2 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Hitbox Api required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Hitbox Api hitboxapi-neo-1.21.1-1.0.0.jar need?
hitboxapi-neo-1.21.1-1.0.0.jar. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Hitbox Api without breaking your instance.
Built for Hitbox Api hitboxapi-neo-1.21.1-1.0.0.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use hitboxapi-neo-1.21.1-1.0.0.jar. It targets 1.21.3, 1.21.1, 1.21.2 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside hitboxapi-neo-1.21.1-1.0.0.jar. It opens that exact file at the source.
About this project
What does Hitbox Api add?
Hitbox API
Adding more common collision boxes for Minecraft
- Oriented Bounding Box (OBB)
- Sphere
- Capsule
- Ray
- Compound
- Multiple collision boxes can be combined into one.
- Composite collision boxes can be nested.
How to Use
In any place where collision detection is needed, create a collider object and use the methods in ColliderUtil to determine if a collider has occurred.
For entities (Entity), you can achieve collider caching by attaching HitboxDataAttachments#COLLISION. The cached collider can be rendered by pressing F3 + B. Note that this Data does not have a persistence implementation.
Performance
Testing Method
- JMH Benchmark
Testing Environment
- CPU: AMD R5 5600G
- Memory: 32GB
- JDK: Microsoft OpenJDK 21.0
Testing Settings
- Warm-up Rounds: 5
- Test Rounds: 5
Testing Items
- Collision detection of the same type of collider
| Collision Box | Score | Error | Unit |
|---|---|---|---|
| Axis-Aligned Bounding Box | 3561837865.930 | 157982649.213 | ops/s |
| Capsule | 22350681.198 | 238993.658 | ops/s |
| Rotated Capsule | 16842309.523 | 103959.918 | ops/s |
| Oriented Bounding Box | 5528493.224 | 64548.996 | ops/s |
| Rotated Oriented Bounding Box | 4648963.750 | 111369.535 | ops/s |
| Sphere | 119556589.705 | 1711146.560 | ops/s |
Note: Higher scores indicate better performance. Rotated means the collider is rotated and the relevant vectors are recalculated.

Project description from CurseForge.
Pick your setup
Hitbox Api by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.2
1 loader build1.21.1
1 loader build1.21
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Hitbox Api versions and loaders
hitboxapi-neo-1.21.1-1.0.0.jar
3 Dec 2024
Looking for an older file? The official CurseForge project page is in Resources.