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

# AntiAFK

It can move, look around, jump, change the held item, and click at small random intervals.

## Move and look

`AFK` chooses the movement routine:

* `Disabled` turns movement off.
* `Shuffle`, `Forward`, `Backward`, and `Wander` select the corresponding movement pattern.

`Randomize delta` changes how far each movement step goes. `Randomize pitch` changes the vertical part of the look rotation. Turn on `Spin` if you also want random horizontal look changes.

## Add small actions

`Jump` adds random jumps to the routine. If you only want jumps when your player is pressed against a wall, enable `Jump only when collided`.

`Swap item` changes the selected hotbar item at random intervals. `Random clicks` sends random left-click actions.

## Choose the timing

`Minimum delay ticks` and `Maximum delay ticks` set the shortest and longest wait between actions. AntiAFK chooses a delay between those values, so matching them produces a fixed interval while separating them makes the routine less regular.
