All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Spectra Better Chests

Spectra Better Chests

by yentheoerlemans • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.11
Fabric
9mo ago 1
1.21.4
Fabric
last yr. 1
1.21.x
Neoforge
last yr. 1
1.21.x
Fabric
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Fabric
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Fabric
last yr. 1
1.21
Fabric
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Fabric
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Fabric
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Fabric
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Fabric
last yr. 1
1.21
Fabric
last yr. 1
1.21
Neoforge
last yr. 1
1.21
Fabric
last yr. 1
1.21
Fabric
last yr. 1
Updated to 1.21.11
Updated for 1.21.4
## Bugfix
Spreading items with custom tags didn't create the exact new item in the new stack. This has been fixed now.
## 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] Enchantments & Durability by yentheoerlemans on Jul 19, 2024
Download
## 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](https://cdn.modrinth.com/data/cached_images/83416990c2cba438ee5f880388dc0a7b6a1daad9.png)
[0.1.1+1.21] Enchantments & Durability by yentheoerlemans on Jul 19, 2024
Download
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](https://cdn.modrinth.com/data/cached_images/83416990c2cba438ee5f880388dc0a7b6a1daad9.png)
Some performance increases
More stable release

  • Fix positioning of configuration button in inventory
## Added integration with Cloth Config
The settings screen in the previous versions was something custom made. For this version I have integrated Cloth Config. An API that gives some framework for implementing configuration screens. This also adds integration to Mod Menu. Now you can configure Better Chests via there.

This means a dependency to Cloth Config API is added. The modrinth launcher will add this automatically

### Configuring containers

When you open the configuration screen via the button inside a chest, you get 2 categories. The first one, container, concerns settings for this specific container. When a setting is set to global, it will use the configuration of the global category.

The global category is the default for every container. Because we can't add specific configuration to shulker boxes at the moment, the global configuration is also used for shulker boxes.

#### UI Configuration

Under the global category there are also 2 settings for hiding or showing the sort and configuration buttons. If you don't like how the mod changes the UI you can just turn it off once you have configured your defaults.

I will be adding key bindings in the future, so you can do everything without UI interaction.
## Added integration with Cloth Config
The settings screen in the previous versions was something custom made. For this version I have integrated Cloth Config. An API that gives some framework for implementing configuration screens. This also adds integration to Mod Menu. Now you can configure Better Chests via there.

### Configuring containers

When you open the configuration screen via the button inside a chest, you get 2 categories. The first one, container, concerns settings for this specific container. When a setting is set to global, it will use the configuration of the global category.

The global category is the default for every container. Because we can't add specific configuration to shulker boxes at the moment, the global configuration is also used for shulker boxes.

#### UI Configuration

Under the global category there are also 2 settings for hiding or showing the sort and configuration buttons. If you don't like how the mod changes the UI you can just turn it off once you have configured your defaults.

I will be adding key bindings in the future, so you can do everything without UI interaction.
[0.0.6+1.21] Shulker support by yentheoerlemans on Jul 06, 2024
Download
### Shulker support
Can sort shulkers now.
Configuration may be added later.

[0.0.6+1.21] Shulker support by yentheoerlemans on Jul 06, 2024
Download
### Shulker support
Can sort shulkers now.
Configuration may be added later.

### Changed the layout of the configuration screen

All elements on the configuration screen are more centered now.
[0.0.5+1.21] Fixed barrel configuration by yentheoerlemans on Jul 06, 2024
Download
### Fixed barrel configuration

In the previous version, configuration only saved on a chest, now configuration is also saved on a barrel.

### Changed the layout of the configuration screen

All elements on the configuration screen are more centered now.
[0.0.4+1.21] Configuration added by yentheoerlemans on Jul 03, 2024
Download
## Configuration

An extra button has been added to the container screen. This opens a settings screen that will be saved to the chest that is currently being interacted with.

### Spread

When enabled the contents will spread over rows or columns depending on the space available and amount of distinct item types.

### Sort on close

When enabled, will run the sorting function when the chest is closed.
You can quickly throw all your items inside of the chest and run away. Next time when you come back, the chest will be sorted.
[0.0.4+1.21] Configuration added by yentheoerlemans on Jul 03, 2024
Download
## Configuration

An extra button has been added to the container screen. This opens a settings screen that will be saved to the chest that is currently being interacted with.

### Spread

When enabled the contents will spread over rows or columns depending on the space available and amount of distinct item types.

### Sort on close

When enabled, will run the sorting function when the chest is closed.
You can quickly throw all your items inside of the chest and run away. Next time when you come back, the chest will be sorted.
[0.0.3-1.21] Initial release by yentheoerlemans on Jun 23, 2024
Download
No changelog was specified.
[0.0.3-1.21] Initial release by yentheoerlemans on Jun 21, 2024
Download
No changelog was specified.
[0.0.2-1.21] Initial release by yentheoerlemans on Jun 21, 2024
Download
No changelog was specified.
[0.0.2-1.21] Initial release by yentheoerlemans on Jun 20, 2024
Download
No changelog was specified.
[0.0.2-1.21] Initial release by yentheoerlemans on Jun 19, 2024
Download
No changelog was specified.
[0.0.1] Initial release by yentheoerlemans on Jun 18, 2024
Download
No changelog was specified.
Spectra Better Chests Icon
Download Spectra Better Chests
Select game version
Select platform