Inventory Tweaks: Reloaded

Restores the classic Inventory Tweaks experience for Minecraft 26.3: R-key sorting, the four container buttons, and automatic tool replacement.

Inventory Tweaks for Minecraft 26.3 + NeoForge, rebuilt from the 1.12.2 original.

This is a derivative work of Inventory Tweaks by Marwane Kalam-Alami (MIT licence, 2011-2013). The sorting algorithm, rule syntax, button layout and auto-refill behaviour are ported from that codebase; the NeoForge / Minecraft 26.3 implementation is new work.

The original project is no longer updated. This port keeps the way it behaved: the buttons in the corner of every container, the R key, the middle click, and a tool that quietly replaces itself when it breaks.

What it does

Container buttons. Any container whose storage slots form a full rectangle gets the classic four 10x10 buttons in the top-right corner: default sort, vertical sort, horizontal sort, settings. Plain player-inventory screens get only the settings button, like the original.

Sorting. The 1.12.2 algorithm. Rules apply by priority, D /LOCKED and FROZEN block movement, identical stacks merge first, and a final pass moves every remaining stack into the first slot it belongs to. The hotbar is locked during an inventory sort, so your tools stay put.

Item order follows the creative-inventory order inside category bands (swords, bows, arrows, pickaxes, shovels, axes, hoes, armor, food, blocks, resources). That covers modded items without a hardcoded item list.

Auto-refill. When the selected hotbar stack runs out, the best matching stack from the rest of the inventory is swapped in. Tools match by item and by every component except the damage counter, so a worn pickaxe is replaced by a fresh one of the same kind.

Middle click. Sorts the section under the cursor. On a chest it cycles default, horizontal, vertical when clicked repeatedly within two seconds; on a crafting grid it evens out the stacks.

R key. Sorts the player inventory, in the world and with a container open. It is a normal key binding under Options, Controls, in its own Inventory Tweaks: Reloaded section, so it can be rebound. The default is R.

Compatibility

No Mixin, no ASM, no server component. Every item movement is an ordinary container click, so the server validates each one exactly as it validates a player's. Works in singleplayer, on vanilla servers, and on servers that do not have the mod installed.

Container detection is geometric rather than positional: the mod requires a complete, equally-wide rectangle of slots, so a 3x3 dispenser and a modded 13x8 crate both qualify, while a machine with scattered input/output slots is left alone instead of being scrambled.

Configuration

config/invtweaksreloaded-client.toml, or the in-game "..." button.

Key Default Meaning
showChestButtons true show the four buttons
enableMiddleClick true middle-click sorting
enableAutoRefill true replace used-up stacks
autoRefillBeforeBreak false swap before the tool breaks
autoRefillDamageThreshold 5 remaining durability that triggers it
enableSounds true click feedback
enableAutoEquipArmor false equip the best armor when sorting
invertToolDamageSorting true damaged tools first

Requirements

  • Minecraft 26.3
  • NeoForge 26.3 or newer
  • Java 25
  • Client-side only

Links

Parts of this codebase were written with AI assistance.

Inventory Tweaks: Reloaded Team

profile avatar
  • 2
    Projects
  • 65
    Downloads

More from MCFreeGod