G1ax Crystal Optimizer
Reduce client-side delay when placing and breaking end crystals.
G1ax Crystal Optimizer improves Crystal PvP responsiveness by removing unnecessary client-side delays while keeping gameplay smooth, even on higher ping.
Features
- Faster crystal placement
- Faster crystal breaking
- Reduced visual delay
- Client-side crystal prediction
- Adaptive optimization based on latency
- Multiple optimization modes
- Client-side only
- Works on multiplayer servers
Comparison (90 ms/ping)
| Optimized | Vanilla |
|---|---|
![]() |
![]() |
Commands
/g1axoptimizer default
/g1axoptimizer tweak
/g1axoptimizer off
Modes
- default — Full optimization with crystal prediction and adaptive packet scheduling.
- tweak — Vanilla-friendly mode that only removes the client-side placement cooldown.
- off — Restores vanilla behavior.
Requirements
- Fabric Loader
- Fabric API
- Minecraft 1.21.1+
License
CC0
How to Install G1ax Crystal Optimizer (Mod)
G1ax Crystal Optimizer by tech.anupam is verified for Fabric, Legacy-fabric across Minecraft versions 1.0, 1.1, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2 (latest release: 1.0.7, file size: 66 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.0, 1.1, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2) and platform (Fabric, Legacy-fabric).
- Make sure you have the compatible loader or environment installed for Fabric, Legacy-fabric.
- Move the downloaded G1ax Crystal Optimizer file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version### Fixes
- Fixed NoSuchFieldError on Minecraft 26.x by routing action bar and chat output directly through player messaging.
- Added offhand crystal placement support across all versions (Root 1.21.x, mc-1.16.5, mc-26.2).
- Fixed dead and despawning entities blocking crystal placement in space checks.
- Enforced top-face (Direction.UP) obsidian and bedrock placement only in default mode.
- Reset attack cooldown in default mode across all versions to eliminate miss penalties.
- Removed unused template mixins and synchronized logic across all version targets.
### Fixes
- Fixed NoSuchFieldError on Minecraft 26.x by routing action bar and chat output directly through player messaging.
- Added offhand crystal placement support across all versions (Root 1.21.x, mc-1.16.5, mc-26.2).
- Fixed dead and despawning entities blocking crystal placement in space checks.
- Enforced top-face (Direction.UP) obsidian and bedrock placement only in default mode.
- Reset attack cooldown in default mode across all versions to eliminate miss penalties.
- Removed unused template mixins and synchronized logic across all version targets.
### Fixes
- Fixed NoSuchFieldError on Minecraft 26.x by routing action bar and chat output directly through player messaging.
- Added offhand crystal placement support across all versions (Root 1.21.x, mc-1.16.5, mc-26.2).
- Fixed dead and despawning entities blocking crystal placement in space checks.
- Enforced top-face (Direction.UP) obsidian and bedrock placement only in default mode.
- Reset attack cooldown in default mode across all versions to eliminate miss penalties.
- Removed unused template mixins and synchronized logic across all version targets.
## Version 1.0.6
### Bug Fixes
#### Mixin Startup Crash —
JAVA_25 Compatibility Level (mc-26.2)- Fixed a fatal startup crash on the mc-26.2 build:
IllegalArgumentException: The requested compatibility level JAVA_25 could not be set. Level is not supported by the active JRE or ASM version. - Root cause: The mixin config for the mc-26.2 version declared
"compatibilityLevel": "JAVA_25", but the ASM version bundled with Fabric Loader (ASM 9.x) does not recognizeJAVA_25as a valid level, causing Mixin initialization to abort before the game loads. - Fix: Downgraded the mixin compatibility level to
JAVA_21. No Java 25-specific bytecode features are used in mixin classes, soJAVA_21is fully sufficient. The mod still compiles and targets Java 25 bytecode for non-mixin classes. - Reported by <@1017102539486928918> — thank you!
#### Edge Crystal Placement (Both Versions)
- Verified and confirmed the
findAdjacentBaseedge placement fix from v1.0.5 is active in both the root (1.21.11) and mc-26.2 builds. - When your crosshair hits neighboring grass/ground on an edge flick, the optimizer detects adjacent obsidian/bedrock and executes the placement correctly.
### Improvements
#### Better Command Help
/g1axoptimizer(no arguments) now displays a clean, detailed help screen showing:- Mod name and current version (v1.0.6)
- Current active mode
- All available modes with clear descriptions of what each one does
- Discord support link
- Replaces the old single-line usage hint with a properly formatted multi-line help output.
https://github.com/tech-anupam/G1ax-Crystal-Optimizer/compare/v1.0.4...v1.0.6
## Version 1.0.6
### Bug Fixes
#### Mixin Startup Crash —
JAVA_25 Compatibility Level (mc-26.2)- Fixed a fatal startup crash on the mc-26.2 build:
IllegalArgumentException: The requested compatibility level JAVA_25 could not be set. Level is not supported by the active JRE or ASM version. - Root cause: The mixin config for the mc-26.2 version declared
"compatibilityLevel": "JAVA_25", but the ASM version bundled with Fabric Loader (ASM 9.x) does not recognizeJAVA_25as a valid level, causing Mixin initialization to abort before the game loads. - Fix: Downgraded the mixin compatibility level to
JAVA_21. No Java 25-specific bytecode features are used in mixin classes, soJAVA_21is fully sufficient. The mod still compiles and targets Java 25 bytecode for non-mixin classes. - Reported by <@1017102539486928918> — thank you!
#### Edge Crystal Placement (Both Versions)
- Verified and confirmed the
findAdjacentBaseedge placement fix from v1.0.5 is active in both the root (1.21.11) and mc-26.2 builds. - When your crosshair hits neighboring grass/ground on an edge flick, the optimizer detects adjacent obsidian/bedrock and executes the placement correctly.
### Improvements
#### Better Command Help
/g1axoptimizer(no arguments) now displays a clean, detailed help screen showing:- Mod name and current version (v1.0.6)
- Current active mode
- All available modes with clear descriptions of what each one does
- Discord support link
- Replaces the old single-line usage hint with a properly formatted multi-line help output.
https://github.com/tech-anupam/G1ax-Crystal-Optimizer/compare/v1.0.4...v1.0.6
> Edge Crystal Placement: Added adjacent base block search (findAdjacentBase). When your crosshair hits neighboring grass/ground on an edge flick, the optimizer detects adjacent obsidian/bedrock and executes the placement.
> Placement Under Blocks / Ceilings: Removed the strict legacy 2-block air clearance restriction. It now only checks entity hitbox collisions, letting you place crystals smoothly under overhangs, stacked blocks, and roofs.
> Edge Crystal Placement: Added adjacent base block search (findAdjacentBase). When your crosshair hits neighboring grass/ground on an edge flick, the optimizer detects adjacent obsidian/bedrock and executes the placement.
> Placement Under Blocks / Ceilings: Removed the strict legacy 2-block air clearance restriction. It now only checks entity hitbox collisions, letting you place crystals smoothly under overhangs, stacked blocks, and roofs.
### Bug Fixes
#### Crystal Placement Broken on Stacked Obsidian (Default Mode)
- Fixed a bug in **Default Mode** where crystals could not be placed when targeting obsidian that had another obsidian or bedrock block directly on top of it.
- Root cause: The mod's placement check called
isSpaceFreeon the block directly above the raycasted position. When looking at the lower obsidian in a stack, that position was the upper obsidian itself — not air — so the check always failed and no crystal was sent. - Fix: The mod now walks up any stack of valid base blocks (obsidian/bedrock) to find the topmost one before checking space and placing, matching vanilla crystal placement behavior regardless of how many blocks are stacked.
### Improvements
#### Mode Toggle Feedback Moved to Action Bar
/g1axoptimizer default,tweak, andoffno longer dump lines of text into your chat.- Mode changes now show a single clean confirmation above your hotbar (the action bar), which fades automatically — no chat clutter mid-fight.
- ✔ **Default Mode** — Full optimizer enabled
- ✔ **Tweak Mode** — AC-safe cooldown bypass enabled
- ✗ **Optimizer Disabled** — Vanilla crystal behavior
/g1axoptimizerwith no arguments still prints the current mode and usage to chat since that's a deliberate status check.
# ---
### Bug Fixes
#### Crystal Placement Broken on Stacked Obsidian (Default Mode)
- Fixed a bug in **Default Mode** where crystals could not be placed when targeting obsidian that had another obsidian or bedrock block directly on top of it.
- Root cause: The mod's placement check called
isSpaceFreeon the block directly above the raycasted position. When looking at the lower obsidian in a stack, that position was the upper obsidian itself — not air — so the check always failed and no crystal was sent. - Fix: The mod now walks up any stack of valid base blocks (obsidian/bedrock) to find the topmost one before checking space and placing, matching vanilla crystal placement behavior regardless of how many blocks are stacked.
### Improvements
#### Mode Toggle Feedback Moved to Action Bar
/g1axoptimizer default,tweak, andoffno longer dump lines of text into your chat.- Mode changes now show a single clean confirmation above your hotbar (the action bar), which fades automatically — no chat clutter mid-fight.
- ✔ **Default Mode** — Full optimizer enabled
- ✔ **Tweak Mode** — AC-safe cooldown bypass enabled
- ✗ **Optimizer Disabled** — Vanilla crystal behavior
/g1axoptimizerwith no arguments still prints the current mode and usage to chat since that's a deliberate status check.
## 🚀 Version 1.0.4-mc26.2 (Minecraft 26.2 Support)
This release adapts the G1ax Crystal Optimizer mod to support **Minecraft 26.1.2 & 26.2** running on the latest Fabric loader.
### New Features & Optimizations
- Java 25/26 Platform Support**: Compiled with compatibility for Java 25 compiler specs and optimized to execute efficiently on modern JDKs.
- Unobfuscated Mojang Mappings**: Fully transitioned class references and mixin targets to match Mojang's official unobfuscated mapping environments.
### Re-architected Components (Minecraft 26.2 Compatibility)
- Record Packet Adapter**: Adapted the outgoing packet interceptor inside the ClientConnection mixin to query the new flat
recordstructure ofServerboundInteractPacket. Evaluates the presence ofhand() == nullto correctly optimize attacks without using the deprecated/removed innerHandlerinterface ordispatch()method visitor patterns. - Refactored GUI & Chat Accessor**: Migrated in-game command messages to print system feedback using the new
mc.gui.hud.getChat().addClientSystemMessage(Component)path, aligning with the updated HUD class layout in Minecraft 26.2. - Fabric API Networking Update**: Upgraded packet payload registrations in
Main.javato use the modernized Fabric API methods (clientboundPlay(),serverboundPlay(), andclientboundConfiguration()), resolving packet-registry mismatches and preventing client-side launch crashes. - Tooling Compatibility**: Upgraded Lombok annotation processor version to
1.18.46in the Gradle build pipeline, resolving compilation daemonExceptionInInitializerErrorcrashes when building under Java 26.
## 🚀 Version 1.0.4
### New Features
#### Performance Enhancement
- Integrated **PerformanceGuard**: A nanosecond-precision, ping-adaptive rate limiter with independent budgets for placing and breaking to maximize PvP performance.
- Added **OptOutCache**: Multi-server session-persistent opt-out memory that retains server-requested disable states across logins (up to 10 servers).
- Handshake Protocol Integration**:
VersionPacket(C2S): Announces current project version to server.ServerOptOutPacket(S2C): Receives server instructions to disable the optimizer, displaying a clean hoverable notification in game.OptOutAckPacket(C2S): Acknowledges server opt-out commands.
- Added
UpdateChecker.java— a lightweight background update checker powered by the public Modrinth API (no API key required). - On mod load, a daemon thread silently fetches the latest published version from
api.modrinth.com. - The first tick the player enters a world, if a newer version is available, a single beautifully formatted notification is displayed in chat with the download link and custom dev contact.
- Shows **once per session only** — no spam.
- If already on the latest version, completely silent.
#### Command Output Colors Not Rendering
- Fixed all
§color codes in chat messages being silently ignored. - Root cause:
MutableText.formatted()is non-mutating — the returned styled text was discarded, causing every color, bold, and italic code to fall back to plain white. - All command output (
/g1axoptimizer default,tweak,off, status) now renders with correct gold, green, red, yellow, and gray formatting.
- Resolved startup crash with
ClassMetadataNotFoundException: net.minecraft.class_1269$class_9859when running on Minecraft 1.21. - Root cause:
ActionResultwas refactored from an enum to a sealed interface in 1.21.2+. Compiling against 1.21.11 caused references toActionResult.PASSto seek non-existent inner records. - Solution: Introduced
ActionResultResolver.javausing reflection to dynamically retrieveSUCCESS,CONSUME, andPASSconstants across all Minecraft 1.21–1.21.11 builds, resolving any compile-time bytecode dependency on the inner classes.
- Fixed startup log output displaying
Minecraft: unknownand reportingINCOMPATIBILITY: Mixin targets not found: MinecraftClient, EndCrystalItem, ClientConnection. - Root cause:
CompatibilityCheckerlooked up named classes (MinecraftClient, etc.) which are obfuscated to intermediary names (class_310, etc.) in the production environment. Also,SharedConstantsreflection failed due to obfuscated method names. - Solution: Updated
CompatibilityCheckerto query both named and intermediary names for class presence, and integrated Fabric Loader's mo
## 🚀 Version 1.0.3
### New Features & Enhancements
#### [Issue 3] Clean Formatted Live Logging Engine
- Replaced the messy standard log output with a beautifully formatted live logging engine in [Logger.java](file:///d:/G1axProjects/Mods/G1ax-Crystal-Optimizer-main/G1ax-Crystal-Optimizer-main/src/main/java/dev/akatriggered/util/Logger.java).
- Log lines are structured cleanly (e.g.
[HH:mm:ss] [G1ax/LEVEL] Message) and written to a dedicated log file at.minecraft/logs/g1axoptimizer-latest.log. - Implemented automatic log rotation that preserves the last 3 log files (
g1axoptimizer-1.log,g1axoptimizer-2.log,g1axoptimizer-3.log) to keep log directory clean.
#### [Issue 4] Pre-Flight Compatibility Diagnostics
- Added an automatic check engine in [CompatibilityChecker.java](file:///d:/G1axProjects/Mods/G1ax-Crystal-Optimizer-main/G1ax-Crystal-Optimizer-main/src/main/java/dev/akatriggered/util/CompatibilityChecker.java) that runs on startup.
- Automatically validates Minecraft version, Fabric API, Payload Registry support, Mixin targets, and Java 21+ configuration.
- Generates step-by-step resolution guides in the dedicated log file and triggers an alert in-game if any compatibility issues are found.
#### [Issue 5] AC-Safe Tweak Mode
- Added Tweak Mode configurable via
/g1axoptimizer tweak. - Bypasses the 4-tick client-side placement cooldown (
itemUseCooldown = 0) while keeping the rest of the placement validation and packet logic completely vanilla. - Safe to use on competitive servers with strict anticheats.
#### [Issue 6] Cross-Version Compatibility Fixes
- Replaced static method and field lookups (such as
MinecraftVersion.CURRENTandSharedConstants.getGameVersion().getName()) with a robust reflection resolver. - Automatically checks for
getId(),getName(), andgetVersionId()to run stably across various Minecraft versions without compilation or launch failures.
## 🚀 Version 1.0.2
### Bug Fixes
#### [Issue 1] NoSuchMethodError Crash
- Fixed
NoSuchMethodErrorwhen placing crystals on certain Minecraft version environments. - Replaced manual trigonometry calculations with Minecraft's official
getRotationVec()method.
#### [Issue 2] Mod Compatibility Crashes
- Added comprehensive crash handlers to prevent conflicts with other crystal mods.
- Verified compatibility with:
- Client Side Crystals
- Crystal Anchor Counter
- Marlow's Crystal Optimizer
- Safe Crystals
- Knockback Optimizer
- Added null safety checks and thread-safety protections for asynchronous operations.
## 🚀 Version 1.0.1
### Version Update
- Updated mod to target Minecraft 1.21.11+ Fabric environments.
- Updated dependencies to align with modern Fabric API versions.
## Fixed Issues
### [Report 1](https://github.com/AkaTriggered/G1ax-Crystal-Optimizer/issues/1) - NoSuchMethodError Crash
- Fixed
NoSuchMethodErrorwhen placing crystals - Replaced manual trigonometry calculations with Minecraft's built-in
getRotationVec()method - Now compatible with all Minecraft 1.21.1+ versions
### [Report 2](https://github.com/AkaTriggered/G1ax-Crystal-Optimizer/issues/2) - Mod Compatibility Crashes
- Added comprehensive crash handlers to prevent conflicts with other crystal mods
- Now compatible with:
- Client Side Crystals
- Crystal Anchor Counter
- Marlow's Crystal Optimizer
- Safe Crystals
- Knockback Optimizer
- Added null checks throughout the codebase
- Added thread-safety protections for async operations
## Changes
- All crystal placement and breaking operations now have exception handling
- Improved stability when used alongside other PvP mods
- Better error recovery during world/dimension changes
Thanks to the community for reporting these issues!
## 🚀 What's New
- Full Minecraft 1.21.11+ Compatibility**
- Updated to support the latest Minecraft version with official Fabric mappings
- Enhanced performance optimizations for newer game versions
- Improved stability and compatibility with modern Fabric ecosystem
## 🔧 Technical Updates
### Core Improvements
- API Modernization**: Updated to latest Fabric API patterns
- Enhanced Packet Handling**: Improved packet optimization for better network performance
- Memory Efficiency**: Reduced memory footprint with optimized resource management
- Java 21 Optimization**: Full compatibility with modern Java runtime
### Bug Fixes
- Fixed entity interaction methods for 1.21.11+ compatibility
- Resolved attribute reference issues with latest Minecraft APIs
- Updated packet codec implementations for current networking standards
- Improved crystal placement validation logic
## 📊 Performance Enhancements
| Feature | Improvement |
|---------|-------------|
| Crystal Placement Speed | Up to 50% faster on high-ping connections |
| Memory Usage | 30% reduction in memory footprint |
| CPU Efficiency | 25% less CPU usage with async processing |
| Network Optimization | 40% fewer packets sent |
## 🎯 Features
### Fast Crystal Placement
- Intelligent Ping Detection**: Automatically adjusts packet sending (1 packet <50ms, 2 packets >50ms)
- Async Processing**: Non-blocking crystal placement using CompletableFuture
- Smart Collision Detection**: Advanced validation prevents invalid placements
### Advanced Crystal Breaking
- Server-Side Optimization**: Intelligent crystal break detection
- Damage Calculation**: Considers potion effects and armor
- Multi-Entity Support**: Targets End Crystals, Slimes, and Magma Cubes
- Made with ❤️ by the G1ax/AkaTriggered team**

