HomeJavaModsCrossbow Optimizer
Crossbow Optimizer
ModsJava

Crossbow Optimizer

by Walksy · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 1.21.9–1.21.11⬇ Download for 1.21.5–1.21.8⬇ Download for 1.21.2–1.21.4⬇ Download for 1.21–1.21.1
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Crossbow Optimizer!

This mod handles crossbow reloading completely on the client, reducing the effect of ping and ensuring the server doesn't interrupt the reloading process.


The Problem

When reloading, the client must wait for the use-item packet to reach the server, wait for the server to process the reload, and finally wait for the server to sync the charged crossbow state back to the client. This same round-trip latency affects shooting too where you can't start reloading again until the server confirms your crossbow has fired and updates it to an empty state, which it has to send back to the client causing even more delays. On top of this, high ping can cause the server to desync and cancel your reloads randomly.

Ping shouldn't effect the speed or consistency in which you reload.

The Solution

This mod fixes this by moving both reloading and shooting to the client. It empties the crossbow as soon as you shoot, letting you start your next reload immediately without waiting on your ping. By filtering out invalid server updates (normally causes by high ping, packet loss etc), the mod prevents the server from cancelling your active reloads. The server still handles the arrows being fired from the crossbow.

Demonstration Video


Credits

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more