> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/functions/mc.setattackcooldown.md).

# mc.setAttackCooldown

> **setAttackCooldown**(`ticks`): `void`

Sets the ticks left until holding attack may act again.

### Parameters

#### ticks

`number`

The delay in ticks.

### Returns

`void`
