MECHA - Multiple Entity Collision Hitboxes API
by byteManiak
MECHA adds a Fabric API that lets a custom entity carry several collision boxes instead of one, so developers can give a single entity a more detailed hitbox shape.
What it does
A custom entity class that implements the MultiCollidable interface can override getColliders and return extra colliders, each covering part of the entity's body. The API ships with an example that adds two colliders to an entity shaped like a slab. Version 0.1.2 also introduces DynamicBoundingBoxEntity, whose bounding boxes are built from a list that changes at runtime. The code is released under the MIT License and is open source. Client and server both need the mod, since collision is checked on each side.
Key features
Multiple colliders per entity
A custom entity can return a list of collision boxes, replacing the single bounding box vanilla entities use.
MultiCollidable interface
Entity classes implement MultiCollidable and override getColliders to supply the extra boxes.
Dynamic bounding boxes
DynamicBoundingBoxEntity builds its colliders from a list that can change, added in version 0.1.2.
Gallery
Compatibility
Latest build for each game version and loader.
1.21.x2 of 2 versions with builds
1.20.x7 of 7 versions with builds
1.19.x1 of 1 version with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does MECHA need Fabric API?
Does MECHA have to be installed on the server?
In the catalog
MECHA - Multiple Entity Collision Hitboxes API is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from byteManiak
Similar mods
What the author says
A simple API for enabling custom entities to implement more than one collision box. Implement MultiCollidable in your custom entity class, and override getColliders to add extra colliders to the entity.
Official listing
- Modrinth page
- modrinth.com/mod/mecha-api
- Owner
- byteManiak
- Published
- 2024-05-03
- Updated on Modrinth
- 2024-09-11
- Facts verified
- 2026-10-15
