#Prevent Roll while Attacking (1.20.1)

4 messages · Page 1 of 1 (latest)

crystal walrus
#

This client-side script enforces "Attack Commitment" by bridging Better Combat and Combat Roll. It prevents players from escaping an active weapon swing.

Features:

  • Blocked Input: Disables the roll input while a weapon swing is in progress.
  • Input Buffering: If you press roll near the end of an attack (last 0.25s), the action is queued and executes the moment the swing finishes. Time window is configurable.
  • Feedback: Plays a sound and status message if you try to roll too early, helping players learn the rhythm of their weapons.

Dependencies: Better Combat, Combat Roll.
Installation: Place in ⁨kubejs/startup_scripts⁩.

lean galleonBOT
#

Paste version of attack_prevent_roll.js from @crystal walrus

crystal walrus
#

Prevent Roll while Attacking (1.20.1)

crystal walrus