# Kill streak

A killstreak occurs when a player kills a certain number of players or zombies in a row without dying and executes specific actions. Kill streaks gives players extra points and broadcast messages.

## Features

* Option to control decay time when to reset streaks count after x seconds defined
* Option to reset streak count after each wave
* Option to execute specific actions when the decay time has expired
* Option to control whether the kill streak should trigger every x kills defined
* Create as many streaks as you wish

### List of actions

* `givepoints` - Gives x amount of extra points
* `actionbar` - Sends an [actionbar](https://minecraft.wiki/w/Action_bar) message
* `broadcast` - Sends a broadcast message text to chat
* `message` - Sends a message text to text

## Configuration

This is an example of using kill streaks. You can modify, create and execute as many actions as you wish.

```yml
kill-streaks:
  list:
    '20':
      repeatable: false
      execute:
      - givepoints:3
      - actionbar:<gold>+3 points
    '3':
      execute:
      - actionbar:<green>You've reached<red> %current-kill-streak%<green> kill streaks
      - givepoints:1
      - message:<dark_green>+1<gold> points
    '5':
      execute:
      - broadcast:<red><bold>MEGA KILL STREAK
      - givepoints:3
```

```yml
list:
  'numberOfKills':
    repeatable: true # Controls whenever this can be repeatable
    execute:
    - actionname:valueOrText
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mdswork.gitbook.io/ragemode-docs/global-game-guides/kill-streak.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
