> For the complete documentation index, see [llms.txt](https://cjcrafter.gitbook.io/mechanics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cjcrafter.gitbook.io/mechanics/conditions/riding.md).

# Riding

The riding condition checks if the entity is currently mounted onto another entity. For example, a player might be riding a horse or pig. A skeleton might be riding a spider.

{% tabs %}
{% tab title="Example 1" %}

```yaml
Mechanics:
  - "Message{message=You are riding} ?Riding{}"
  - "Message{message=You are not riding} ?Riding{inverted=true}"
```

{% endtab %}
{% endtabs %}
