Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Eventslib Wiki › Guides › Access Mob Data During Active Effect Ticks

Access Mob Data During Active Effect Ticks

Effect Tick Data Access

EventsLib Mod allows dependent mods to read and interact with mob data while a potion effect is actively running. This enables real-time monitoring and dynamic behavior changes based on the affected entity.

What Data Can Be Accessed

During each tick an effect is active, mods can:

  • Identify which mob or player has the effect
  • Read the mob's current health, position, and attributes
  • Check for other active effects on the same target
  • Modify mob behavior or apply secondary effects
  • Calculate damage, healing, or stat changes based on current conditions

Practical Applications

Dependent mods use this to create sophisticated effect interactions. For instance, a mod might make Poison damage scale with the target's current health, or make Speed effects grant jump boost only when the player is moving. EventsLib provides the framework for these mods to safely access mob instances and effect data each tick without performance overhead.

You experience this passively—just apply effects normally, and dependent mods automatically leverage this data system to create more dynamic and contextual potion behavior.