- check_circle Functions
- 11,756 views, 4 today
- 1,257 downloads, 0 today
16
Did you ever want to stack anything per 64? Enderpearls? Totems of undying? Potions? Or perhaps your shulker boxes filled of dirt and stone?
Well, there is something that will make your dreams come true :
The Quick Stacker datapack
As soon as it is activated, the Quick Stacker datapack allows you to stack any item in your inventory with a stack limit of 64, no matter what item you want to stack.
The process is simple at which point you can even stack your items while running, and this, without getting spammed with status notifications!
If you want to look behind the files, I use to annotate every single function in my packs since some time ago. Feel free to take a look on this one as on my others ; every command is explained briefly, and I also write in every function from where it is called.
Of course, if you share this pack or any part of its content, please ensure you specify that this is Eglaios' work...
Yes, I am adding color to my submissions, and I do it by hand, without any automatic thing. I think this helps readability (One of my specs is to always throw bunches of boring text -I'm not old >:-( -), and make people see that you actually care about what you are posting. We got some time now, so why not...
If it was not a good idea, please tell me!
I don't like background color, however. looks too cheap.
It was quite a funny way to get at this point... I started by making a potion stacker datapack. While improving it, I saw I could in fact stack every single item in the game using another pack,... then finally, came up to there, with a super-fast stacking datapack.
Hope it won't go further again...
Special thanks to every single member who leave constructive comments that help improving datapacks, for me as for any other. I came here thanks to your suggestions and am really grateful.
This datapack will eventually teach you why minecraft will never set unstackable items as stackable ^,_,^ .
Hope you'll enjoy!
Well, there is something that will make your dreams come true :
The Quick Stacker datapack
Disclaimer
I consider this pack as an update of my Overstacker datapack that I posted yesterday (which is itself considered as the evolution of my potion stacker datapack, oh boy...).
Though they do pretty much the same thing, I made this update from scratch, and, even if their utilities are quite similar, their structures are completely different.
And so, I though it would be better to keep the old (well, 1 day old) overstacker datapack on another page, to leave a track on the evolution of the... "stacker series", and allow people to explore the packs files, as I annotated both.
-You would admit releasing an update from scratch within 24 hours is quite good-
Despite of leaving the Overstacker as it is, I strongly recommend to use the Quick Stacker datapack (This one) : It makes the process way more easier and safer, as the Overstacker one have still a couple issues.
If you were already using the Overstacker datapack, you could remove it without any problem to use this one insead ; already stacked items will stay as they are.
Though they do pretty much the same thing, I made this update from scratch, and, even if their utilities are quite similar, their structures are completely different.
And so, I though it would be better to keep the old (well, 1 day old) overstacker datapack on another page, to leave a track on the evolution of the... "stacker series", and allow people to explore the packs files, as I annotated both.
-You would admit releasing an update from scratch within 24 hours is quite good-
Despite of leaving the Overstacker as it is, I strongly recommend to use the Quick Stacker datapack (This one) : It makes the process way more easier and safer, as the Overstacker one have still a couple issues.
If you were already using the Overstacker datapack, you could remove it without any problem to use this one insead ; already stacked items will stay as they are.
As soon as it is activated, the Quick Stacker datapack allows you to stack any item in your inventory with a stack limit of 64, no matter what item you want to stack.
The process is simple at which point you can even stack your items while running, and this, without getting spammed with status notifications!
If you want to look behind the files, I use to annotate every single function in my packs since some time ago. Feel free to take a look on this one as on my others ; every command is explained briefly, and I also write in every function from where it is called.
Of course, if you share this pack or any part of its content, please ensure you specify that this is Eglaios' work...
1. How to stack items
Stacking items is as simple as that (see video for demonstration) :
-1. Look at your feet
-2. Sneak. If it doesn't tell you anything, repeat step 1 but make sure you look all downwards
-3. Take the item you want to stack in your right hand. It doesn't matter on steps 1. or 2.
-4. While still looking down, release sneak. If you have items matching the one into your hand in your inventory (all slots excepted armor), they will be stacked together.
As simple as that! Nothing needed at all, and this works with anything, including normally unstackable items! Make sure they are exactly same though, or they will not stack.
This way is specific enough as well to prevent you accidentaly triggering it all the time.
-1. Look at your feet
-2. Sneak. If it doesn't tell you anything, repeat step 1 but make sure you look all downwards
-3. Take the item you want to stack in your right hand. It doesn't matter on steps 1. or 2.
-4. While still looking down, release sneak. If you have items matching the one into your hand in your inventory (all slots excepted armor), they will be stacked together.
As simple as that! Nothing needed at all, and this works with anything, including normally unstackable items! Make sure they are exactly same though, or they will not stack.
This way is specific enough as well to prevent you accidentaly triggering it all the time.
2. The items don't stack if...
-The datapack is not activated #Einstein
-You are not holding any item
-You have no matching items in your inventory
-You have matching items, but only in your armor slots, which are not checked by the system
-You have matching items, but they are not identical (damage, name, enchantments, potion effect, content,...)
-You were not looking down when you started sneaking
-You were looking down enough when sneaking, but aren't any more when you release the sneak
-You are not holding any item
-You have no matching items in your inventory
-You have matching items, but only in your armor slots, which are not checked by the system
-You have matching items, but they are not identical (damage, name, enchantments, potion effect, content,...)
-You were not looking down when you started sneaking
-You were looking down enough when sneaking, but aren't any more when you release the sneak
3. Pack specs
-Fully multiplayer compatible
-Made to be compatible with other datapacks : Each tag and objective name start by "EQs_" and each dummy player name by "$EQs_"
-The stacking process runs into a single tick
-The only entities used are items, which are summoned at the player to be instantly picked up. If by any chance the player can not pickup all of them (ex. all slots are filled with stackable items, and offhand does not automatically pickup), remaining items will simply stay on the ground.
-In case of a player who wants to stack items while swimming in lava (yes! I thought about such thing!), I made the returned item entities invulnerable, so they don't burn before being picked up.
-When browsing the player inventory, the pack uses a storage file to store data. Thus, only one player can be stacking at a time...
-...however, I included a queue system : in case of more than one player who wants to stack on the same tick, the stacking system will run again and again until all requests are fulfilled, all in one single tick (Will this ever happen?)
-Yes, I also thought about the case when the player gets trapped into an interdimensional vortex where every minecraft physic is broken... did not do anything for that, though...
-As you have to target an inventory slot by its precise name to replace it, I had to make one file for each slot (38, one more for selected item)
-Made to be compatible with other datapacks : Each tag and objective name start by "EQs_" and each dummy player name by "$EQs_"
-The stacking process runs into a single tick
-The only entities used are items, which are summoned at the player to be instantly picked up. If by any chance the player can not pickup all of them (ex. all slots are filled with stackable items, and offhand does not automatically pickup), remaining items will simply stay on the ground.
-In case of a player who wants to stack items while swimming in lava (yes! I thought about such thing!), I made the returned item entities invulnerable, so they don't burn before being picked up.
-When browsing the player inventory, the pack uses a storage file to store data. Thus, only one player can be stacking at a time...
-...however, I included a queue system : in case of more than one player who wants to stack on the same tick, the stacking system will run again and again until all requests are fulfilled, all in one single tick (Will this ever happen?)
-Yes, I also thought about the case when the player gets trapped into an interdimensional vortex where every minecraft physic is broken... did not do anything for that, though...
-As you have to target an inventory slot by its precise name to replace it, I had to make one file for each slot (38, one more for selected item)
Yes, I am adding color to my submissions, and I do it by hand, without any automatic thing. I think this helps readability (One of my specs is to always throw bunches of boring text -I'm not old >:-( -), and make people see that you actually care about what you are posting. We got some time now, so why not...
If it was not a good idea, please tell me!
I don't like background color, however. looks too cheap.
It was quite a funny way to get at this point... I started by making a potion stacker datapack. While improving it, I saw I could in fact stack every single item in the game using another pack,... then finally, came up to there, with a super-fast stacking datapack.
Hope it won't go further again...
Special thanks to every single member who leave constructive comments that help improving datapacks, for me as for any other. I came here thanks to your suggestions and am really grateful.
This datapack will eventually teach you why minecraft will never set unstackable items as stackable ^,_,^ .
Hope you'll enjoy!
Compatibility | Minecraft 1.15 |
to | Minecraft 1.16 |
Tags |
1 Update Logs
Update #1 (v1.0.1) : by Eglaios 06/17/2020 12:36:51 pmJun 17th, 2020
- Removed useless directories
- Added warning message telling stacked tools get modified together as one
- Added changelogs directory (lol)
tools/tracking
4638337
119
eglaios-s-quick-stacker-datapack-highly-optimized-overstacker
Create an account or sign in to comment.
At the very beginning, I was wondering if I could make water bottles stackable for a thirst system of mine, then I got the idea of potion stacker, the first pack of the "stacking" series...
you can delete the empty folders nothing happens.