Hitbox Api
🟠 Updated over a year ago⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
🖼️ Gallery (1 images)
🔍 Analysis
- 👍 1.1% endorsement rate — high engagement, a strong quality signal
- 🏆 #3 of 9 library mods in this game by downloads
📋 About This Mod
# Hitbox API **Adding more common collider for Minecraft** - Oriented Bounding Box (OBB) - Sphere - Capsule - Ray - Compound - Multiple collider can be combined into one. - Composite collider 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 box 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 | Collider | 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. !(https://cdn.modrinth.com/data/wNLZV9jI/images/67223aa85d60c5de0dbd85548559ce0c03c41d2a.png)
# Hitbox API
Adding more common collider for Minecraft
- Oriented Bounding Box (OBB)
- Sphere
- Capsule
- Ray
- Compound
- - Multiple collider can be combined into one.
- - Composite collider 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 box 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
| Collider | 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 |
!(https://cdn.modrinth.com/data/wNLZV9jI/images/67223aa85d60c5de0dbd85548559ce0c03c41d2a.png)
📊 Mod Details
- Game
- Minecraft Mods
- Author
- AnECanSaiTin
- Version
- neo-1.21.1-1.0.0
- Downloads
- 1,138
- Endorsements
- 13
- Category
- library
- Created
- 12/5/2024
- Updated
- 12/3/2024
- Game Versions
- 1.21, 1.21.1, 1.21.2, 1.21.3
- Tags
- library
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does Hitbox Api support?
The author lists 1.21, 1.21.1, 1.21.2, 1.21.3. Other versions may work but are untested by the author.
What is the latest version of Hitbox Api?
Version neo-1.21.1-1.0.0, published 2024-12-03 with 1,138 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await
