Minecraft Data Packs / Adventure

Eglaios' Quick Stacker datapack v1.0.1

  • check_circle Functions
  • 6,497 views, 18 today
  • 795 downloads, 1 today
  • 22
  • 22
  • 14
Eglaios avatar Eglaios
Level 43 : Master Miner
12
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



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.



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.


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


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)


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!
CompatibilityMinecraft 1.15
toMinecraft 1.16
Tags

1 Update Logs

Update #1 (v1.0.1) : 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)

Create an account or sign in to comment.

1
08/22/2020 8:57 am
Level 11 : Journeyman Explorer
Crow Hawkins
Crow Hawkins avatar
I followed the instructions, had 4 stacks of 16 ender pearls in my inventory, 1 stack was in my hand, and when I stopped sneaking, my whole stack of level 3 fireworks was gone and the pearls were still there as 4 stacks of 16.
1
08/22/2020 9:02 am
Level 11 : Journeyman Explorer
Crow Hawkins
Crow Hawkins avatar
Yeah, it's over-writing inventory spots, not working but great try.
1
08/22/2020 9:00 am
Level 11 : Journeyman Explorer
Crow Hawkins
Crow Hawkins avatar
I tried it again with shovels, it flashed 10 but then I only had 3 unstacked shovels and it deleted my fireworks again. Do I need an EMPTY inventory to try this?
1
06/16/2020 2:51 pm
Level 1 : New Miner
garfield_YT
garfield_YT avatar
n i c e
2
06/15/2020 4:03 am
Level 44 : Master Explorer
CowsDaBest_YT
CowsDaBest_YT avatar
Very epic my guy!
2
06/15/2020 12:09 pm
Level 43 : Master Miner
Eglaios
Eglaios avatar
Uh thanks... prismatic mode? xD
2
06/14/2020 9:27 am
Level 17 : Journeyman Modder
leyxcx
leyxcx avatar
this'll be so helpful for modpacks that require you to drink water to survive, thank you!
2
06/14/2020 9:37 am
Level 43 : Master Miner
Eglaios
Eglaios avatar
Well, you know what?
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...
2
06/14/2020 8:54 am
Level 9 : Apprentice Explorer
_williamab
_williamab avatar
Good Job.
you can delete the empty folders nothing happens.
1
06/17/2020 1:31 pm
Level 43 : Master Miner
Eglaios
Eglaios avatar
Removed on the v1.0.1 update. Thanks!
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome