All Mods Resource Packs Data Packs Shaders Modpacks Plugins
G1ax Crystal Optimizer

G1ax Crystal Optimizer

by tech.anupam • Downloads: 7 • Followers: 0
Description
Gallery
Changelog
Versions

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:

  1. 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).
  2. Make sure you have the compatible loader or environment installed for Fabric, Legacy-fabric.
  3. Move the downloaded G1ax Crystal Optimizer file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.16.x
Fabric
2mo ago 4
26.3 26.2 26.1.x
Fabric
2mo ago 2
1.21.x 1.20.x
Fabric
2mo ago 1
1.16.x
Fabric
2mo ago 1
1.21.x
Fabric Legacy-fabric
2mo ago 1
26.2 26.1.x 1.21.x
Fabric Legacy-fabric
2mo ago 1
26.2 26.1.x 1.21.x +21
Fabric Legacy-fabric
2mo ago 1
1.21.x 1.20.x 1.19.x +19
Fabric Legacy-fabric
2mo ago 1
26.2 26.1.x
Fabric Legacy-fabric
2mo ago 1
1.21.x 1.20.x 1.19.x +19
Fabric Legacy-fabric
2mo ago 1
26.2 26.1.x
Fabric Legacy-fabric
2mo ago 1
1.21.x 1.20.x 1.19.x +19
Fabric Legacy-fabric
2mo ago 1
1.21.x 1.20.x
Fabric Legacy-fabric
2mo ago 1
1.21.x 1.20.x 1.19.x +19
Fabric Legacy-fabric
2mo ago 1
1.21.x 1.20.x 1.19.x +19
Fabric Legacy-fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
# v1.0.7

### 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.

# v1.0.7

### 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.

# v1.0.7

### 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.

Downgraded Mod To Support 1.16.x Versions for those who cant use upgraded minecraft game versions due to hardware issues
# G1ax Crystal Optimizer Release Notes

## 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 recognize JAVA_25 as 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, so JAVA_21 is 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 findAdjacentBase edge 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
# G1ax Crystal Optimizer Release Notes

## 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 recognize JAVA_25 as 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, so JAVA_21 is 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 findAdjacentBase edge 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
__**What we fixed in the mod:**__
> 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.
__**What we fixed in the mod:**__
> 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.
## 🛠️ Version 1.0.5

### 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 isSpaceFree on 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, and off no 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
  • /g1axoptimizer with no arguments still prints the current mode and usage to chat since that's a deliberate status check.

# ---
## 🛠️ Version 1.0.5

### 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 isSpaceFree on 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, and off no 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
  • /g1axoptimizer with no arguments still prints the current mode and usage to chat since that's a deliberate status check.

# 🔮 G1ax Crystal Optimizer Release Notes

## 🚀 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 record structure of ServerboundInteractPacket. Evaluates the presence of hand() == null to correctly optimize attacks without using the deprecated/removed inner Handler interface or dispatch() 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.java to use the modernized Fabric API methods (clientboundPlay(), serverboundPlay(), and clientboundConfiguration()), resolving packet-registry mismatches and preventing client-side launch crashes.
  • Tooling Compatibility**: Upgraded Lombok annotation processor version to 1.18.46 in the Gradle build pipeline, resolving compilation daemon ExceptionInInitializerError crashes when building under Java 26.

# 🔮 G1ax Crystal Optimizer Release Notes
## 🚀 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.
#### Modrinth Auto Update Checker
  • 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.
### Bug Fixes
#### 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.
#### Classloading Mismatch / Mixin Startup Crash (Minecraft 1.21)
  • Resolved startup crash with ClassMetadataNotFoundException: net.minecraft.class_1269$class_9859 when running on Minecraft 1.21.
  • Root cause: ActionResult was refactored from an enum to a sealed interface in 1.21.2+. Compiling against 1.21.11 caused references to ActionResult.PASS to seek non-existent inner records.
  • Solution: Introduced ActionResultResolver.java using reflection to dynamically retrieve SUCCESS, CONSUME, and PASS constants across all Minecraft 1.21–1.21.11 builds, resolving any compile-time bytecode dependency on the inner classes.
#### Incorrect Compatibility Warnings on Production/Obfuscated Clients
  • Fixed startup log output displaying Minecraft: unknown and reporting INCOMPATIBILITY: Mixin targets not found: MinecraftClient, EndCrystalItem, ClientConnection.
  • Root cause: CompatibilityChecker looked up named classes (MinecraftClient, etc.) which are obfuscated to intermediary names (class_310, etc.) in the production environment. Also, SharedConstants reflection failed due to obfuscated method names.
  • Solution: Updated CompatibilityChecker to query both named and intermediary names for class presence, and integrated Fabric Loader's mo
...
# 🔮 G1ax Crystal Optimizer Release Notes

## 🚀 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.CURRENT and SharedConstants.getGameVersion().getName()) with a robust reflection resolver.
  • Automatically checks for getId(), getName(), and getVersionId() to run stably across various Minecraft versions without compilation or launch failures.


## 🚀 Version 1.0.2

### Bug Fixes

#### [Issue 1] NoSuchMethodError Crash
  • Fixed NoSuchMethodError when 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.

# Bug Fix Release

## Fixed Issues

### [Report 1](https://github.com/AkaTriggered/G1ax-Crystal-Optimizer/issues/1) - NoSuchMethodError Crash
  • Fixed NoSuchMethodError when 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!

# G1ax Crystal Optimizer v1.0.1 - Minecraft 1.21.11+ Support

## 🚀 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**

G1ax Crystal Optimizer Icon
Download G1ax Crystal Optimizer
Select game version
Select platform