ModsFinder

No Hotbar Swap

by mercuri

No Hotbar Swap stops the number keys from switching hotbar slots by accident, which matters when a stray press swaps a sword out for a stack of cobblestone at the wrong moment.

FabricNeoForgeClient-side onlyMIT LicenseOpen source1.21.1

What it does

Number-key slot switching is turned off, so pressing the number keys no longer changes the selected hotbar slot. The mod addresses one input behavior and leaves the rest of the game alone, with no new items, blocks or changes to gameplay. A config option can turn the disabling off, and a modifier key can be set to allow swapping temporarily while it is held.

Only the client needs the mod, so a server running vanilla behavior can be joined without installing anything. Installation needs Fabric API on either loader. Cloth Config API and Mod Menu are optional and add a settings screen for the config. The mod is released under the MIT License and is open source, with source code and an issue tracker public, and files exist for Fabric and NeoForge for 1.21.1.

Key features

  1. Number keys disabled

    Pressing the number keys no longer changes the selected hotbar slot, so an accidental press cannot switch items mid-fight.

  2. Config toggle

    A config option lets the player turn the disabling on or off without removing the mod.

  3. Modifier key override

    A modifier key can be held to allow number-key swapping for a moment, while the default stays locked.

  4. Narrow scope

    The mod changes only how number-key input is handled and adds no other gameplay content.

Compatibility

Latest build for each game version and loader.

1.21.11.0.0-mc1.21.11.0.0-mc1.21.1
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Optional 2

Mod MenuAdds a mod menu to view the list of mods you have installed.
Optional
Cloth Config APIConfiguration Library for Minecraft Mods
Optional

Use cases

Fast combat play

Players who bump a number key during a fight keep their weapon selected, because the swap does not happen.

Building with fixed slots

Builders who keep blocks in set hotbar positions avoid losing their layout to a stray keypress.

Who it’s for: Players who often swap items by accident and want the number keys to stop changing slots. Anyone who still wants the vanilla behavior can turn it back on in the config or hold the modifier key.

How it compares

Full comparison

Hotbar Quickswap is a Fabric mod for 1.21.10 – 1.21.11, client-side only and open source under the CC0 1.0 Universal license, so it targets a different range. Simple-overhand-swap is a client-side Fabric mod for 1.21 – 1.21.10 under the MIT License, also open source. Inventory Vertical Swap is a NeoForge mod for 1.21.1 under the MIT License, but it is not open source.

ModLoadersGame versionsEnvironmentUpdated
No Hotbar SwapFabric and NeoForge1.21.1Client-side only2026-04-03
Hotbar QuickswapFabric1.21.10 – 1.21.11Client-side only2025-12-24
Simple-overhand-swapFabric1.21 – 1.21.10Client-side only2025-10-20
Inventory Vertical SwapNeoForge1.21.1Client-side only2026-05-19

Questions

Does No Hotbar Swap need Fabric API?

Yes. Fabric API is required on both Fabric and NeoForge, and it must be installed next to No Hotbar Swap.

Does the server need No Hotbar Swap?

No. Players add it to their own game, and a server needs no copy.

Can the number-key swapping be turned back on?

Yes. A config option turns the disabling off, and holding the modifier key allows swapping for a moment.

Is the mod available for versions other than 1.21.1?

Not from the current files. Both Fabric and NeoForge builds are published for 1.21.1 only.

In the catalog

No Hotbar Swap is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 32,366 mods support Minecraft 1.21.1.

Similar mods

What the author says

A small, focused Minecraft mod that disables accidental number-key hotbar swapping. Prevents the player from unintentionally switching hotbar slots—simple as that.
mercuri, on the Modrinth page

Official listing

Owner
mercuri
Published
2026-04-03
Updated on Modrinth
2026-04-03
Facts verified
2026-10-15

Tags