跳到正文

Safe Offhand

作者:mrkoszos

Introduces lockable hotbar slots to prevent accidental offhanding.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

Safe Offhand Preview

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.

Blocked Offhand Swap

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

Safe Offhand Config

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.

Locked and Unlocked Slots

Requirements

  • Fabric Loader
  • Fabric API
  • Cloth Config

Optional

  • Mod Menu, recommended for in-game configuration

常见问题

Safe Offhand 支持哪些 Minecraft 版本?

Safe Offhand 支持 Minecraft Java 版 1.21.8–26.3,共 9 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Safe Offhand 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

mrkoszos 的其他作品

查看全部 →