How can I make a Custom Potion in Minecraft Bedrock Edition?

[BACK]
How can I make a Custom Potion in Minecraft Bedrock Edition?
Posted On: January 24, 2023

Java Edition has a feature allowing one to make potions with any effect, duration and color. Can I do this in Bedrock Edition?


Question from user Penguin at gaming.stackexchange.com.


Answer:

Yes.


A forewarning: This is a little bit a stretch of the term "potion", as our "potion" will be instantly consumed. This assumes you have a basic knowledge of chain command blocks and conditionals.


Approach.


Spawn eggs are one of the most useful things in commands, as they allow us to tell when a player has right-clicked/tapped. We will now know when the player "drinks" our potion whenever our entitiy has spawned.


Our "Potion".


Let's get a bat spawn egg and name it "Blackout Potion". When a spawn egg is given a custom name, the entity it spawns is given that name. Now that we've established the specifics, it's easy going from here.


How.


Place a repeating always active command block with the command:.


effect @e[type=bat,name="Blackout Potion"] invisibility 9999 255 true.


We do this as not to see the entity, as this will hide the death animation when we /kill it later. Notice we skip a /testfor - We have condensed it as this command will only return true if we find a bat by this name. Now a chain conditional always active command block with the command:.


execute @e[type=bat,name="Blackout Potion"] ~ ~ ~ effect @p[r=6] night_vision 45 255.


We then give this effect to the nearest player within 6 blocks of our entity. Now a chain conditional always active command block with the command:.


execute @e[type=bat,name="Blackout Potion"] ~ ~ ~ effect @p[r=6] blindness 45 255.


That is my second effect! If you don't know about this easter egg, follow this tutorial and you can see what happens when we mix these effects. What's actually happening here, though? We're merely adding a second effect to our potion. You can have more effects if you want, or just one. Remember the first number is how long each effect lasts, mine is 45 seconds each. The second value is the amplifier. It must be a number 0-255 (i.e. speed 30 0 = Speed I for 30 seconds, night_vision 120 4 = Night Vision V for 2 minutes).


Now a chain conditional always active command block with the command:.


kill @e[type=bat,name="Blackout Potion"].


Finally, say goodbye to our bat. He is useless now as we have used all the commands on him that we want.


Notes.


Use different entities to have different color potions! You have a lot of options.


This works best with gamerule domobdrops set to false, as it gives you more options. Don't want to? Just make sure the mob you use doesn't drop items (i.e. no cows, no zombies). Don't worry about XP - that only drops if a player kills a mob.


Named spawn eggs are so useful for so many things! Think of all the different things you can do: Custom mobs, traps, structure placements... Use these, so many don't consider this amazing item!.


Downsides.


Instantly consumed.


Must be pointed at a block to "drink".


Doesn't actually look like a potion.


Death sounds - Squeak! Moo!.


Answer from user Penguin at gaming.stackexchange.com.


[BACK]
How can I make a Custom Potion in Minecraft Bedrock Edition?
Posted On: January 24, 2023

Java Edition has a feature allowing one to make potions with any effect, duration and color. Can I do this in Bedrock Edition?


Question from user Penguin at gaming.stackexchange.com.


Answer:

Yes.


A forewarning: This is a little bit a stretch of the term "potion", as our "potion" will be instantly consumed. This assumes you have a basic knowledge of chain command blocks and conditionals.


Approach.


Spawn eggs are one of the most useful things in commands, as they allow us to tell when a player has right-clicked/tapped. We will now know when the player "drinks" our potion whenever our entitiy has spawned.


Our "Potion".


Let's get a bat spawn egg and name it "Blackout Potion". When a spawn egg is given a custom name, the entity it spawns is given that name. Now that we've established the specifics, it's easy going from here.


How.


Place a repeating always active command block with the command:.


effect @e[type=bat,name="Blackout Potion"] invisibility 9999 255 true.


We do this as not to see the entity, as this will hide the death animation when we /kill it later. Notice we skip a /testfor - We have condensed it as this command will only return true if we find a bat by this name. Now a chain conditional always active command block with the command:.


execute @e[type=bat,name="Blackout Potion"] ~ ~ ~ effect @p[r=6] night_vision 45 255.


We then give this effect to the nearest player within 6 blocks of our entity. Now a chain conditional always active command block with the command:.


execute @e[type=bat,name="Blackout Potion"] ~ ~ ~ effect @p[r=6] blindness 45 255.


That is my second effect! If you don't know about this easter egg, follow this tutorial and you can see what happens when we mix these effects. What's actually happening here, though? We're merely adding a second effect to our potion. You can have more effects if you want, or just one. Remember the first number is how long each effect lasts, mine is 45 seconds each. The second value is the amplifier. It must be a number 0-255 (i.e. speed 30 0 = Speed I for 30 seconds, night_vision 120 4 = Night Vision V for 2 minutes).


Now a chain conditional always active command block with the command:.


kill @e[type=bat,name="Blackout Potion"].


Finally, say goodbye to our bat. He is useless now as we have used all the commands on him that we want.


Notes.


Use different entities to have different color potions! You have a lot of options.


This works best with gamerule domobdrops set to false, as it gives you more options. Don't want to? Just make sure the mob you use doesn't drop items (i.e. no cows, no zombies). Don't worry about XP - that only drops if a player kills a mob.


Named spawn eggs are so useful for so many things! Think of all the different things you can do: Custom mobs, traps, structure placements... Use these, so many don't consider this amazing item!.


Downsides.


Instantly consumed.


Must be pointed at a block to "drink".


Doesn't actually look like a potion.


Death sounds - Squeak! Moo!.


Answer from user Penguin at gaming.stackexchange.com.


[BACK]

How can I defeat guardians in Breath Of The Wild? How can I defeat guardians in Breath Of The Wild?

Posted On: August 9, 2023
I have not been able to discover a method of defeating guardians. I have to run away every time. What are some methods to defeating these giant instant death laser creatures? Question from user Gar...[More]


If I can only buy games as gifts on Steam and not as keys, where do 3rd party resellers get theirs? If I can only buy games as gifts on Steam and not as keys, where do 3rd party resellers get theirs?

Posted On: October 16, 2023
3rd party game key resellers like Kinguin or G2A sell game keys right? Supposedly the key sellers are just other users. I as a user as well cannot seem to buy keys from Steam though? I can only buy th...[More]


Risk of Rain 2 is not reading my controller inputs? Risk of Rain 2 is not reading my controller inputs?

Posted On: April 16, 2023
I've run into an issue with Risk of Rain 2 on my steam deck, where it no longer accepts controller inputs. In settings, under controller options, most inputs are labeled with an error saying there...[More]


Is the druid Tav's animal form different from others druids? Is the druid Tav's animal form different from others druids?

Posted On: November 12, 2023
I started playing coop with a friend and he was amazed asking me why my bear form was white, because he already finished the game and was telling me that he remembers that druids transformed into brow...[More]


Is there a way to share vision with opponent in Starcraft 2? Is there a way to share vision with opponent in Starcraft 2?

Posted On: June 25, 2023
There are times that I would like to be able to share vision with my opponents when playing Starcraft 2. This was possible in the original Starcraft, but I can't find a way in Starcraft 2. Situ...[More]


How Do I Enchant a disenchanted item in Elder Scrolls? How Do I Enchant a disenchanted item in Elder Scrolls?

Posted On: March 7, 2023
I'm asking because when I disenchant an item, the enchantment shows a stat such as "10% frost damage". However, when I disenchant the item to learn its effects and apply them to another ...[More]


How to mark items as junk in The Outer Worlds? How to mark items as junk in The Outer Worlds?

Posted On: May 2, 2023
Items you've marked as Junk can be sold in bulk. Okay, so how do I mark items as junk? There is no UI in the game or anything else, just a tip that suggests that you can mark items as junk. ...[More]


What is your toughest Hogwarts Legacy enemies so far? What is your toughest Hogwarts Legacy enemies so far?

Posted On: June 5, 2023
For me it's DUGBOG!!!. It is frustrating to run upon them in a swamp. If there are only one or two of them, it is tolerable, but if there are four, I will die right away. Levioso won't w...[More]


What is the use item in Sam and Max What is the use item in Sam and Max

Posted On: June 23, 2023
This question bothers me since I was a kid. In Sam and Max - Hit the Road, what is the green thing in the "use" icon? Is it a duck? Is it a toy? Question from user Keeper at stackex...[More]


What Was Your Favorite Part of the Hogwarts Game? What Was Your Favorite Part of the Hogwarts Game?

Posted On: June 11, 2023
I LOVED Keeper Niamh's trail. When she initially said it may be familiar to a story I heard as a child, I about lost my mind. The Tale of Three Brothers is one of my favorite parts in the mo...[More]