Simplified Potion Effects
Managing status effects across different mods can be complex, but ParallaxLib simplifies this by using plain text names to handle potion effects. Rather than relying on complicated code calls, the library allows companion projects to trigger buffs and debuffs easily.
How Effects Are Applied
When a companion mod triggers a potion effect, ParallaxLib manages the application process. This applies to both players and mobs. The library handles the following details:
- Identifying the effect using simple text names (like speed or fire resistance).
- Applying the effect with specific timer ticks.
- Adjusting the strength level of the effect.
- Configuring whether visible particles appear around the entity.
Furthermore, the library is capable of applying batches of multiple potion effects in a single action, which is useful for complex gameplay events. Because this system is centralized within ParallaxLib, it ensures that these effects work consistently across all your installed mods. If you are experiencing issues where potion effects are not applying or are causing visual glitches, it is likely that the library is either missing or conflicting with another mod, so check your mod folder to ensure ParallaxLib is present and properly loaded.