HomeJavaModsOffhand In Containers
Offhand In Containers
ModsJava

Offhand In Containers

by BattryLeaf · on Modrinth

This mod adds a vanilla-looking sprite inside of any container HUD and it is fully usable inside said container screens

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 26.1–26.1.2⬇ Download for 1.21.11⬇ Download for 1.21.9–1.21.10
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.
Offhand In Containers — screenshot 1Offhand In Containers — screenshot 2Offhand In Containers — screenshot 3Offhand In Containers — screenshot 4

🖐️ Offhand In HUD

Bring your offhand slot everywhere. No more opening your inventory just to swap a torch, Totem, food, shield, or end crystal ⚡

Offhand In HUD adds a fully interactive offhand slot directly into container GUIs — chests, barrels, shulker boxes, modded inventories, and basically any screen extending AbstractContainerScreen.

The slot behaves like a real vanilla slot, supports full mouse interaction, and blends seamlessly into Minecraft’s UI as if Mojang added it themselves.

✨ Features

🧩 Fully Interactive Offhand Slot

The offhand slot appears directly beside the player inventory section while any supported container is open.

It is:

Fully clickable Fully synced Fully server-validated Pixel-perfect to vanilla styling

No fake rendering. No desync mess.

🖱️ Vanilla-Like Interactions

Left Click Pick up the offhand item Place the carried item into offhand Swap items instantly Automatically merge stacks when possible Right Click Place one item into the offhand Pick up half the offhand stack when empty-handed Shift Click Shift-click the offhand slot to quick-move items into inventories/containers Shift-click compatible items directly into the offhand for fast stacking Two-Click Placement

🎨 Vanilla-Accurate Design

The widget is designed to feel completely native to Minecraft.

Includes:

Vanilla container/slot sprite rendering Proper hover tint Real item tooltips Automatic left/right positioning based on main-hand preference Slightly expanded hitbox for easier clicking 🎯

If you didn’t know it was a mod, you’d probably assume it shipped with the game.

🔧 Technical Details

All interactions are validated server-side through a dedicated packet system for proper multiplayer compatibility and synchronization.

The mod uses:

Optimistic client updates for instant responsiveness Server confirmations and automatic resyncing Custom interaction handling for non-player inventory screens

📦 Compatibility

✅ Fabric 26.1 to 1.26.1.2 [more coming soon!] ✅ Vanilla containers ✅ Modded containers extending AbstractContainerScreen ✅ Multiplayer compatible ✅ Left-handed player support

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