MECHA - Multiple Entity Collision Hitboxes API

⭐ — (3 endorsements) 📥 2,260 downloads 📌 v0.1.2 📅 5/6/2024
⚪ Last updated 2024

By byteManiak · fabric

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 9/11/2024 📅 Created: 5/6/2024
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.1% endorsement rate
  • 🏆 #723 of 945 fabric mods in this game by downloads

📋 About This Mod

A simple API for enabling custom entities to implement more than one collision box.

Add the Modrinth Maven and the right version of the mod to your build.gradle file:

```gradle repositories { maven { url 'https://api.modrinth.com/maven' } }

dependencies { modImplementation "maven.modrinth:mecha-api:VERSION_GOES_HERE" } ```

Implement `MultiCollidable` in your custom entity class, and override `getColliders` to add extra colliders to the entity.

The following example code adds 2 colliders to an entity, each the size of a slab:

```java public CustomEntity extends Entity implements MultiCollidable { public List getColliders() { List 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; } } ```

For 0. 1. 2 and newer, there is now also a custom entity type, `DynamicBoundingBoxEntity`, which has a dynamic bounding box based on the list returned by `getColliders()`:

```java public CustomEntity extends DynamicBoundingBoxEntity { // The bounding box of this entity will dynamically resize // to fit the colliders returned by this function @Override public List getColliders() { ... } } ```

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
byteManiak
Version
0.1.2
Downloads
2,260
Endorsements
3
Category
fabric
Created
5/6/2024
Updated
9/11/2024
Game Versions
1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3
Tags
game-mechanics, library, utility

🔧 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 MECHA - Multiple Entity Collision Hitboxes API support?

The author lists 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4. Other versions may work but are untested by the author.

What is the latest version of MECHA - Multiple Entity Collision Hitboxes API?

Version 0.1.2, published 2024-09-11 with 2,260 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More fabric 👤 More by byteManiak 🔎 Similar Mods 🌐 Best fabric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods