AcornLib
Developer Features
Item Kill Effects Customization
Added support for custom attack particles and sounds, as well as special effects when killing creatures - both when successfully eliminating the target and during regular attacks.
Additional Item Components
- Two-handed weapon component (intuitive functionality)
- Crossbow holding components (item points in the direction of player's view)
- Hand display when holding an item
- Prevent item dropping component
- Item skin component (string parameter)
- Custom hit particles component (example below)
Extended Commands
Added velocity command for controlling object speed with support for exact and directional values.
Support System
Ability to create mods only for supporting authors, as well as configuring special privileges for subscribers and friends in other mods using this library.
As a bonus - several custom plush toys with my image and friends' images, available for free :]
(This is a joke, I tried to make something different from Ratatouille, Rat, please don't sue me)

Usage Examples
Item Give Command with Custom Particles
give @s acornlib:gnarp_plush[acornlib:hit_particle={particle:"acornlib:green_sweep"}]
Important: Must use a valid identifier for sweep particles, otherwise an invalid packet will be sent, which may lead to disconnection from the game or even server crash (not verified).
Integration Instructions
Add to repositories section:
repositories {
// Modrinth
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
// Mod Menu
maven {
name = "Terraformers"
url = "https://maven.terraformersmc.com/"
}
}
Add to dependencies section:
dependencies {
// AcornLib
modImplementation "maven.modrinth:acorn-lib:${project.acornlib_version}"
// Config
modApi ("com.terraformersmc:modmenu:${project.modmenu_version}")
modImplementation ("maven.modrinth:midnightlib:${project.midnightlib_version}+1.21.4-fabric")
}
Credits
The acorn texture was created by user ShinyEmerald in a resource pack available via link.