? CustomHitboxLib
打破原版方形的束缚。
CustomHitboxLib 是一款轻量且强大的模组库,适用于 Forge 1.20.1 和 NeoForge 1.21.1,它彻底革新了实体的边界框(bounding boxes)。它完全绕过了 Minecraft 硬编码的单一方形碰撞箱(宽度和高度)的限制,为任何实体引入了完整的多部分碰撞箱支持——就像原版的末影龙一样!
无论你是正在开发庞大复杂的 Boss,还是仅仅希望为现有生物提供更精确的碰撞箱,CustomHitboxLib 都提供了一个无缝、稳健的框架来实现这一目标。
❓ 概览
- 这个项目添加了什么? CustomHitboxLib 是一个模组库,它为 Forge 1.20.1 和 NeoForge 1.21.1 带来了完整的多部分边界框支持,覆盖了原版实体碰撞箱仅为单一方形形状的限制。
- 它有哪些功能? 你可以将任意数量的独立、精确大小的子碰撞箱附加到单个实体上(自定义实体、原版生物或玩家)。它能处理复杂的位置定位,并自动将伤害转发给主实体。
- 用户为什么要下载它? 对于玩家来说,如果另一个出色的 Boss 或战斗模组需要此库才能运行,只需安装它即可!对于开发者而言,该库为你提供了工具,可以轻松构建巨大、动态形状的怪物和逼真的交互效果,而无需与 Minecraft 硬编码的机制作斗争。

? 完整的数据包支持
你不需要是程序员也能使用 CustomHitboxLib!整合包制作者和服务器管理员可以使用简单的 JSON 文件彻底重塑实体形状。
用 JSON 塑造你的世界
借助 Minecraft 内置的数据包系统,你可以为游戏中的任何现有实体附加全新的碰撞箱——例如翅膀、尾巴或额外的头部,无论是原版的僵尸还是来自其他模组的巨兽都可以。
- 无需编写代码: 仅通过 JSON 定义各部分的尺寸、偏移量和行为。
- 通用能力: 开箱即用,无缝作用于任何已加载的实体。
- 实时重载: 调整你的自定义碰撞箱并使用
/reload命令,即可在游戏中即时看到更改!

?️ 强大的开发者 API
虽然数据包非常适合配置现有生物,但 CustomHitboxLib 也为模组开发者提供了稳健的 API!
- 基于能力驱动: 使用 Forge Capabilities 动态地将新的子碰撞箱附加到任何实体上,无需修改基类或编写侵入式的 Mixin。
- 内置定位器: 利用提供的辅助方法轻松动画化和定位各部分(例如跟随在后方、相对偏移量或平滑插值)。
- 绝对控制: 对于完全自定义的 Boss,只需在你的实体上实现我们的接口,即可直接、精细地控制各部分的生命周期和更新逻辑。
⚙️ 无缝集成
CustomHitboxLib 旨在提供高性能和最大兼容性。
- 高级碰撞覆盖: 完全禁用原版碰撞箱的点击交互、推挤、方块碰撞和窒息机制,将这些关键检查全部转移到你新的自定义多部分碰撞箱上!
- 精确的伤害转发: 击中任何自定义子碰撞箱都能完美地注册伤害,并将方向性击退效果施加到主实体上。
- 非侵入式: 精心构建以在后台静默运行,使其成为复杂 Boss 和战斗模组的完美轻量级依赖项。
只需将其放入你的 mods 文件夹,加载支持的模组或自定义数据包,即可在全新的维度中体验 Minecraft 的战斗!
? CustomHitboxLib
Break free from the vanilla square.
CustomHitboxLib is a lightweight, powerful library mod for Forge 1.20.1 and NeoForge 1.21.1 that revolutionizes entity bounding boxes. It completely bypasses the limitations of Minecraft's hardcoded single, square-based hitboxes (width and height), introducing full multipart hitbox support for any entity—just like the vanilla Ender Dragon!
Whether you're developing massive, complex bosses or simply want precise hitboxes for existing creatures, CustomHitboxLib provides a seamless, robust framework to make it happen.
❓ At a Glance
- What does this project add? CustomHitboxLib is a library mod that brings full multipart bounding box support to Forge 1.20.1, NeoForge 1.21.1 overriding the vanilla limitation of single, square-shaped entity hitboxes.
- What features does it have? You can attach any number of independent, precisely sized sub-hitboxes to a single entity (custom entities, vanilla mobs, or players). It handles complex positioning and automatically forwards damage to the main entity.
- Why would a user want to download it? For players, simply install this if another amazing boss or combat mod requires it to function! For developers, this library gives you the tools to easily build massive, dynamically shaped creatures and realistic interactions without fighting hardcoded Minecraft mechanics.

? Full Datapack Support
You don't need to be a programmer to use CustomHitboxLib! Modpack creators and server owners can completely overhaul entity shapes using simple JSON files.
Shape Your World with JSON
Through the power of Minecraft's built-in Datapack system, you can attach entirely new hitboxes—like wings, tails, or extra heads—to any existing entity in the game, whether it's a vanilla zombie or a massive beast from another mod.
- No Code Required: Define part dimensions, offsets, and behaviors purely through JSON.
- Universal Capability: Works seamlessly on any loaded entity out of the box.
- Live Reloading: Tweak your custom hitboxes and use
/reloadto see the changes instantly in-game!

?️ Powerful Developer API
While Datapacks are perfect for configuring existing mobs, CustomHitboxLib also offers a robust API for mod developers!
- Capability Driven: Dynamically attach new sub-hitboxes to any entity using Forge Capabilities without needing to modify base classes or write invasive mixins.
- Built-in Positioners: Utilize provided helper methods to easily animate and position parts (e.g., following behind, relative offsets, or smooth interpolation).
- Absolute Control: For fully custom bosses, simply implement our interfaces on your entities to gain direct, fine-grained control over part lifecycles and update logic.
⚙️ Seamless Integration
CustomHitboxLib is designed for performance and maximum compatibility.
- Advanced Collision Overrides: Completely disable the vanilla hitbox's pick interactions, pushing, block collisions, and suffocation mechanics, transferring all of those crucial checks directly to your new custom multipart hitboxes!
- Precise Damage Forwarding: Striking any custom sub-hitbox flawlessly registers damage and directional knockback onto the main entity.
- Non-Intrusive: Carefully built to run silently in the background, making it the perfect lightweight dependency for complex boss and combat mods.
Just drop it in your mods folder, load up a supported mod or custom datapack, and experience Minecraft combat in a whole new dimension!
下载 CustomHitboxLib
下载 CustomHitboxLib
下载 CustomHitboxLib
下载 CustomHitboxLib
下载 CustomHitboxLib
下载 CustomHitboxLib
下载 CustomHitboxLib
下载 CustomHitboxLib
下载 CustomHitboxLib
下载 CustomHitboxLib
通过将实体扫描切换为缓存部件来提升性能
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧