Back to mods
AI Inventory Sorter project artwork

CurseForge · Minecraft mod

AI Inventory Sorter

Adds a small button that lets AI sort your inventory

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which AI Inventory Sorter release should I use?

Updated 6 months ago
Latest stable file v0.0.1
Game version 1.21.11
Loader Fabric

AI Inventory Sorter v0.0.1 targets 1.21.11 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is AI Inventory Sorter required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does AI Inventory Sorter v0.0.1 need?

v0.0.1. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by AI Inventory Sorter v0.0.1
required
Matching file found Matched file: [1.21.11] Fabric API 0.141.6+1.21.11

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add AI Inventory Sorter without breaking your instance.

Built for AI Inventory Sorter v0.0.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use v0.0.1. It targets 1.21.11 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside v0.0.1. It opens that exact file at the source.

About this project

What does AI Inventory Sorter add?

AI Inventory Sorter

AI Inventory Sorter is a Minecraft mod that automatically organizes your inventory using AI. It places items in the optimal slots, ensuring your hotbar and main inventory are efficiently arranged for gameplay.


Features

  • Hotbar & Main Inventory Sorting
    Automatically assigns items to the most appropriate hotbar and inventory slots, following a strict priority order for weapons, tools, armor, utility items, and food.

  • Intelligent Sectioning

    • Left Third: Shulker boxes and storage items
    • Middle Third: Tools, weapons, armor, blocks, and miscellaneous items
    • Right Third: Food and consumables
  • Shulker-Aware
    Reads shulker box contents for context but always places the box in the designated storage section.

  • AI-Powered JSON Mapping
    Uses Ollama GPT-OSS 20B Cloud model to generate slot mappings.

  • Robust Parsing
    Automatically handles code fences and extraneous text in AI responses, preventing JSON parsing errors.


Requirements

  • Minecraft 1.21.11
  • Fabric Loader
  • Fabric API
  • Ollama API key

Installation

  1. Place the mod .jar into your mods/ folder.
  2. Configure your Ollama API key in config/aiinventorysort.json.
  3. Launch Minecraft.

FAQ

Q: How do I assign an Ollama API key?
A: Add your API key to config/aiinventorysort.json under apiKey.

Q: Does it support modded items?
A: Yes. The AI will classify modded items such as spears or custom tools according to your defined rules.

Q: What if the AI produces invalid JSON?
A: The mod automatically cleans code fences and extracts the JSON array, preventing MalformedJsonException.

Q: Can I customize slot priorities?
A: Hotbar and main inventory rules are built-in. Advanced users can modify the source code to change priorities, though this is not recommended. I do hope to add this feature soon.

Q: Why did nothing happen to my inventory after the AI finished? A: This is a known bug. Try closing your inventory after clicking the sort button.

Q: How long should it take to sort? A: With a full inventory, it might take up to 15-20 seconds. For a small inventory, you are looking at 5-10 seconds.

Q: Where is my config file? A: If there is no config file, create a file at /config in your instance's directory (click the folder button in Modrinth), name the file aiinventorysort.json and paste this in:

{
  "apiKey": "API_KEY_HERE",
  "snapshotLayout": [],
  "hotbarPins": {},
  "showButtons": true
}

Support

For bug reports or feature requests, feel free to contact me at: scdrichards2012@outlook.com

Project description from CurseForge.

Pick your setup

AI Inventory Sorter by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

AI Inventory Sorter versions and loaders

1 of 1 releases match

Looking for an older file? The official CurseForge project page is in Resources.