
Consumable Optimizer
Handles eating client-side, ensuring servers don't slow down the eating process
About this Mod
Consumable Optimizer!
This mod enforces more client-sided processing when handling consumable items (any food item).
Information
By default, Minecraft requires the user to wait for a server response before consuming an item. While this delay is hardly noticeable on low ping, it becomes much more noticable on high ping and causes players to be stuck in an eating animation until the server eventually responds.
This optimizer ensures all of that processing is done client-side rather than server-side, allowing items to be comsumed with no delay and on the exact tick it should be finished. The server still applies the item's effects (such as absorption or regeneration from a golden apple) while the client handles the actual eating process.
High ping can also occationaly causes desyncs when consuming an item, forcing the server to restart the eating process for the player. This further slows the overall process of consuming an item down even more and makes it feel inconsistent. This optimizer fixes this, by cancelling these recalls from the server when unneeded.
Demonstration Video
Server Opt Out
If you don't want your playerbase using the mod and you're a server owner, you can opt out using a very simple plugin. Some example code can be found below:
public class ConsumableOptimizerDisable extends JavaPlugin implements PluginMessageListener {
private static final String S2C_CHANNEL = "consumable_optimizer:disable_payload";
private static final String C2S_CHANNEL = "consumable_optimizer:handshake_payload";
@Override
public void onEnable() {
this.getServer().getMessenger().registerOutgoingPluginChannel(this, S2C_CHANNEL);
this.getServer().getMessenger().registerIncomingPluginChannel(this, C2S_CHANNEL, this);
}
@Override
public void onPluginMessageReceived(String channel, Player player, byte[] message) {
if (channel.equals(C2S_CHANNEL)) {
Bukkit.getScheduler().runTaskLater(this, () -> {
if (player.isOnline()) {
player.sendPluginMessage(this, S2C_CHANNEL, new byte[0]);
getLogger().info("Disabled consumable optimizer for " + player.getName());
}
}, 20L);
}
}
}
Credits
- Mod: Walksy
- Icon: SakuraFX
Available Versions
How to Install Consumable Optimizer on Your Client
Install the Mod Loader Locally
Install fabric for your local Minecraft version.
Download the Matching File
Choose the Consumable Optimizer file for fabric and Minecraft 26.2.
Install Mod
Place the .jar file in your local .minecraft/mods folder and restart Minecraft. No server-side installation is required.
Compatibility
Mod Loaders
Minecraft Versions
26.2, 26.1.2, 26.1.1 (+15 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Does Consumable Optimizer need to be installed on the Minecraft server?
No. Modrinth marks Consumable Optimizer as unsupported on the server side. Install it only in your local Minecraft mods folder. Your server can remain unchanged unless the mod page lists an additional dependency.
Which version and loader does Consumable Optimizer require?
Use a file for fabric and your exact Minecraft version. Supported versions include 26.2, 26.1.2, 26.1.1. Files for different loaders are not interchangeable.
Consumable Optimizer is not working – what should I check?
First check the Minecraft version, loader version and required dependencies. Put the .jar file in your local .minecraft/mods folder and remove older duplicates. Because this mod is client-side, adding server RAM will not fix it.
Similar Mods
Minecraft Server for Your Group
Consumable Optimizer stays on your client. Host a compatible world for your group.