Перейти к содержимому
Mineforgian

Spectra Better Chests

Adds inventory sorting. One of the biggest missing features from Minecraft.

Загрузки
15K
Подписчики
49
Обновлён
2 февраля 2026 г.
Лицензия
Apache-2.0

Опубликован 18 июня 2024 г.

Исходный код

In my opinion any game with an inventory should have a way of sorting said inventory. That is exactly what this mod adds.

You get a button to sort manually but you can also configure any chest to sort on close or set that as the default configuration.

The sorting is done according to different algorithms based on the available space in the container and the amount of different types of items. It will initially try to fill based on the amount of rows. A double chest has 6 rows, if you have 5 different types of items and none of those exceed 9 stacks (because we have 9 columns), we will put eacht type of item in a row.

4 different item types sorted in rows, with the spread option enabled.

If we exceed those 6 rows, we will try to fit it in columns.

7 different item types, so we sort by column.

If we can't fit it into colums as well, we just put all the items ordered from left to right and top to bottom.

In any case, non-full stacks are merged with other non-full stacks of the same item type.

We also sort based on durability. The item with the least amount of damage will be first, the rest will follow in descending order.

Bows in descending order based on their durability.

Ченджлог

0.1.2+1.21.11Релиз1.21.11 · 2 февраля 2026 г.

Updated to 1.21.11

0.1.2+1.21.4Релиз1.21.4 · 22 декабря 2024 г.

Updated for 1.21.4

0.1.2+1.21Релиз1.21, 1.21.2, 1.21.3 · 20 июля 2024 г.

Bugfix

Spreading items with custom tags didn't create the exact new item in the new stack. This has been fixed now.

0.1.2+1.21Релиз1.21.1, 1.21.2, 1.21.3 · 20 июля 2024 г.

Bugfix

Spreading items with custom tags didn't create the exact new item in the new stack. This has been fixed now.

0.1.1+1.21Бета1.21 · 19 июля 2024 г.

Enchantments

If place permits, enchantments will form their own group (column(s) or row(s)) and the group itself will be sorted based on the level of the enchantments. At the moment this works correctly for single enchantments but for multiple enchantments the order matters. This may be addressed later.

Durability

Items that are damaged will be sorted according to that damage in the group of the same items.Sorting bows based on the damage

0.1.1+1.21Бета1.21 · 19 июля 2024 г.

This update only changes server side logic. If you are running client and server seperately, you only need to update the server. Updating both is always good of course.

Enchantments

If place permits, enchantments will form their own group (column(s) or row(s)) and the group itself will be sorted based on the level of the enchantments. At the moment this works correctly for single enchantments but for multiple enchantments the order matters. This may be addressed later.

Durability

Items that are damaged will be sorted according to that damage in the group of the same items.Sorting bows based on the damage

0.1.0+1.21Релиз1.21 · 17 июля 2024 г.

Some performance increases

0.1.0+1.21Релиз1.21 · 17 июля 2024 г.

More stable release

  • Fix positioning of configuration button in inventory

Комментарии

Загружаем…