Никита Лапочкин

Write me a mod that performs auto‑attack on entities and players, automatically shoots with a crossbow or bow when the arrow’s trajectory is correct.

Kodari AI
KodariOct 2 at 6:54 pm 1
AutoCombatAim
Automatically attacks nearby entities and players when in range, and automatically fires bows or crossbows when the player's aim aligns with a target. Includes configurable attack range, weapon switching, and aim-assist sensitivity. Works in both survival and creative modes, with toggleable activation via keybind or command.
  1. Build a client-only Fabric mod with a toggle key and nearest-target selection.

  2. Aim and melee-attack living entities; charge bows/crossbows and fire only when a simulated arrow path reaches the target without a block obstruction.

  3. Add the 1.21.11 Loom project and mod metadata.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
helpinpvp
Code
1 2