跳到正文

Item Finder

A client-side Fabric mod for Minecraft 1.21/1.21.1 that helps you locate items stored in nearby containers. It caches container inventories as you open them and displays a HUD with the nearest container holding your target item, along with colored outlines

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Item Finder

Modrinth

Work In Progress — this mod is functional but still in early development. Expect rough edges, missing features, and bugs. Performance is not a priority yet and may be noticeably poor in some situations.

AI Assistance Disclosure — portions of this mod were developed with the help of AI tools (Claude). The code has been reviewed and tested, but keep that in mind.

A client-side Fabric mod for Minecraft 1.21/1.21.1 that helps you locate items stored in nearby containers. It caches container inventories as you open them and displays a HUD with the nearest container holding your target item, along with colored outlines rendered directly in the world.

How It Works

Item Finder is client-side only — it does not require a server-side counterpart and works on both singleplayer and multiplayer. The trade-off is that containers must be visited at least once before they appear in search results. When you open a container, its contents are automatically recorded. When you close it, the cache is updated and a new search runs immediately.

A periodic background search re-runs every N ticks (configurable) so that distances stay current as you move around.

Server Support (Optional)

For a better experience on servers, Litematica can be installed on the client alongside Item Finder. When Litematica is present, it enables finding items in containers near the player without needing to manually open each one.

However, this requires Servux to be installed on the server and the entityDataSync option to be enabled in the server-side Servux configuration. Without that, only the standard visit-and-cache approach will work.

Features

HUD Overlay

  • Displays the current target item with its icon
  • Shows the distance to the nearest container holding that item (e.g. 12.5m)
  • Shows how many containers hold that item (e.g. 3 boxes)
  • Shows your current position in the active list (e.g. [4/25])
  • Color-coded status: green = found, red = not found, gray = disabled
  • Possition configurable in settings (top-left, top-right, bottom-left, bottom-right) is aware of other HUD elements and won’t overlap the vanilla potions/status effects area etc

World Rendering

  • Draws box outlines around the nearest containers in the world
  • Green boxes for the currently selected item’s containers
  • Optional show through walls mode (toggle in settings)

Container Caching

  • Automatically records container contents when you open and close them
  • Stores item IDs and quantities for every slot (excludes your player inventory)
  • Cache persists for the session; containers remain tracked until the game restarts

Search & Distance Filtering

  • Configurable search radius (4–128 blocks, default 32)
  • Results sorted by distance, nearest first
  • Search automatically refreshes on a configurable interval (1–200 ticks, default 20)

Item Lists

  • Load item lists from JSON files in config/itemfinder/lists/
  • Each list is a named collection of item IDs
  • Toggle individual items on/off; state is saved per list between sessions
  • Navigate items with a hotkey (cycles through enabled items)
  • Auto-disable missing: disables all items that aren’t found in any cached container
  • Enable All / Disable All buttons in the item manager

Slot Highlighting

  • When you open a container that holds your current target item, matching slots are highlighted in green
  • Toggle-able in settings

Item Manager GUI

  • Shows all items in the active list with icons, counts, container count, and nearest distance
  • Searchable/filterable list
  • Per-item toggle buttons
  • Summary stats: total items, enabled, disabled, found

File Browser

  • Browse and load .json list files from config/itemfinder/lists/
  • Navigates subdirectories

Config Screen

Accessible from Mod Menu or via hotkey. Two tabs:

  • Generic — all numeric and boolean settings
  • Hotkeys — view and rebind all keybindings

Keybindings

| Action | Default Key | Description |
|—|—|—|
| Open List Browser | I | Browse and load an item list file |
| Next Item | N | Cycle to the next enabled item |
| Previous Item | B | Cycle to the previous enabled item |

All keybindings are configurable in the Hotkeys tab of the settings screen.

Configuration

Config file: config/itemfinder.json

| Setting | Default | Range | Description |
|—|—|—|—|
| searchRadius | 32 | 4–128 | Block radius to include cached containers in results |
| searchInterval | 20 | 1–200 | Ticks between automatic search refreshes |
| showThroughWalls | false | — | Render container outlines through solid blocks |
| highlightSlots | true | — | Highlight matching slots in open containers |

Item List Format

Place .json files in config/itemfinder/lists/. Example:

{
  "name": "My List",
  "items": [
    "minecraft:diamond",
    "minecraft:iron_ingot",
    "minecraft:oak_log"
  ]
}

Item IDs follow the standard namespace:item_id format.

File Locations

| File | Purpose |
|—|—|
| config/itemfinder.json | Main configuration |
| config/itemfinder/lists/*.json | Item list definitions |
| config/itemfinder/state.json | Per-item enabled/disabled state |

Building

Requires JDK 21.

./gradlew build

The output jar will be in build/libs/.

TODO

Container & Data

  • Improve Litematica/Servux integration for syncing container data around the player.

Useful Links

Fabric Docs

  • https://maven.fabricmc.net/docs/fabric-api-0.141.3+1.21.11/
  • https://maven.fabricmc.net/docs/fabric-loader-0.18.6/net/fabricmc/api/package-summary.html
  • https://maven.fabricmc.net/docs/yarn-1.21.11+build.4/
  • https://docs.fabricmc.net/develop/

Libraries (Minecraft 1.21.11)

  • MaLiLib (fork): https://github.com/sakura-ryoko/malilib/tree/LTS/1.21.11
  • Servux (fork): https://github.com/sakura-ryoko/servux/tree/LTS/1.21.11

Maven Repositories

  • MaLiLib: https://masa.dy.fi/maven/sakura-ryoko/fi/dy/masa/malilib/malilib-fabric-1.21.11/
  • Servux: https://masa.dy.fi/maven/sakura-ryoko/fi/dy/masa/servux/servux-fabric-1.21.11/

License

LGPLv3 — see LICENSE.

常见问题

Item Finder 支持哪些 Minecraft 版本?

Item Finder 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Item Finder 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

mateusfilipe2k2 的其他作品

查看全部 →