Have you ever wanted to cross a small lava lake and end up using a whole bottle of Fire Resistance potion and felt wasteful for it?
Well, not anymore! This mod adds Potion Capsules that lets you 'split' the duration of a potion into small parts and stores them inside the capsules!
Features Intro
You can store a little part of a potion into a Potion Capsule
You can combine multiple Potion Capsules into one
Put your capsules into a Capsule Pendant to let it auto-use the capsules for you with different triggers
Now with Speical Capsules and new Potion Effects!
Starting The Mod
To start playing with Potion Capsule, you will need a few items:
- Gelatin Extractor
- Gelatin Powder
- Gelatin Former
- Nether Wart Dust
Gelatin Extractor & Gelatin Powder
Extracts Gelatin Powder from bones and leathers
Gelatin Former
Combine Gelatin Powder with another catalyst to craft items
Nether Wart Dust
- Obtained by breaking mature nether wart crops
- Crafted using 1 Nether Wart (disabled by default)
Now, put 2 Gelatin Powder and 1 Nether Wart Dust in a Gelatin Former, and you will get your first Potion Capsules !!!
Potion Capsules
Potion Capsule 
Stores a little part of duration from some potion, you can either consume one to gain the effect or put them into a Capsule Pendant to let it auto-use the capsules for you with different triggers!
Simply craft them with a potion to transfer the effect:
The duration not used will be left in the potion
Capsules will show their effects stored on its display name
You can combine multiple capsules into one:
There is a config option to disable the combination
Can be cleared by putting them inside a crafting grid:
If you want to transfer an Instant Potion Effect, you will need an Instant Potion Capsule instead!
Instant Potion Capsule 
Basically they are the same as normal Potion Capsule, except:
They are not combinable
They use up the entire instant effect when transferring (1 to 1). To increase the output, use the Instant Catalyst while crafting:
Instant Catalyst 
Each Instant Catalyst inside the crafting grid will increase the output by 1
Special Potion Capsules
Only works in Capsule Pendant, there are currently the following types:
- Bite The Dust: Revive you with full health when the player is about to die
- The Lost Christmas: Teleport the player to y=1 when he is falling out of the world
- Sunlight Yellow Overdrive: Place a little light source when it is too dark
Capsule Pendant 
Stores capsules with different auto-triggers to use them!
Currently, there are 8 different triggers and 3 special slots for Special Capsules:
- when the player about to attack
- when the player is being damaged
- when the player is on fire
- when the player is in fluid
- when the player is sprinting
- when the player is falling
- when the player is in dark
- when the player press down the keybinding (default X)
The tiny button beside each slot can toggle the usage message of that slot
Capsules will not get triggered if the pendant is open
Only one of them will function if the player has multiple Capsule Pendants in his inventory
Potions & Effects
Effects
Floating Lilypad 
Make livings float above fluid surface
Thorn 
Hurt those attacking you
Nekomimi Paradise 
Cats will approach you and those Creepers will run away!
Potions
Potion of Floating Lilypad
Potion of Fiery Lilypad (Fire Resistance + Floating Lilypad)
Potion of the Thorns
Potion of Spiky-Obi (Resistance + Thorn)
Potion of Nekomimi Paradise
Other Items & Blocks
Creative Catalyst 
Creative Only, craft with any capsule to make the capsule creative
A Tiny Piece of Cactus 
Brewing Material, has a chance to spawn on a growing cactus
Fiery Lilypad 
Brewing Material, has a chance to spawn on lava lakes in the nether
Spiky Obsidian 
A blast-resistant cactus, or obsidian that hurt entities
Brewing Material
Cat Fur 
Brewing Material, dropped by Cats and Ocelots naturally (Not killing them, keep them in safe)
Wither Dust 
Dropped by killing Wither Skeletons, can be crafted by/into Wither Skeleton Skulls
Apple Jelly 
Always edible
Others
Effect - NightVisionNF 
Since the vanilla Night Vision starts to 'flicker' when its duration is less than a certain amount of ticks, plus that the capsule only gives you a short period of effect, you might encounter some situation that capsules with Night Vision flicker on your screen all the time.
So by default, Night Vision will be replaced by NightVisionNF when it is transferred into capsules. (Can be disabled in config)
Compatibility & Customization
Compatibility
JEI
If you have JEI installed, it will show some information about how some recipes work in-game.
Curios
The Capsule Pendant can be equipped in the necklace Curios slot if you have Curios installed.
Potions & Effects from other mods
Perfectly supported.
Potion Items from other mods
Potion Capsule supports potion items from other mods if their potion effects are serialized into the itemstack using the vanilla approach.
If you want Potion Capsule to recognize the potion item from other mods, simply add a new recipe in your datapack with the type of potioncapsule:capsule_attachment and properly set the entries in it, for more details, look at how the mod does it.
Customization
Gelatin Powders
Both Gelatin Extractor and Gelatin Former support custom recipes, for details, look at here(extractor) and here(former).
Modpacks & License
This mod is protected under the MIT license, as described in the project details and the GitHub source page.
If you want to put this mod into your modpack, just do it, why not?
Credits
Aemande123 - Translate to zh-cn
plan making it for 1.12.2?
In reply to gureiweasel:
I cannot guarantee you, but if that is happening, it will be after the 1.15 port
When placing items into a chest or taking them out, instead of going into a prexisting stack they create a new stack, its just a visual glitch but at one point it messed up the whole game where i had to relog because it wouldnt let me switch out some blocks, I know that it's this mod because i removed every mod and this was the one causing this weird issue. To replicate it, just get a stack of wool in any colour and place one in the chest annd then the other in inventory, then shift click it into chest and you'll notice instead of going into the red wool already in the chest it creates a seperate stack and then when you click it, it goes back into normal stack.
EDIT: Using latest version of the mod (1.2.5) and forge 1.14.4 - 28.1.118
In reply to NomSTee:
Can't reproduce using my setup(PotionCap 1.2.5, forge 28.1.0, single play), will try forge 28.1.118 later.
Are you running on a dedicated server?
EDIT:
Just checked forge 28.1.118, everything worked fine.
Can you provide more details? (The log when the glitch happens, The launcher you are using, Single Play/Running on server, Gamemode, Other mods)
In reply to Hmysjiang:
Hey, yeah just tried replicating it again and it seems to be fine now? if it pops up again ill make sure to grab the logs and send it over.
In reply to NomSTee:
Yeah, it sounds like a random itemstack desync. Might be the network lagged or internal server didn't catch up?
If it happens again, send me your log file, and maybe your world save file.
And post the issue on the Github issue page next time, it's easier to manage these issues there. ; )
THE JOJO REFERENCE IS THE BEST PART WHATTT?????
Tysm!!
I was playing a modpack and listening to Great Dayz (3rd opening for Part 4) and I got the Killer Queen's "bite the dust" capsule and I almost cried!!
In reply to itzhxppy:
There are more refs waiting for ya !
; )
Awesome! Please make it compatible with baubles.
In reply to spleen_vitals:
Is Baubles ported to 1.14.4? If you mean Curios API, PotionCapsule already supports that!
Does this Mod works for Servers too? I tried to get it running but whenever i craft/take a pendant my game crashes, only inMultiplayer though.
Is there a solution for this?
In reply to Forge_User_13350676:
It should work in both single and multiplayer.
Would you mind open an issue in the issue tracker and provide your crash log so that I can investigate what happened?
In reply to Forge_User_13350676:
I think the issue you mentioned should be fixed in version 1.1.4.
The idea is marvelous, congrats
Wouldn't a pendant trigger for "in darkness" be more useful/functional than "at nighttime"? Currently, the "at nighttime" slot will trigger when in a lit area at night (i.e. indoors), but not when in a dark area during the day (i.e. in caves). Also, given that nights last about seven minutes, there's not much advantage to using the "at nighttime" slot of the capsule pendant, compared to simply drinking an extended potion at the start of the night - the trigger condition itself ("night") isn't granular, but is being used to trigger a granular effect (five-second capsules).
In reply to re_assembly:
ooh, that makes sense. Changed in version 1.0.5
In reply to Hmysjiang:
Nice, thank you!
The "dark" trigger seemed a little over-sensitive at first, but then I realized there were a few spots in my base that were only at light level 7 - not really "dark", but technically dark enough to spawn hostile mobs. Not the darkness threshold I would have picked, but it sort of makes sense, so it's fine as it is.
One small bug: When the "darkness" trigger causes a potion capsule to be used by the Pendant, the pop-up message just says "Used Air" instead of "Used (potion name)". I'm guessing there's a typo in a variable name somewhere - is the message trying to fetch an item name from an uninitialized item variable?
In reply to re_assembly:
Fixed. Version 1.0.6 will be available later.
The mechanics brought by this mod are awesome.
For someone like me who doesn't like having potions in the hotbar, nor having to switch quickly the potions to the hotbar then using them when starting a fight, this is a must-have : not only you can trigger potions effects when you need them, and the triggers are very well chosen (when on fire, when in water, when sprinting!, when attacking, when falling, when pressing a particular keybind...), but you can also combine several potion effects in a single capsule!
We finally effectively use the potions... even quite often! And with a nice granularity since the effect (can be configured!) lasts basically 5 seconds.
Would love to see some variety in capsule colors in future but cool mod.