Max stack number of potions?

I wonder if there's already a plugin has that feature.
For example, you have 99 potions, but each stack can have only 10 potions. So your inventory looks like this:

potion 10
potion 10
potion 10
potion 10
potion 10
potion 10
potion 10
potion 10
potion 10
potion 9
you get partially there with the independent items of yanfly's item core, but some modifying would have to be done.
it would be possible to fake it and have each potion have "10 charges" though the item core without changes, but to actually have 99 and group them together in stacks of 10 and start a new stack when there are none/the last one is full would require an edit or an entirely new plugin.
Id imagine even if a new plugin would be made, itd be easier to piggyback off of the independent item system to have the multiple stacks to begin with
Oh so it is like magazines. Maybe I should rethink that idea. If so I can forgot the last 9 potions limit and try another way to limit the size of the inventory.

Original thread: https://forums.rpgmakerweb.com/threads/max-stack-number-of-potions.170736/