Back to mods
Hitbox Api project artwork

CurseForge · Minecraft mod

Hitbox Api

Add more colliders for Minecraft

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Hitbox Api release should I use?

Updated 1 year ago
Latest stable file hitboxapi-neo-1.21.1-1.0.0.jar
Game version 1.21.3, 1.21.1, 1.21.2
Loader NeoForge

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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

No extra mods listed for this file

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.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 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.

add collider for enttiy

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.

4 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Hitbox Api versions and loaders

1 of 1 releases match

Looking for an older file? The official CurseForge project page is in Resources.