Skip to content

Commit 701441d

Browse files
authored
[skipci]chores: Documented the new change in Auto Attack bot
Document AutoAttack cooldown range and RandomMode options
2 parents 6db8c81 + 546345e commit 701441d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

MinecraftClient/Resources/ConfigComments/ConfigComments.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ You need to enable Entity Handling to use this bot
193193
<value>Capped between 1 to 4</value>
194194
</data>
195195
<data name="ChatBot.AutoAttack.Cooldown_Time" xml:space="preserve">
196-
<value>How long to wait between each attack. Set "Custom = false" to let MCC calculate it.</value>
196+
<value>Delay between attacks. Set "Custom = false" to let MCC calculate it. When Custom = true, set Min/Max for the cooldown range. If RandomMode = true, a random value between Min and Max is used for each attack.</value>
197197
</data>
198198
<data name="ChatBot.AutoAttack.Entites_List" xml:space="preserve">
199199
<value>All entity types can be found here: https://mccteam.github.io/r/entity/#L15</value>

docs/guide/chat-bots.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,19 +354,19 @@ redirectFrom:
354354

355355
- **Description:**
356356

357-
How long to wait between each attack in seconds.
357+
Controls the delay between attacks. By default, MCC calculates this based on server TPS. Set `Custom` to `true` to specify your own values:
358358

359-
To enable it, set `Custom` (boolean) to `true` and change `value` (double) to your preferred value (eg. `1.5`).
359+
- `Min` — minimum cooldown in seconds
360+
- `Max` — maximum cooldown in seconds
361+
- `RandomMode` — if enabled, picks a random cooldown between `Min` and `Max` for each attack
360362

361-
By default, this is disabled and MCC calculates it based on the server TPS.
362-
363-
- **Format:** `Cooldown_Time = { Custom = <is enabled (true|false)>, value = <seconds (double)> }`
363+
- **Format:** `Cooldown_Time = { Custom = <true|false>, RandomMode = <true|false>, Min = <seconds>, Max = <seconds> }`
364364

365365
- **Type:** `inline table`
366366

367-
- **Example:** `Cooldown_Time = { Custom = true, value = 1.5 }`
367+
- **Example:** `Cooldown_Time = { Custom = true, RandomMode = true, Min = 1.0, Max = 2.0 }`
368368

369-
- **Default:** `{ Custom = false, value = 1.0 }`
369+
- **Default:** `{ Custom = false, RandomMode = false, Min = 1.5, Max = 2.5 }`
370370

371371
#### `Interaction`
372372

0 commit comments

Comments
 (0)