Potion Stacker [1.14+] BETA 1.1

  • check_circle Functions
  • check_circle Loot Tables
  • 8
  • 8
  • 13
avatar Eglaios
Level 36 : Artisan Miner
Have you ever wanted to stack these bulky potions occupying most of your slots?
I guess this is just the right place for that :

This datapack will allow you to stack same potions together, as simple as that!

The pack is now on Beta 1.1! Every regular potions (but water bottles) are now supported!

Mechanics :

Merging potions

Drinking stacked potions


Special thanks to Cloud Wolf, who describe how to add dynamic item data using shulker box trick in its video :

Any feedback is welcome to improve this pack while there is only few supported potions!

Thank you!

CompatibilityMinecraft 1.14
toMinecraft 1.16

1 Update Logs

Update #1 : Beta 1.1 : 05/27/2020 3:50:10 pmMay 27th

-Every single 38 regular potions are added into the pack

-When the player drinks, the pack checks if the slot does not contain a valid potion in order to give modified potion back. Before, it checked if there was a glass bottle (planning to do same for throwable potions)

-The commands to assign held potion IDs are now in eglaios_pstacker:detection/held_potion and are only triggered if one holds a potion. Before, they were all in eglaios_pstacker:main (there were only 2 potions supported)

-Added potion library for merging potions in eglaios_pstacker:merge_potions. Planning to add lingering an splash library here as well

06/10/2020 7:30 pm
Level 1 : New Miner
Hey this looks great, but i was thinking if you could make another one too that instead of making this, that makes the stack limit change, for example have 5 potions in the hand, like the /replaceitem in vanilla, but instead a datapack that allows you to have them together, like the plugins that pvp server use, but a datapack? Thanks!!!
06/03/2020 3:24 am
Level 2 : Apprentice Explorer
Very nice this makes potions worth it xD no more trying to use a shulker box to keep some. Now I can have all of them together!

I wonder if there might be away to do this with totems, that would be very nice!
06/05/2020 12:03 pm
Level 36 : Artisan Miner
Totems? I could not make dragon breath overstackable, but ye, I think I could make totems stack as well!

I actually took a pause because of some hardware problems. I have still some gun systems to make for a forum user, so I might go back on the pack update in one or two days...
06/01/2020 6:40 am
Level 1 : New Miner
Wait... WHAT !!!?
et pourquoi je m’embète à parler en anglais alors que tu parles français? Jsp mais le truc que je me demande c’est comment tu peut te vanter d’avoir fait Le meilleur truc du monde ?nn j’rigole mdr 😝
and for everybody who understands nothing i said :

05/28/2020 10:20 pm
Level 39 : Artisan Crafter
(mind blown)

Seriously though, this is really amazing... since I actually don't know how it works.
05/29/2020 6:53 pm
Level 36 : Artisan Miner
The greatest trick was to detect what potion the player drank and in what hand, although the potion disappears once you drink it.

As quick as that, the pack keeps in memory what potion the player had last tick in each hand.
When you drink a leaping potion in left hand, the pack sees that you were holding it on left last tick, and as you lost it on the same tick you drank, it knows you drank it, and give it back.

When the potion is given back, it clears the item in hand; switching your potion with a sword at the same tick you drank it was deleting the sword.
However, beta 1.1 now stores the replaced item, and give it back once the potion delete it.

Of course, it can not copy the potion's data as it's gone; stack size and potion id are both stored as player score

There's a system using shulker box loot table and json signs behind to give back modified items in the right slot

Uh I didn't say it but it's perfectly working in multiplayer
05/29/2020 9:50 pm
Level 39 : Artisan Crafter
(by the way this may sound disappointing, but you could've just changed the stack size lol)
drinking 1 potion from a stack of 64 does exactly what you want it to without all the commands
06/01/2020 2:28 pm
Level 36 : Artisan Miner
Well the fun part comes when you get thousands of potions in your hand... I wanted to be able to take all potions together (still a limit of 2B though)
06/01/2020 11:32 pm
Level 39 : Artisan Crafter
I feel like no one’s gonna go out of their way to get 700 MILLION material stuff lol
05/28/2020 8:22 am
Level 12 : Journeyman Dragon
will this work with dragons breath? I have tons of dragons breath and i don't want to have a million chests for all of them?
05/28/2020 8:39 pm
Level 36 : Artisan Miner
Well... to be honest, I haven't planned to add dragon breath for 3 main reasons :

-It already stacks as 64 items
-It is a resource, and so, you don't need to keep that on you. The pack is basically made to hold a higher amount of useful potions in inventory while freeing slots, though not improve chest storage, as you can simply add more containers.
-Greatest problem : dragon breath is used in brewing stands; as they don't support custom stack size, I would have to make a quite big system only to prevent data loss when brewing a custom-stacked dragon breath.

Sadly, this would not be the right pack for reducing space taken by dragon breaths. I would suggest you to look at datapacks based on overall storage for that.
05/25/2020 1:58 am
Level 1 : New Network
What's next? Stackable throwable potions?
05/25/2020 10:02 pmhistory
Level 36 : Artisan Miner
I am planning in that order :

1. Removing the "fast switch" glitch described in Specs [​solved beta 1.1]
2. Preventing stacks to get over 2.147.483.639 (this one might be tough, and not even sure if the pack needs it...)
3. Add every drinkable potion types [​done beta 1.1]
4. Add every lingering and splash potions

I think the regular potions will all be in the pack around june 1st [​of course, and even a bit sooner] , but I don't know how much time it is gonna take to add throwable potions, as they can be thrown at 1/tick rate, so there will probably be some issues here.
Planet Minecraft Logo


© 2010 - 2020