Inventory Control Tweaks

Inventory Control Tweaks

167k Downloads

This mod is for the Fabric mod loader and Minecraft Versions

Also works on Quilt!

Modrinth Downloads CurseForge Downloads

Requires Fabric API

Supports Cloth Config and Mod Menu for configuration, but neither is required.

Like this mod? Coindrop.to me or Buy me a coffee

Mod loader Fabric Mod loader Fabric

Discuss on Discord License MIT Source Code on GitLab gitlab issues

Inventory Control Tweaks is a client-side mod.


This mod makes several convenient changes to inventory controls.

Known compatibility issue: if you use Item Scroller, Inventory Control Tweaks' shift-click features won't work. There won't be a crash and other feature will still work. 

Users have found partial workarounds, so if you want to use these mods together, try:

- crtl + shift + click instead of just shift + click

- configure ItemScroller's 'keyDragMoveStacks' keybind so that “Cancel further processing” is disabled. This will reportedly only work if your hotbar is full. 


Current features:
- Armor swap
Right click while holding a piece of armor to swap it with the piece you're currently wearing.

armor_swapelytra_swappiglin_gold_swap

- Armor swap item blacklist

Using items in this list won't swap them with your current armor. Useful for compatibility. 

- Pick block fills stack
If you pick-block (middle click) while you already have the picked block selected, the stack in your hand will be refilled from your inventory.

- Pick block never changes slot
If you pick-block and the block you're pointing at is on your hotbar, instead of changing which slot you have selected, that block will be swapped to your hand.
pick_block_fills_stackpick_block_never_changes_slots

When comparing stacks, ignore NBT
- Drag matching stacks across inventories
With an external inventory open (chest, dropper, etc. ), click, hold, and drag a stack between the two inventories to move all matching stacks.
drag_across_ignore_nbt

Deposit cursor stack on release

When you use 'Drag matching stacks across inventories', the stack you were dragging will be deposited upon release.

Possible values: "DISABLED", "AT_HOVERED_SLOT", "AT_EMPTY_SLOT"

Drag single stack out of inventory

With an inventory open, click, hold, and drag a stack outside the inventory to throw the stack.


drag_single

- Drag matching stacks out of inventory
With an inventory open, click, hold, and drag a stack outside the inventory to throw it and all matching stacks. 
Optionally requires a key to be held which can be configured in Minecraft's controls interface.
Possible values: "DISABLED", "NO_KEY", "WITH_KEY"
drag_matchingdrag_out_ignore_nbt
- Shift-click to partial offhand stack
If a partial stack of items is in your offhand, shift-clicking another stack of the same type of items will add them to your offhand.

- Shift-click any food to offhand
Shift-clicking any food in your inventory while your offhand is empty will move that food to your offhand.

- Don't shift-click food items with negative effects to offhand
Excludes food with negative effects from shift-clicking to your offhand.

Examples: rotten flesh, raw chicken, spider eye. This won't check suspicious stews because you're not supposed to know their effects. 

- List of items that shift-click to offhand
Shift-clicking items in this list while your offhand is empty will move those items to your offhand.
shift_click_foodoffhand_preferred
Each of these features can be configured either through Mod Menu or by editing .minecraft/config/inventory_control_tweaks.json

The default settings are:

enableArmorSwap: true
armorSwapBlackList: [<empty>]
enablePickFillsStack: true
enablePickNeverChangesSlot: true
ignoreStackNbt: false
dragMatchingStacksAcrossInventories: true
depositCursorStackOnRelease: "AT_EMPTY_SLOT"
dragSingleStackOutOfInventory: true
dragMatchingStacksOutOfInventory: "WITH_KEY"
enableShiftClickToOffhandStack: true
allFoodIsOffhandPreferred: true
excludeFoodWithNegativeEffects: true
offhandPreferredItems: [
    "minecraft:shield",
    "minecraft:firework_rocket",
    "minecraft:totem_of_undying"
]


Translating

If you'd like to contribute a translation, follow this link.
Once approved, a new translation will be available without the need to download an update thanks to CrowdinTranslate.

This mod is only for Fabric (works on Quilt, too!) and I won't be porting it to Forge. The license is MIT, however, so anyone else is free to port it. 
I'd appreciate links back to this page if you port or otherwise modify this project, but links aren't required.