Compatibility
Minecraft: Java Edition
1.21.4–1.21.5
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Details
Acorn Library
A library for AcoYT's mods
THANKS FOR 250 DOWNLOADS!!!!
Features
Item Attack Customization [Developers Only]
- Support for custom attacking particles & sounds
- Kill effect items
Extra Item Components
- Two-Handed Component (Pretty Self-Explanatory)
- Crossbow Holding Components (Makes item be pointed at the holder's look direction)
- Show Hand (Shows the hand when holding an item)
- Undroppable Component
More Commands
- Velocity command (exact & directional)
And More (Eventually)
The mod will be updated through time, until then, enjoy :p
Oh yeah, and to make this even more like a Ratatouille ripoff, have a (few) custom plushie of me, on the house :]
(THIS IS A JOKE, I TRIED TO DIFFERENTIATE FROM RATATOULIE, RAT PLEASE DON'T SUE ME)
Ignore the dude on the right, that was a glitch
Example on how to give an item a component
In order to give an item a component (Two-Handed example), you need to set the item's default components, which can be done by putting this,
DefaultItemComponentEvents.MODIFY.register(ctx -> ctx.modify(
Predicate.isEqual(Items.STONE),
(builder, item) -> builder.add(AcornComponents.TWO_HANDED, true)
));
into your initialization method, and replacing stone with your item.
Credits
The Acorn Texture is made by ShinyEmerald, in a resource pack listed here.