> 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/on-ground.md).

# On Ground

The on ground condition checks if the entity is currently standing on the ground. We can also check which block they are standing on.

| Argument | Description                                       | Default Value                              |
| -------- | ------------------------------------------------- | ------------------------------------------ |
| `blocks` | The list of blocks the entity can be standing on. | <mark style="color:red;">\*</mark>Required |

{% hint style="info" %}
Using the wildcard (`$`), you can select many blocks at once. For example, `$GLASS` selects all glass blocks and panes. Be careful though, since `$CAR` will select call carpets, and `CARVED_PUMPKIN` and `CARROT`.
{% endhint %}

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

```yaml
Mechanics:
  - "Potion{potion=LEVITATION} @World{} ?OnGround{}"
```

This example will levitate all entities who are standing on the ground in the world.
{% endtab %}

{% tab title="Example 2" %}

```yaml
Mechanics:
  - "Potion{potion=LEVITATION} @World{} ?OnGround{blocks=[$GLASS, ICE]}"
```

This example levitates all entities in the world that are standing on glass or ice.
{% endtab %}
{% endtabs %}


---

# 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:

```
GET https://cjcrafter.gitbook.io/mechanics/conditions/on-ground.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.
