BaguetteLib Mod simplifies how other mods handle events in Minecraft. It gives developers better tools to track player deaths and inventory changes, making it easier to create new gameplay features.
![]()
Features:
Death Events
- Detects when a player or mob is about to die.
- Allows you to cancel a death before it happens.
- Lets you run custom actions after a mob dies.
- Works for all mobs, including players.
Inventory Events
- Tracks changes in the hotbar and when armor is swapped.
- Notifies you when items are picked up from the ground.
- Gives access to both the old and new item during a change.
- Includes special handling for items in the main hand and offhand.
How to Use:
Add the library to your mod and register the event you want to listen for.
Example:
@SubscribeEvent method listening for a player death event.
- Use the event
PlayerDeathEvent.Preto run code before a player dies. - This allows you to modify or cancel the death if needed.
Example Method Name: onPlayerPreDeath(PlayerDeathEvent.Pre event)
BaguetteLib Mod Download Links
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.20.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on the file's original source — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
BaguetteLib Mod (26.2, 1.20.1) – Keep Your Gear After Death is a free Minecraft Java mod. Compatible with Minecraft 1.20.1. Download it and open it directly in the game.