# Combat System

Foundation Craft provides a fair and competitive player-versus-player (aka PvP) gameplay experience for players thanks to our simple and intuitive combat system. Players are shown a combat warning when teleporting to dangerous locations in The Wilderness where PvP is allowed.

<figure><img src="/files/jsjWtF1tnsHGkE7goIzz" alt=""><figcaption><p>Combat warning shown when teleporting to other players in The Wilderness</p></figcaption></figure>

Players are automatically protected with 15 seconds of invulnerability after teleporting to any kind of dangerous location on the server, during which they are able to teleport away safely if they choose.

<figure><img src="/files/qfdvG0gBnOAlnxwQMfNZ" alt=""><figcaption><p>Players have 15 seconds of invulnerability after accepting teleport requests during which they cannot take damage</p></figcaption></figure>

Players remain "engaged in combat" for 15 seconds after attacking other players or getting attacked by other players. Players are not allowed to teleport away or log out while engaged in combat. This is necessary to prevent players from leaving when it becomes clear that they are going to die.

<figure><img src="/files/Iz2F1FGTG50wSsT24a40" alt=""><figcaption><p>Players remain "engaged in combat" for 15 seconds after attacking other players or getting attacked by other players</p></figcaption></figure>

After 15 seconds of surviving without taking damage from players or dealing damage to players in PvP the player will be notified that they are no longer engaged in combat at which point they are able to safely teleport away or log out of the server if they choose.

<figure><img src="/files/TPFR6RIMaJ9poF39E8yh" alt=""><figcaption><p>Players are not allowed to teleport away and will be killed for logging out while engaged in combat</p></figcaption></figure>

{% hint style="info" %}
These various states of combat are called combat modes and they are used to help inform players about what rules are actively being enforced and when.
{% endhint %}


---

# 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://about.foundationcraft.com/additional-features/combat-system.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.
