ModsJava
BaguetteLib Mod (26.2, 1.20.1) – Keep Your Gear After Death
BaguetteLib Mod simplifies how other mods handle events in Minecraft. It gives developers better tools to track player deaths and inventory changes…
⬇ DownloadOpen in MCModsHubGet it on Google Play →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
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.
Explore more