Skip to content

broitswave/Triguar

Repository files navigation

TrigAUC — Fabric Mod for Minecraft 1.21.11

Advanced auto-combat system with shield-break combos, mace fall strikes, and a clean glass-morphism ClickGUI bound to Right Shift.


Features

TrigAUC (Auto-Combat)

Automatically attacks when all three conditions are met:

  • Crosshair is aimed at a living entity
  • Target is within the configured range (default 3 blocks)
  • Attack cooldown is 100 % reset (getAttackCooldownProgress == 1.0)

Weapon Cooldowns (1.21.11 attack-speed system)

Weapon Attack Speed Cooldown
Sword 1.6 /s 625 ms
Axe 1.0 /s 1 000 ms
Mace 0.6 /s 1 667 ms
Trident 1.1 /s 909 ms
Pickaxe 1.2 /s 833 ms
Shovel 1.0 /s 1 000 ms
Fist / Hoe 4.0 /s 250 ms

Shield-Break Combo

When the target is blocking with a shield:

  1. Swap hotbar slot → first axe found
  2. Swing axe × 2 (spaced by axe cooldown) — disables shield
  3. Swap back to original slot

Mace Fall Combo (highest priority)

When the player is falling + mace in hotbar + target is blocking:

  1. Swap → axe → 1 hit (breaks shield)
  2. Swap → mace → fall strike (maximum smash damage)
  3. Swap back to original slot

ClickGUI

  • Open / Close: Right Shift
  • Drag panel headers to reposition
  • Click the toggle pill on a module header to enable/disable
  • Click the expand arrow (▴/▾) to show/hide settings
  • Float sliders: click and drag within the slider track
  • Bool settings: click the toggle pill in the settings row

Installation

Requirements

Build from source

# Clone / unzip the project
cd trigauc-1.21.11

# Generate Gradle wrapper (first time only)
gradle wrapper --gradle-version 8.8

# Build the mod JAR
./gradlew build

# Output: build/libs/trigauc-1.0.0.jar

Install

  1. Copy build/libs/trigauc-1.0.0.jar into your .minecraft/mods/ folder.
  2. Make sure Fabric Loader and Fabric API are also installed.
  3. Launch Minecraft 1.21.11 with the Fabric profile.

Project Structure

trigauc-1.21.11/
├── build.gradle
├── gradle.properties
├── settings.gradle
├── gradle/wrapper/gradle-wrapper.properties
└── src/main/
    ├── java/com/trigauc/
    │   ├── TrigAUCMod.java          ← entrypoint, keybind registration
    │   ├── combat/
    │   │   └── TrigAUC.java         ← all combat logic & combo state machine
    │   ├── gui/
    │   │   ├── ClickGUI.java        ← aesthetic glass-morphism screen
    │   │   └── Module.java          ← module + setting data classes
    │   ├── mixin/
    │   │   ├── GameRendererMixin.java ← crosshair HUD indicator
    │   │   └── KeyboardMixin.java    ← reserved for key suppression
    │   └── util/
    │       └── WeaponUtil.java       ← cooldown constants + slot helpers
    └── resources/
        ├── fabric.mod.json
        └── trigauc.mixins.json

Extending

  • Add new modules in ClickGUI.init() with new Module(...).
  • Add FloatSetting / BoolSetting to expose slider/toggle controls.
  • Sync values back to your feature class the same way syncSettings() feeds TrigAUC.

License

MIT — use freely, credit appreciated.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages