Reduce Code Duplication by Using LegendRelicLib as a Dependency
Why Use a Library Mod
LegendRelicLib exists to prevent multiple mods from each building their own blade mechanics, delay systems, and tag tools. By depending on this library, your mod stays smaller and more maintainable.
Integration Workflow
1. Add LegendRelicLib as a dependency in your mod's build configuration
2. Import the library's classes for slashblade actions, delay controllers, and tag helpers
3. Build your unique features on top of the library's foundation—custom abilities, special effects, or new weapon types
4. Test thoroughly to ensure your features interact correctly with the library's systems
Benefits
Shared code means fewer bugs, faster development, and easier updates. When the library fixes a timing issue or improves performance, all dependent mods benefit automatically. You avoid reinventing the wheel and can ship features faster. This also makes your mod lighter on players' systems since the library code loads once and serves multiple mods.