# Max Iterations

{% hint style="danger" %}

### BE CAREFUL. THIS CAN HARM YOUR WORLD IF ABUSED.

**Max Iterations are a safety guardrail** placed to stop the server/game from crashing or freezing in the event of infinite loops. Know that increasing the limit too high could harm your world in irreversible ways.

We are not responsible for any damage.

#### Usefull Safety Practices

1. This command can only be executed by **OP level 4 or higher**. Only give owner or level 4 permissions to people you trust;
2. Make sure not to create infinite loops in your scripts;
3. Frequently back up worlds, this is not only for this mod, but is an useful practice to maintain.

#### Common Use Cases For This Command

1. To limit iteration limit on a big server and prevent lag or abuses.
2. To increase limit for projects with bigger loops.
   {% endhint %}

By default, the max iteration limit is set at **10,000**. To increase it or decrease it, use the command:

{% code lineNumbers="true" %}

```
/controlblocks maxIterations <number>
```

{% endcode %}

The minimum allowed is 0, and the maximum is 50,000. Higher than 50,000 can crash and damage your world.


---

# 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://control-blocks-mod.gitbook.io/control-blocks-mod-docs/commands/max-iterations.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.
