🔔Notify
You don't want to create mixins for each project over and over again for the same events you could just use in the good old paper days. This is why we created this spectacular library/mod, where we just have to add the events once and can use them in every other project!
For this we use alert, a blazing fast event listening utility. See alert's documentation on how to listen to events.
How to use
Add the following to your mod's build.gradle.kts
file:
repositories {
mavenCentral()
}
dependencies {
// ...
modImplementation("de.hglabor:notify:1.1.3")
}
Then put the built jar file of notify into your mods folder. You should be able to subscribe to the events like this:
// (On the server)
subscribeToEvent<PlayerJoinEvent> {
logger.info("Player ${it.player.name.string} joined")
}
Events currently implemented
Subscribing to events on the client is not tested! (server/common events should work on the server)
Common
PlayerAttackEntityEvent
PlayerHungerChangeEvent
PlayerItemPickupEvent
PlayerPlaceBlockEvent
PlayerSlotClickEvent
Server
PlayerBreakBlockEvent
PlayerDeathEvent
PlayerInteractItemEvent
PlayerInteractBlockEvent
PlayerItemDropEvent
: called when a player attempts to drop an itemPlayerItemDroppedEvent
: called after an item was droppedPrePlayerJoinEvent
: called before a player joins the serverPlayerJoinEvent
: called when a player joins the server. Allows modification of the join messagePostPlayerJoinEvent
: called after a player joins the serverPlayerRemoveEvent
: called after a player got removed from the player listPlayerQuitEvent
: called when a player quits the server. Allows modification of the quit messagePlayerSwapHandItemsEvent
PlayerTickEvent
PlayerSetSettingsEvent
: called e.g. when player changes client languageEntitySpawnEvent
ProjectileHitEvent
: called when a projectile hits another entity
Client
soonâ„¢For more, read our github readme
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Compatibility
Minecraft: Java Edition
1.20–1.20.4
1.19.x
Platforms
Fabric
Supported environments
Creators
Details
Licensed MIT
Published last year
Updated 9 months ago