- check_circle Functions
- 31,864 views, 39 today
- 5,655 downloads, 3 today
11
Inspired from the infamous mod with the same name, I created this Inventory Tweaks datapack, featuring:
- Auto resupply
Tools, blocks and food are automatically resupplied from inventory when broken or when the stack is depleted.
- Sorting inventory
Double click the first slot in your inventory to sort. To double click a slot, that slot must be empty and you must have an item in your cursor.
- Sorting containers
Look at the container (chests, barrels, shulker boxes) and double click the second slot in your inventory to sort the container. Double chests are supported.
- Transferring items to containers
Look at the container and double click the third slot in your inventory to transfer items from your inventory to the container, then sort both your inventory and the container.
- Admin tools
Run function inventory_tweaks:config to enable/disable certain settings. If you experience lag spike when sorting containers, consider disable checking for double chests.
Run function inventory_tweaks:log to get the history of sorting of players. This history is reset when it's get and on load/reload.
- Cross-packs support
To specify the sorting order for your custom item, add the numeric inventory_tweaks.id tag to your item, ids from 0 to 2000 are reserved for vanilla items. This also prevent your item from being picked when resupplying vanilla items.
If your pack destroys main hand item in some ways and want it to be resupplied, run the function inventory_tweaks:replace/custom if it's an item with custom id and inventory_tweaks:replace/vanilla/<item id> if it's a vanilla item before the item is destroyed.
- Auto resupply
Tools, blocks and food are automatically resupplied from inventory when broken or when the stack is depleted.
- Sorting inventory
Double click the first slot in your inventory to sort. To double click a slot, that slot must be empty and you must have an item in your cursor.
- Sorting containers
Look at the container (chests, barrels, shulker boxes) and double click the second slot in your inventory to sort the container. Double chests are supported.
- Transferring items to containers
Look at the container and double click the third slot in your inventory to transfer items from your inventory to the container, then sort both your inventory and the container.
- Admin tools
Run function inventory_tweaks:config to enable/disable certain settings. If you experience lag spike when sorting containers, consider disable checking for double chests.
Run function inventory_tweaks:log to get the history of sorting of players. This history is reset when it's get and on load/reload.
- Cross-packs support
To specify the sorting order for your custom item, add the numeric inventory_tweaks.id tag to your item, ids from 0 to 2000 are reserved for vanilla items. This also prevent your item from being picked when resupplying vanilla items.
If your pack destroys main hand item in some ways and want it to be resupplied, run the function inventory_tweaks:replace/custom if it's an item with custom id and inventory_tweaks:replace/vanilla/<item id> if it's a vanilla item before the item is destroyed.
Credit | Thanks to Ael and SirBenet for the tags, Arcensoth for the mcdata repository and energyxxer for the awesome Trident program |
Compatibility | Minecraft 1.17 |
Tags |
3 Update Logs
Update #3 : by nphhpn 08/26/2021 12:08:42 pmAug 26th, 2021
Remove the leftover debug code
LOAD MORE LOGS
tools/tracking
5251993
119
inventory-tweaks-auto-resupply-and-sorting
Create an account or sign in to comment.
I love this datapack.
As another commenter just mentionned, the sorting is broken in 1.18 (delete chest inventory :( )