modsmith Log in Log in Рус / Eng

BaguetteLib

baguettelib · 3460905 downloads · MIT

client: unsupported · server: required (declared by the mod author)

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

Description

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

Versions (43)

VersionMinecraftLoadersFile
2.0.8 26.3 neoforge download
2.0.8 26.3 fabric download
2.0.7 26.3 neoforge download
2.0.7 26.3 fabric download
2.0.7 26.2 fabric download
2.0.7 26.1.2 fabric download
2.0.7 26.2 neoforge download
2.0.7 26.1.2 neoforge download
2.0.7 1.21.1 neoforge download
2.0.7 1.20.1 forge download
2.0.6 1.21.1 neoforge download
2.0.5 1.21.11 neoforge download
2.0.5 1.21.11 fabric download
2.0.5 1.21.1 neoforge download
2.0.5 1.21.1 fabric download
2.0.5 26.1.2 fabric download
2.0.5 26.2 fabric download
2.0.5 26.2 neoforge download
2.0.5 26.1.2 neoforge download
2.0.5 1.20.1 forge download
2.0.5 1.20.1 fabric download
2.0.4 26.2 fabric download
2.0.4 26.2 neoforge download
2.0.4 26.1.2 neoforge download
2.0.4 26.1.2 fabric download
2.0.3 26.1.2 neoforge download
2.0.3 26.1.2 fabric download
2.0.3 1.21.1 neoforge download
2.0.2 26.1 fabric download
2.0.2 26.1 neoforge download
2.0.0 26.1 fabric download
2.0.0 26.1 neoforge download
1.1.6 1.20.1 forge download
1.1.6 1.21.1 neoforge download
1.1.5 1.21.1 neoforge download
1.1.5 1.20.1 forge download
1.1.3 1.21.1 neoforge download
1.1.2 1.21.1 neoforge download
1.1.1 1.20.1 forge download
1.1.1 1.21.1 neoforge download
1.1.0 1.20.1 forge download
1.0.0 1.21.1 neoforge download
1.0.0 1.20.1, 1.20.4 forge download

Modrinth page →