
Safe Offhand
Introduces lockable hotbar slots to prevent accidental offhanding.
About this Mod
Safe Offhand
Safe Offhand is a lightweight client-side Fabric mod that prevents accidental swaps to the offhand.
The mod adds lockable hotbar slots. When a locked hotbar slot is selected, pressing the offhand swap key will be blocked. Unlocked slots still work normally, and inventory-based offhand swaps are left untouched.

Features
- Lock or unlock each hotbar slot individually
- Block the offhand swap key for locked hotbar slots
- Allow offhand swaps from unlocked hotbar slots
- Keep normal inventory interactions unchanged
- Show an actionbar message when a swap is blocked
- Configure everything through Mod Menu
- Client-side only
How it works
If you select a locked hotbar slot and press your offhand swap key, Safe Offhand prevents that item from being moved to your offhand.
If the selected hotbar slot is unlocked, the offhand swap works normally.
Opening your inventory and using the offhand swap key on hovered items still works like vanilla Minecraft.

Configuration
Safe Offhand can be configured through Mod Menu.
You can configure:
- Whether the mod is enabled
- Whether actionbar messages are shown
- Which hotbar slots are locked or unlocked

Slot States
Each hotbar slot can be set to one of two states:
- Locked: pressing the offhand swap key while this slot is selected will be blocked
- Unlocked: pressing the offhand swap key while this slot is selected will work normally
This makes it easy to protect important hotbar slots while still allowing offhand swaps from selected slots.

Requirements
- Fabric Loader
- Fabric API
- Cloth Config
Optional
- Mod Menu, recommended for in-game configuration
Available Versions
How to Install Safe Offhand on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (26.2).
Install Mod
Open the mod browser in the dashboard and search for "Safe Offhand". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.2
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Safe Offhand server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.2). You can switch loaders with one click in the panel.
Is Safe Offhand compatible with fabric?
Safe Offhand officially supports fabric for Minecraft 26.2. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Safe Offhand – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Safe Offhand consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Safe Offhand with just one click on your server.