Minecraft Data Packs / Quality of Life

Inventory Tweaks - Auto resupply and sorting

  • check_circle Functions
  • 5,962 views, 61 today
  • 1,632 downloads, 14 today
  • 22
  • 31
  • 15
nphhpn avatar nphhpn
Level 23 : Expert Miner
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.
CreditThanks to Ael and SirBenet for the tags, Arcensoth for the mcdata repository and energyxxer for the awesome Trident program
CompatibilityMinecraft 1.17

3 Update Logs

Update #3 : 08/26/2021 12:08:42 pmAug 26th

Remove the leftover debug code

Create an account or sign in to comment.

09/22/2021 11:15 pm
Level 1 : New Miner
DragonSummers avatar
the sorting side of this datapack is not working
09/20/2021 7:33 am
Level 1 : New Miner
Is there a way you can make this work with throwable items like Eggs and Snowballs?
08/27/2021 10:56 pm
Level 1 : New Explorer
Sviking avatar
Just there is a Bug, Whenever i place down my crafting table, I always say Hi.
Is that a bug or it is just needed??
08/28/2021 12:56 am
Level 23 : Expert Miner
nphhpn avatar
Did you download the latest version? It should be fixed there
08/21/2021 8:58 pm
Level 1 : New Miner
scachich avatar
do i have to extract the files after downloading first to install then?, because i tried doing that and it took forever, but i tried without doing that and it just didnt work, if not, does it need to be placed in the datapack folder in the state it is right after the download?, btw i use apex hosting with paper 1.17.1, the tuturial there says not to unzip/extract then but it didnt work for me...
08/22/2021 1:32 am
Level 23 : Expert Miner
nphhpn avatar
You don't have to extract the files to install, just put the zip directly inside the datapacks folder (make sure to have the suffix s). If it doesn't work, there could be some plugins you're using that interfere with this datapack
08/20/2021 3:25 pm
Level 1 : New Explorer
Stumpleg_Gaming avatar
Does it work in 1.17.1?
08/20/2021 8:18 pmhistory
Level 23 : Expert Miner
nphhpn avatar
It's made for 1.17 in general, 1.17.1 included
08/20/2021 11:28 am
Level 20 : Expert Mage
Bodrew avatar
Not really getting this pack to function, although could be my fault. And how exactly do you run those functions you're talking about in Admin tools?
08/20/2021 11:40 am
Level 23 : Expert Miner
nphhpn avatar
Make sure you're using 1.17 because this pack is only compatible with 1.17, and make sure you can see this when running /datapack list in chat.
To run a function, just run /function <function name> in chat
Planet Minecraft


© 2010 - 2021