BaguetteLib
Developing mods that require proper death handling or inventory tracking? NeoForge events don't always handle such tasks well. Get support in our Discord.
Main Features
Death Events
- Intercept death before it occurs (with cancellation option)
- Perform actions after character death
- Works with all entities: players, mobs, and others
Inventory Events
- Track changes in hotkeys, armor swaps, item pickups
- Get information about old and new items for each change
- Special handling for main and offhand
Usage
Add the library to your project and register events:
@SubscribeEvent
public static void onPlayerPreDeath(PlayerDeathEvent.Pre event) {
// Perform required actions here
}
It's that simple. No additional tools or complex configurations needed.
Created by a developer tired of NeoForge event limitations.