# Type

### CHAT

Example for sending a message in the chat with an unlimited number of lines.

<figure><img src="/files/GgVXqTSszijYN9XuhKRl" alt=""><figcaption></figcaption></figure>

```yaml
# Type of announcement. (CHAT, ACTIONBAR, BOSSBAR, TITLE)
type: CHAT
# Content of announcement.
lines:
  - "&6Hello my name is %player_name%"
```

### ACTIONBAR

Example for sending an action bar message above the inventory.

<figure><img src="/files/YOWQCRyFtDxe2n4jfv3e" alt=""><figcaption></figcaption></figure>

```yaml
# Type of announcement. (CHAT, ACTIONBAR, BOSSBAR, TITLE)
type: ACTIONBAR
# Content of announcement.
lines:
  - "&6Hello my name is %player_name%"
```

### BOSSBAR

Example for creating a boss bar announcement.

<figure><img src="/files/rFyCUsCyCwE0q1dL89XL" alt=""><figcaption></figcaption></figure>

```yaml
# Type of announcement. (CHAT, ACTIONBAR, BOSSBAR, TITLE)
type: BOSSBAR
bossbar:
  # Color of bossbar. (BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW)
  color: RED
  # Style of bossbar. (PROGRESS, NOTCHED_6, NOTCHED_10, NOTCHED_12, NOTCHED_20)
  style: PROGRESS
  # Progress of bossbar. (0.0 - 1.0)
  progress: 1.0
  # Time of bossbar. (1 - 60 seconds)
  time: 5
# Content of announcement.
lines:
  - "&6Hello my name is %player_name%"
```

### TITLE

Example for sending a title with an optional subtitle.

<figure><img src="/files/hlsEqVAIN4sMBuna1Sbr" alt=""><figcaption></figcaption></figure>

```yaml
# Type of announcement. (CHAT, ACTIONBAR, BOSSBAR, TITLE)
type: TITLE
# Content of announcement.
lines:
  - "&6Hello my name is %player_name%"
  - "Subtitle"
```


---

# 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://docs.zachfr.com/infinite-series/infiniteannouncements/type.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.
