Skip to content

combat

Combat Events

Enter Combat

  • Description: Entered combat
  • Usage:
    Python
    @client.event
    async def on_enter_combat() -> None:
        ...
    

End Combat

  • Description: Combat ended
  • Parameters:
  • entity: Entity - Opponent entity
  • duration: int - Combat duration (ticks)
  • Usage:
    Python
    @client.event
    async def on_end_combat(entity: Entity, duration: int) -> None:
        ...