BaguetteLib
有没有试过制作需要正确处理死亡事件或物品栏追踪的模组?是的,NeoForge 的事件机制在这方面表现不佳。欢迎加入我的 Discord 获取支持。
功能概览
死亡事件
- 在死亡发生前捕获事件(如果需要可以取消)
- 在角色死亡后执行操作
- 适用于所有实体——玩家、生物等均可
物品栏事件
- 快捷栏变化、护甲更换、拾取物品
- 每次变化时获取旧物品和新物品的信息
- 针对主手和副手的特殊处理
使用方法
将其添加到你的模组中,注册一些事件:
@SubscribeEvent
public static void onPlayerPreDeath(PlayerDeathEvent.Pre event) {
// 在这里做你想做的事
}就这么简单。无需 Mixin,无需额外配置。
由一位厌倦了应对 NeoForge 事件限制的开发者制作。
如果你想支持我以及我的模组开发,我推荐尝试 BisectHosting。使用代码 "project8gbderam",新客户首月游戏服务器可享受 25% 折扣。他们提供 24/7 全天候支持和极速响应时间,确保你得到可靠的服务,并为满足你的所有游戏需求提供卓越帮助。

BaguetteLib
Ever tried to make a mod that needs proper death handling or inventory tracking? Yeah, NeoForge events suck for that. Support in my Discord
What's in it
Death Events
- Catch deaths before they happen (cancel them if you want)
- Do stuff after someone dies
- Works on everything - players, mobs, whatever
Inventory Events
- Hotbar changes, armor swaps, picking stuff up
- Get the old item and new item for each change
- Special handling for hands and offhand
Usage
Add it to your mod, register some events:
@SubscribeEvent
public static void onPlayerPreDeath(PlayerDeathEvent.Pre event) {
// Do whatever you want here
}That's it. No mixins, no extra crap.
Made by a developer who got tired of working around NeoForge event limitations.
If you'd like to support me and the development of my mods, I recommend trying out BisectHosting. Use code "project8gbderam" to get 25% off your first month of a gaming server for new customers. They offer 24/7 support and lightning-fast response times, ensuring you're in great hands and providing exceptional assistance for all your gaming needs.

下载 BaguetteLib
下载 BaguetteLib
下载 BaguetteLib
下载 BaguetteLib
下载 BaguetteLib
下载 BaguetteLib
下载 BaguetteLib
下载 BaguetteLib
下载 BaguetteLib
下载 BaguetteLib
为 26.3 版本添加了 Curios 支持
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧