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

# Patterns

### `#aim`

<details>

<summary>#aim Pattern</summary>

**`#aim` or `#aim[True|False]`**

Takes the block the player is aiming at as the Pattern.

Optionally takes a True/False setting to make your aim sensitive to hitboxes.

* False will treat all blocks as full blocks. E.g. you cannot `#aim` at the block behind a button.
* True will respect the hitboxes of blocks you are looking at. E.g. you can `#aim` at the block behind a slab.

<img src="/files/uNiJadPCKg4Vm2A9nrAC" alt="" data-size="original">

</details>

### `#eznoisepattern`

<details>

<summary>#eznoisepattern Pattern</summary>

**`#eznoisepattern[palette][noisePreset][<scale>][<seed>]`**\
**Alias: `#eznp`**

Uses a noise preset values to return palette blocks.\
**Which also has the following in-built presets:**

* **`#ridged[palette][<scale>][<seed>]`**
* **`#smoothcells[palette][<scale>][<seed>]`**
* **`#voronoiedge[palette][<scale>][<seed>]`**

</details>

### `#palette`

<details>

<summary>#palette Pattern</summary>

**`#palette[palette]`**

Takes the given palette and returns a list of palette blocks. Can be used as a random block pattern.

e.g. `//set #palette[##ice]` is the same as `//set [blue_ice,packed_ice,ice]`

</details>

### `#vectorgradient`

<details>

<summary>#radialgradient Pattern</summary>

**`#radialgradientpattern[palette][distance][<distanceMode>][<offset>][<noisePreset>][<noiseScale>][<noiseSeed>]`**\
**Alias: `#rgradientp`**

Sets palette blocks based on distance from the player. With the block chosen based on distance plus a blending factor.\
Compatible with noise presets.

</details>

### `#selection`

<details>

<summary>#selection Pattern</summary>

**`#selection[selection][<offset>]`**

Shorthand: **`#sel[selection][<offset>]`**

Sets blocks using the blocks currently in world at the location of the saved selection.\
Acts as if the selection were tiled/stacked.

Optional `<offset>` variable to offset the pattern by a given vector.

</details>

### `#vectorgradientpattern`

<details>

<summary>#vectorgradientpattern Pattern</summary>

**`#vectorgradientpattern[palette][vector][distance][<noisePreset>][<noiseScale>][<noiseSeed>]`**\
**Alias: `#vgradientp`**

Sets palette blocks along a vector with a given distance length with the block chosen based on distance plus a blending factor. Can also use noise presets.

</details>


---

# 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://ezedits.gitbook.io/ezedits/masks-and-patterns/patterns.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.
