Download AcornLib — Minecraft Mods — MetaMods
AcornLib

AcornLib

Active

Downloads

1

Last update

3 months ago

Versions

1.21.1 — 1.21.8
Client and server
Fabric
Weapons and armor
Libraries
Utils

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)

Baby on head :3

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.

Project members
AcoYT

AcoYT

Developer

Mythorical

Mythorical

Developer

Created: 27 Dec 2024

ID: 68578