Inventory Tweaks Remaked
Sort your chests and inventory the way 1.12.2 players remember — now on Forge, NeoForge and Fabric, for 1.20.1 and 1.21 through 26.3.
Inventory Tweaks Remaked is a faithful re-implementation of the classic Inventory Tweaks mod (by Jimeo Wan and kobata). The original was written for Minecraft 1.12.2 with ASM injection; this project rebuilds the same behaviour on modern mod loaders, keeping the original look, defaults and configuration format instead of inventing something new.
Features
- One-key sorting – press R (configurable in Controls) and the area under your mouse pointer is sorted: point at the chest to sort only the chest, point at your inventory to sort only your inventory, point anywhere else and both are sorted.
- Middle click sorting – same targeting rules; on a chest it cycles through the three algorithms (default → columns → rows).
- Container buttons – three sorting buttons as drawn pixel art (default / by column / by row), a settings button, and two transfer arrows that move items between container and inventory. Buttons automatically shift left to avoid overlapping buttons from other mods (e.g. Sophisticated Backpacks).
- Click shortcuts – hold a modifier and click a slot:
- Ctrl – move a single item
- Ctrl + Shift – move all items of the same type
- Shift – move one stack
- Space – move everything
- ↑ / ↓ – move to the upper / lower section
- 1–9 – move to a specific hotbar slot
- Alt – drop the item
- Auto-refill – when a tool or stack runs out (or is about to break), a replacement is pulled from your inventory. "Refill before break" and the damage threshold are configurable.
- Sorting rules – a text file with simple two-field rules (
constraint keyword): whole columns, rows, single slots and rectangles, with reverse and vertical ordering, pluslocked,frozenandautorefillkeywords. Multiple rule sets can be defined and switched in game. - Editable item tree – an XML tree that defines which keyword an item belongs to (weapons, tools, armour, blocks, food, resources…). The bundled tree has been extended for modern content: netherite gear, mace, trident, crossbow, deepslate, tuff, copper blocks, amethyst, smithing templates and pottery sherds.
- Client side only – no blocks, items or packets are registered; it works on any server, including vanilla ones. Nothing needs to be installed server side.
Supported versions
| Minecraft | Loader | File |
|---|---|---|
| 1.20.1 | Forge 47.x / NeoForge 47.1.x | inventorytweaksremaked-forge-1.20.1-1.1.1.jar |
| 1.20.1 | Fabric | inventorytweaksremaked-fabric-1.20.1-1.1.0.jar |
| 1.21 / 1.21.1 / 1.21.3 / 1.21.4 / 1.21.5 / 1.21.8 / 1.21.10 / 1.21.11 | NeoForge 21.x | inventorytweaksremaked-neoforge-<version>-1.1.1.jar</version> |
| 1.21 / 1.21.1 / 1.21.3 / 1.21.4 / 1.21.5 / 1.21.8 / 1.21.10 / 1.21.11 | Fabric | inventorytweaksremaked-fabric-<version>-1.1.0.jar</version> |
| 26.1.2 / 26.2 / 26.3 | NeoForge 26.x (requires Java 25) | inventorytweaksremaked-neoforge-<version>-1.1.1.jar</version> |
| 26.1.2 / 26.2 / 26.3 | Fabric (requires Java 25) | inventorytweaksremaked-fabric-<version>-1.1.0.jar</version> |
Download the file that matches your exact game version and loader. The 1.20.1 Forge file runs on both Forge 47.x and NeoForge 47.1.x — NeoForge 1.20.1 is a Forge 47 fork and reads the same metadata, so there is only one jar for that pair. Fabric builds are separate jars and need a matching Fabric Loader and Fabric API. All files only support the version and loader named in their file name.
Getting started
- Drop the jar into your
modsfolder. - Start the game once — the default configuration is written to
config/InvTweaks/. - Open a chest and press R (or click the sorting buttons).
Everything can be tuned from the in-game settings screen (the ... button on container screens) or by editing the files directly.
Configuration files
| File | Purpose |
|---|---|
config/InvTweaks/InvTweaks.cfg |
Toggles and key bindings |
config/InvTweaks/InvTweaksRules.txt |
Sorting rules and multiple rule sets |
config/InvTweaks/InvTweaksTree.txt |
Item classification tree (XML) |
config/InvTweaks/trees/*.tree |
Extra tree fragments, merged at load time |
Deleting these files regenerates them on the next launch (the old ones are kept as .bak).
Documentation
Full documentation — sorting rules syntax, item tree format, shortcut reference and troubleshooting — is available here:
https://huan25748.github.io/Inventory-Tweaks-Remaked/
Compatibility notes
- Inventory Tweaks Remaked is a client-side mod. It does not send custom packets and does not change server behaviour.
- Container screens from other mods work as long as they use standard Minecraft slots. Buttons are placed next to the GUI and avoid existing widgets.
- The mod draws its own 10×10 pixel buttons, matching the look of the 1.12.2 original.
- The 1.20.1 build is a single jar for both loaders: it runs on Forge 47.x and on NeoForge 47.1.x, with no separate NeoForge download.
Credits
- Jimeo Wan and kobata — authors of the original Inventory Tweaks (1.12.2), whose behaviour, defaults and configuration format this port reproduces.
- IMarvinTPA — item tree data that the bundled tree is based on.
- huan25748 — modern port, multi-version build and maintenance.
Licensed under MIT, the same licence as the original project.
中文简介
把 1.12.2 时代的经典物品栏整理带回来 —— 支持 Forge / NeoForge / Fabric,覆盖 1.20.1 与 1.21 ~ 26.3。
本模组是经典 Inventory Tweaks(作者 Jimeo Wan、kobata)的忠实重制版。原版基于 1.12.2 的 ASM 注入实现,这里在现代加载器上重新实现了同样的行为,保留原版的界面风格、默认配置与配置文件格式,而不是另起一套。
功能
- 一键整理:按 R(可在「控制 → 按键」修改),鼠标指向哪里就整理哪里 —— 指向箱子只整理箱子,指向背包只整理背包,指向其他位置则两者一起整理。
- 鼠标中键整理:整理目标同样跟随鼠标;对箱子连续点击会在「默认 → 按列 → 按行」三种算法间循环。
- 容器按钮:三个自绘的排序图标(默认 / 按列 / 按行)、一个设置按钮,以及两个在容器与背包之间转移物品的箭头按钮。遇到自带按钮的模组界面(如精妙背包)会整体左移避让。
- 点击快捷操作:按住修饰键点击格子
- Ctrl:移动 1 个
- Ctrl + Shift:移动所有同类型物品
- Shift:移动一叠
- 空格:移动全部物品
- ↑ / ↓:移动到上方 / 下方区域
- 1–9:移动到指定快捷栏格
- Alt:丢弃
- 自动装填:工具用完或快坏时自动从背包补一组;可配置「损坏前更换」与耐久阈值。
- 排序规则:两字段的文本规则(
区域 关键字),支持整列、整行、单格、矩形、反向与竖排,以及locked(锁定)、frozen(冻结)、autorefill(补货白名单);可定义多套方案并在游戏内切换。 - 可编辑物品树:用 XML 定义物品属于哪个关键字。内置树已补全现代内容:下界合金装备、重锤、三叉戟、弩、深板岩、凝灰岩、铜方块、紫水晶、锻造模板与陶片。
- 纯客户端:不注册方块、物品或数据包,原版服务器也能用,服务端无需安装。
支持版本
| 游戏版本 | 加载器 | 文件 |
|---|---|---|
| 1.20.1 | Forge 47.x / NeoForge 47.1.x | inventorytweaksremaked-forge-1.20.1-1.1.1.jar |
| 1.20.1 | Fabric | inventorytweaksremaked-fabric-1.20.1-1.1.0.jar |
| 1.21 / 1.21.1 / 1.21.3 / 1.21.4 / 1.21.5 / 1.21.8 / 1.21.10 / 1.21.11 | NeoForge 21.x | inventorytweaksremaked-neoforge-<版本>-1.1.1.jar |
| 1.21 / 1.21.1 / 1.21.3 / 1.21.4 / 1.21.5 / 1.21.8 / 1.21.10 / 1.21.11 | Fabric | inventorytweaksremaked-fabric-<版本>-1.1.0.jar |
| 26.1.2 / 26.2 / 26.3 | NeoForge 26.x(需 Java 25) | inventorytweaksremaked-neoforge-<版本>-1.1.1.jar |
| 26.1.2 / 26.2 / 26.3 | Fabric(需 Java 25) | inventorytweaksremaked-fabric-<版本>-1.1.0.jar |
请下载与你的游戏版本、加载器完全对应的文件。1.20.1 的 Forge 文件同时适用于 Forge 47.x 与 NeoForge 47.1.x —— NeoForge 1.20.1 是 Forge 47 的分支,读取的是同一份元数据,所以这一对加载器共用一个 jar。Fabric 是单独的 jar,需要对应的 Fabric Loader 与 Fabric API。除上述情况外,文件只支持文件名中写明的游戏版本与加载器。
使用步骤
- 把 jar 放进
mods文件夹。 - 启动一次游戏,默认配置会生成在
config/InvTweaks/。 - 打开箱子按 R,或点箱子界面右上角的排序图标。
配置文件
| 文件 | 作用 |
|---|---|
config/InvTweaks/InvTweaks.cfg |
开关与按键 |
config/InvTweaks/InvTweaksRules.txt |
排序规则与多套方案 |
config/InvTweaks/InvTweaksTree.txt |
物品分类树(XML) |
config/InvTweaks/trees/*.tree |
附加树片段,启动时合并 |
删掉后下次启动会自动重建,旧文件保留为 .bak。
文档
排序规则写法、物品树格式、完整快捷键与常见问题:
https://huan25748.github.io/Inventory-Tweaks-Remaked/
兼容性
- 纯客户端模组,不发自定义数据包,不改变服务端行为。
- 只要其他模组的容器界面使用标准槽位就能正常工作,按钮会避开已有控件。
- 按钮为 10×10 自绘像素图标,与 1.12.2 原版一致。
- 1.20.1 版本是同一个 jar 同时支持两种加载器:Forge 47.x 与 NeoForge 47.1.x,不需要单独下载 NeoForge 版本。
致谢
- Jimeo Wan、kobata:原版 Inventory Tweaks(1.12.2)作者,本移植版复刻其行为与配置格式。
- IMarvinTPA:内置物品树的数据来源。
- huan25748:现代移植、多版本构建与维护。
许可证:MIT(与原项目一致)。

