Set Up Custom Blade Mechanics for Your Weapon Mod
Understanding the Slashblade System
LegendRelicLib provides a foundation for creating custom blade attacks without building the system from scratch. If you're developing a mod that adds weapons with special slash effects, this library handles the core mechanics so you can focus on unique behaviors.
Implementation Steps
1. Reference the slashblade mechanics in your mod's code by importing LegendRelicLib as a dependency
2. Define your blade properties using the library's blade configuration system—specify attack speed, damage scaling, and visual effects
3. Attach custom actions to your blade using the provided action handlers for slash events
4. Test your blade in-game by equipping it and performing attacks to verify the mechanics respond correctly
Key Advantage
Instead of writing delay systems and action triggers yourself, you inherit pre-built timing controls. This means your custom blade attacks will execute on schedule without desync or missed triggers. The library handles the background synchronization between server and client automatically.