What are you searching for?

BaguetteLib

BaguetteLib

Ever tried to make a mod that needs proper death handling or inventory tracking? Yeah, NeoForge events suck for that.

download 446.9K Downloads · favorite 10 Followers · Updated 1 month ago
Forge Neoforge 1.20.1 1.20.4 1.21.1

Versions

inventory_2
BaguetteLib 1.1.5

1.1.5 · 1 month ago · 64.73 KB

Release download
Neoforge 1.21.1
inventory_2
BaguetteLib 1.1.5

1.1.5 · 1 month ago · 31.12 KB

Release download
Forge 1.20.1
inventory_2
baguettelib-1.21.1-NeoForge-1.1.3.jar

1.1.3 · 2 months ago · 63.42 KB

Release download
Neoforge 1.21.1
inventory_2
baguettelib-1.21.1-NeoForge-1.1.2.jar

1.1.2 · 4 months ago · 63.54 KB

Release download
Neoforge 1.21.1
inventory_2
baguettelib-1.20.1-Forge-1.1.1.jar

1.1.1 · 4 months ago · 29.60 KB

Release download
Forge 1.20.1

About

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. https://www.bisecthosting.com/project8gbderam

Bisect

open_in_new View on Modrinth
Compatibility
Client: Unsupported Server: Required
gavel MIT

Conversation

What are your thoughts?

lock Cookie consent

SkinMC uses cookies to provide functionality and features.