> For the complete documentation index, see [llms.txt](https://help.minecraftbot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.minecraftbot.com/macros/macro-introduction/macro-tips.md). Agents can also search and read this documentation through its [MCP server](https://help.minecraftbot.com/~gitbook/mcp).

# Macro Tips

<details>

<summary>How can I make the whole macro loop infinitely?</summary>

You can control the whole macro's looping behaviour by selecting the Settings menu in the macro, and then switching between options in the Loop section:

![](https://517385690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOZmoaIOMDNgZ4pd4r9Ev%2Fuploads%2FBP1yPTgHh5OQSxeEYRpk%2Fchrome_phXGsrr4zc.gif?alt=media\&token=ba7fcc6a-a1e6-481f-a2a1-c8aba9378cc5)

</details>

<details>

<summary>How do I make a <strong>macro's section</strong> repeat it self/loop?</summary>

You can create infinite loops by creating a circle with macro component outputs:

![](https://517385690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOZmoaIOMDNgZ4pd4r9Ev%2Fuploads%2F7fJisjEVIWjVcUEMnkww%2Fchrome_gBIgKYEFDp.gif?alt=media\&token=31382b61-2b09-423f-a128-44907a82e945)

If you do not need an infinite loop, you can use the Repeat component instead, on which you can specify how many times it should go to the "Loop" output, before goint to the "Finished" output:

![Sample macro that will repeat one chat message 3 times, and will send another chat message after it is done repeating previous messages.](https://517385690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOZmoaIOMDNgZ4pd4r9Ev%2Fuploads%2Ftgmlm8zgcIkUi66ynXjO%2Fchrome_bUfVoMeAgZ.gif?alt=media\&token=848064f7-723e-4bac-b38b-3a0e0d00d032)

</details>

<details>

<summary>You can reset macro component output's, by right clicking it, and then clicking "Remove all outgoing connections".</summary>

![](https://517385690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOZmoaIOMDNgZ4pd4r9Ev%2Fuploads%2FrP20z1Wv5PL1P6ftq7EI%2Fchrome_1BLWlUvY9g.gif?alt=media\&token=81719ae7-fce6-4949-88b0-f09d25b509a0)

</details>

<details>

<summary>Hold the Shift key while selecting components, to select multiple components at the same time.</summary>

This will allow you to move, delete, etc. all of the selected components at the same time:![](https://517385690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOZmoaIOMDNgZ4pd4r9Ev%2Fuploads%2FytefgFL8EBq43Cofep13%2Fchrome_f0rYByIGnk.gif?alt=media\&token=7d4b9079-c869-44f7-872c-f0ff7c2c0c42)

</details>

#### Discord

<details>

<summary>How to get a Discord Webhook Url?</summary>

![](https://517385690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOZmoaIOMDNgZ4pd4r9Ev%2Fuploads%2FL2neUiGFrXdAjGVSLAQf%2FUntitled%20video%20-%20Made%20with%20Clipchamp-output.gif?alt=media\&token=3082ac13-4a0b-42eb-8f63-dcd8dacbbc51)

Or read text tutorial <https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks>

</details>

<details>

<summary>How to mention people in Discord Webhooks?</summary>

To mention users, use the following format:\ <mark style="color:blue;"><@user\_id></mark> (e.g.: "Hello <mark style="color:blue;"><@739441278588026891></mark>")\
\
To mention roles, use the following format:\ <mark style="color:blue;"><@\&role\_id></mark> (e.g.: "Group <mark style="color:blue;"><@&1269438860518096916></mark>, please notice this!")

*<mark style="color:orange;">Currently discord webhooks that mention users in embedded fields do not produce ping notifications! This will be updated once notifications are supported fully.</mark>*

</details>

#### Advanced

<details>

<summary>Where do I find the "Plugin Id"/"Macro Id"?</summary>

![](https://517385690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOZmoaIOMDNgZ4pd4r9Ev%2Fuploads%2FO35ym59HddtYdzhJv8H4%2FScreenRecording2024-11-08125335-ezgif.com-video-to-gif-converter.gif?alt=media\&token=08a2b84f-281c-4213-bcfa-371fbf31e439)

You can find the Plugin Id, and Macro Id, by expanding the Plugin/Macro instance, clicking the three dots next to the Resume/Pause button, and clicking the Copy Id button that pops up.\
The Plugin or Macro Id will be copied to your clipboard.

</details>
