这是一个因实际需求而开发的小型库,其唯一目的是让生物战斗更加引人入胜。Minecraft 处理近战战斗的典型方式是检测实体是否在另一个实体的特定距离内并进行伤害判定,这相当无聊。当然,你可以为每次攻击添加碰撞箱,但反复编写碰撞箱代码会变得冗余且混乱。更不用说它们无法原生渲染,而且 Minecraft 将碰撞箱限制为 AABB(Axis Aligned Bounding Box)。
使用 SentinelLib,开发者现在可以轻松定义碰撞箱,不仅支持 AABB,还支持 OBB(Oriented Bounding Box),这些碰撞箱会随着实体的移动而旋转,并且能够轻松应用自定义功能,同时还能看到实体的攻击碰撞箱。
为什么要和一个无聊的僵尸战斗,当你可以选择对抗哨兵呢。
注意
该模组仍处于测试阶段,以下功能即将实现:
- 动态旋转哨兵碰撞箱
- 动态缩放哨兵碰撞箱
- Geckolib 兼容性(基于 GeoBone 的哨兵碰撞箱)
This is a small lib made out of necessity that's only purpose is to make mob combat a bit more engaging. The typical way Minecraft handles melee combat is checking whether an entity is within a certain distance of another entity and dealing damage, which is kinda boring. Then of course you can apply a hitbox to every attack, but writing the code for the hitbox repeatedly becomes redundant and messy. Not to mention, they don't natively render and MC restricts hitboxes to AABBs (Axis Aligned Bounding Box).
With SentinelLib, developers can now easily define hitboxes, not just AABBs, but OBBs (Oriented Bounding Box) as well that will rotate with entity movement, apply custom functionality with ease, and can actually see their entities attack hitboxes.
Why fight a boring zombie, when you can fight a Sentinel.
NOTE
This mod is still very much in the beta stage, some functionalities to be implemented soon:
-
Dynamic Rotational Sentinel Boxes
-
Dynamic Scaling Sentinel Boxes
-
Geckolib compatibility (GeoBone based Sentinel Boxes)
评论 0
登录后参与评分
还没有评论,来抢沙发吧