CurseForge · Minecraft mod
MECHA - Multiple Entity Collision Hitboxes API
Fabric API for implementing multiple collider hitboxes for a single entity
Quick answer
Which MECHA - Multiple Entity Collision Hitboxes API release matches 1.20.4 Fabric?
MECHA - Multiple Entity Collision Hitboxes API MECHA 0.1.1 - Fabric 1.20 targets 1.20.2, 1.20.5, 1.20.3 with Fabric. 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 MECHA - Multiple Entity Collision Hitboxes 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 MECHA - Multiple Entity Collision Hitboxes API MECHA 0.1.1 - Fabric 1.20 need?
MECHA 0.1.1 - Fabric 1.20 on 1.20.4 Fabric. Every mod below is checked against that same setup.
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 MECHA - Multiple Entity Collision Hitboxes API without breaking your instance.
Built for MECHA - Multiple Entity Collision Hitboxes API MECHA 0.1.1 - Fabric 1.20 on 1.20.4 Fabric. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use MECHA 0.1.1 - Fabric 1.20. It targets 1.20.2, 1.20.5, 1.20.3 with Fabric; 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 MECHA 0.1.1 - Fabric 1.20. It opens that exact file at the source.
About this project
What does MECHA - Multiple Entity Collision Hitboxes API add?
A simple API for enabling custom entities to implement more than one collision box.
Setup
Add the Modrinth Maven and the right version of the mod to your build.gradle file:
repositories {
maven { url 'https://api.modrinth.com/maven' }
}
dependencies {
modImplementation "maven.modrinth:mecha-api:VERSION_GOES_HERE"
}
Usage
Implement MultiCollidable in your custom entity class, and override getColliders to add extra colliders to the entity.
Example
The following example code adds 2 colliders to an entity, each the size of a slab:
public CustomEntity extends Entity implements MultiCollidable { public List<VoxelShape> getColliders() {
List<VoxelShape> colliders = new ArrayList<>();
BlockPos pos = this.blockPos();
double x = pos.getX();
double y = pos.getY();
double z = pos.getZ();
colliders.add(VoxelShapes.cuboid(x, y, z, x+1, y+0.5, z+1));
colliders.add(VoxelShapes.cuboid(x, y+0.5, z, x+1, y+1, z+1));
return colliders;
}
}
Project description from CurseForge.
Pick your setup
MECHA - Multiple Entity Collision Hitboxes API by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.20.5
1 loader build1.20.4
1 loader build1.20.3
1 loader build1.20.2
1 loader build1.20.1
1 loader build1.19.4
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
MECHA - Multiple Entity Collision Hitboxes API versions and loaders
MECHA 0.1.1 - Fabric 1.20
mecha-0.1.1(1).jar
12 May 2024
Looking for an older file? The official CurseForge project page is in Resources.