Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
BaguetteLib

BaguetteLib

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

9,252
1
AboutChangelogVersions

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

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.1
1.20.4
1.20.1

Platforms

Forge
NeoForge

Supported environments

Server-side

Creators

Leclowndu93150
Leclowndu93150 Member

Details

Licensed MIT
Published last week
Updated 3 weeks ago

Modrinth is open source.

main@9fd0f68

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.