Offhand In Containers
This mod adds a vanilla-looking sprite inside of any container HUD and it is fully usable inside said container screens
截图
介绍
🖐️ 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
常见问题
Offhand In Containers 支持哪些 Minecraft 版本?
Offhand In Containers 支持 Minecraft Java 版 1.21.9–26.1.2,共 6 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Offhand In Containers 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
BattryLeaf 的其他作品
查看全部 →
Unstable SMP Death Sounds
Makes every death have the wither spawn sound [unstable SMP's death sound]
Unstable SMP Death Sounds by BL
Makes every death have the wither spawn sound [unstable SMP's death sound]
BL Improved Private Messages
A modern Discord-style private messaging GUI for Minecraft multiplayer. Intercepts whispers and organizes them into conversations with player avatars, tabs, friend lists, unread badges, and persistent per-server history — fully client-side, no plugins need
Floating Cushions
Makes it so that coushions do not require a supporting block and can float mid air!
评论
登录后评论和评分