> For the complete documentation index, see [llms.txt](https://about.foundationcraft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://about.foundationcraft.com/additional-features/combat-system.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://about.foundationcraft.com/additional-features/combat-system.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
