# femboypig/make-my-crystals-faster architecture

> Architecture diagram of the GitHub repository femboypig/make-my-crystals-faster, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/femboypig/make-my-crystals-faster
- Repository: https://github.com/femboypig/make-my-crystals-faster

## Overview

Make My Crystals Faster is a Fabric client mod that speeds up End Crystal attacks and prevents crystal use from being interrupted by mining. The workflow is driven by Minecraft client input and tick hooks: the mod buffers early clicks, repeats attacks while aiming at a live crystal, and clears attack delay after an attack. The client initializer itself is empty; behavior resides in mixins. The source shows local attack handling but does not establish server-side effects or the mixin registration path, so those links are omitted.

Main entry points: [`src/main/java/net/femboypig/mmcf/mixin/MinecraftMixin.java`](https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MinecraftMixin.java) (Input and tick hooks), [`src/main/java/net/femboypig/mmcf/mixin/MinecraftAccessor.java`](https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MinecraftAccessor.java) (Delay accessor), [`src/main/java/net/femboypig/mmcf/mixin/MultiPlayerGameModeMixin.java`](https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MultiPlayerGameModeMixin.java) (Crystal attack hook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client_hooks["Client hooks"]
  node_client_initializer["Client initializer"]
  node_input_tick_hooks["Input and tick hooks"]
  node_attack_hook["Crystal attack hook"]
end

subgraph group_attack_support["Attack support"]
  node_minecraft_accessor["Delay accessor"]
end

node_player(("Player"))
node_minecraft_client["Minecraft client"]

node_player -->|"provides input"| node_minecraft_client
node_input_tick_hooks -->|"hooks input and ticks"| node_minecraft_client
node_input_tick_hooks -->|"starts attacks"| node_minecraft_client
node_attack_hook -->|"resets click delay"| node_minecraft_accessor
node_minecraft_accessor -->|"sets delay"| node_minecraft_client

click node_client_initializer "https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/client/MakeMyCrystalsFasterClient.java"
click node_input_tick_hooks "https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MinecraftMixin.java"
click node_attack_hook "https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MultiPlayerGameModeMixin.java"
click node_minecraft_accessor "https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MinecraftAccessor.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_client_initializer,node_input_tick_hooks,node_attack_hook,node_minecraft_client toneBlue
class node_minecraft_accessor toneAmber
class node_player toneIndigo
```

## Components

### Client hooks

- [Client initializer](https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/client/MakeMyCrystalsFasterClient.java): `src/main/java/net/femboypig/mmcf/client/MakeMyCrystalsFasterClient.java`
- [Input and tick hooks](https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MinecraftMixin.java): `src/main/java/net/femboypig/mmcf/mixin/MinecraftMixin.java`
- [Crystal attack hook](https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MultiPlayerGameModeMixin.java): `src/main/java/net/femboypig/mmcf/mixin/MultiPlayerGameModeMixin.java`

### Attack support

- [Delay accessor](https://github.com/femboypig/make-my-crystals-faster/blob/main/src/main/java/net/femboypig/mmcf/mixin/MinecraftAccessor.java): `src/main/java/net/femboypig/mmcf/mixin/MinecraftAccessor.java`

### Other components

- **Player**
- **Minecraft client**

## Connections

- Player → Minecraft client: provides input
- Input and tick hooks → Minecraft client: hooks input and ticks (evidence: `src/main/java/net/femboypig/mmcf/mixin/MinecraftMixin.java`)
- Input and tick hooks → Minecraft client: starts attacks (evidence: `src/main/java/net/femboypig/mmcf/mixin/MinecraftMixin.java`)
- Crystal attack hook → Delay accessor: resets click delay (evidence: `src/main/java/net/femboypig/mmcf/mixin/MultiPlayerGameModeMixin.java`)
- Delay accessor → Minecraft client: sets delay (evidence: `src/main/java/net/femboypig/mmcf/mixin/MinecraftAccessor.java`)
