跳到正文

Filter Chest Setup

作者:DeeKahy

One click fills an open chest into a filter layout: shears in the corner, a configurable filter item everywhere else. Client side, works on any server.

收藏

介绍

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

Filter Chest Setup

A client-side Fabric mod that fills a chest into a filter layout with one click, using items from your inventory. It’s for servers where a filter or sorter chest has to be stocked in a fixed pattern to hit a specific comparator signal strength.

Open a chest or barrel and two buttons show up next to the container window:

  • set up as filter? arranges the chest.
  • pick filter item sets which item is used as the filter.

What it does

Clicking set up as filter? lays out the open container like this:

  • The last 3 slots each get 1 shears (shears don’t stack, so they take a slot each).
  • The slot just before them gets 5 filter items.
  • Every slot before that gets 1 filter item.

On a double chest that’s 3 shears and 55 filter items.

Items are moved out of your own inventory with normal container clicks, the same as if you placed them by hand, so it works on any server with no server-side mod. If you don’t have enough items it tells you what’s missing and does nothing.

Empty the chest first. Slots that already have something in them are left alone.

Choosing the filter item

The default filter item is a poppy renamed to Filter. To use something else:

  1. Put the item on your cursor, or select it on your hotbar. Rename it in an anvil first if you want the name to be required.
  2. Click pick filter item.

The item and its custom name, if it has one, get saved. With no custom name, any stack of that item counts. With a custom name, only stacks with that exact name count.

You can also edit config/filterchest.json directly:

{
  "filterItemId": "minecraft:poppy",
  "filterItemName": "Filter",
  "shearsInCorner": 3,
  "filterNextToCorner": 5
}

Leave filterItemName empty ("") to match the item no matter its name.

Signal strength

The layout is fixed on purpose. A filter chest usually needs an exact comparator signal, and that value depends on the items you use, since different items have different stack sizes and fill the container differently. The mod doesn’t calculate signal strength for you, it just reproduces a layout you already know works. Swapping the filter item for one with a different stack size changes the resulting signal, so pick an item that gives the value your setup needs.

Building

Needs JDK 21 or newer (the game targets Java 25). The build uses Unimined with Mojang mappings.

./gradlew build

The jar lands in build/libs/filterchest-<version>.jar. Drop it in your mods folder.

License

MIT. See LICENSE.

常见问题

Filter Chest Setup 支持哪些 Minecraft 版本?

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

Filter Chest Setup 怎么安装?

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

评论

登录后评论和评分

DeeKahy 的其他作品

查看全部 →