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]

Regional differences in Borderlands 2 Regional differences in Borderlands 2

Posted On: May 19, 2023
General question: Are there any differences in Borderlands 2, based on the game's region code? Specific case: I received a game coded for Region 3, but I live in the U.S.. Are there any signifi...[More]


Team Fortress 2 Bonus Points and How To Get Them Team Fortress 2 Bonus Points and How To Get Them

Posted On: June 11, 2023
Is there a comprehensive list of ways to earn bonus points in TF2?. I have seen here and there one way to do it with this class or the other, but there seems to be no complete list that I've fo...[More]


How to get VALORANT on 2021 M1 MacBook Air How to get VALORANT on 2021 M1 MacBook Air

Posted On: March 27, 2024
VALORANT, currently, is not on MacOS. It is also not on Steam. You cannot download VALORANT through the website because. well, there's no button to do so. So how do you get it on Mac?Originally, I tho...[More]


How do redstone torches (circuits) work in Minecraft? How do redstone torches (circuits) work in Minecraft?

Posted On: September 19, 2023
I tried reading the minecraftwiki page on the subject, but without an understanding of precisely how the torches work, none of it makes sense. I have a lot of questions, so even an article explaining ...[More]


Is it possible to do a 100% playthrough with a single save file? Is it possible to do a 100% playthrough with a single save file?

Posted On: October 4, 2023
I was thinking of doing my next playthrough to complete 100% of the game (I sort of rushed my first time), on the highest difficulty. Do I need to have multiple saves for branching scenarios, or is it...[More]


Why do my short beards look like crap? Why do my short beards look like crap?

Posted On: December 18, 2024
Question from user court_of_owlets at BaldursGate3 at reddit.com.Answer:Reminds me of Team America :D.https: - - preview.redd.it - 84km4prjqm7e1.png?width=639&format=png&auto=webp&s=547e79da13e6e37970...[More]


Can I check how many stamps Ive collected in Mementos? Can I check how many stamps Ive collected in Mementos?

Posted On: January 30, 2023
When navigating Mementos in Persona 5 Royal, you can collect stamps at the stamps stations for Jose's upgrades. Each time you collect a stamp, it tells you on screen how many stamps you've collected, ...[More]


Reset nether but preserve above ceiling in Minecraft? Reset nether but preserve above ceiling in Minecraft?

Posted On: April 13, 2023
I'm running a Minecraft server (version 1.15.2), and I plan to reset the nether for the 1.16 update. I would like to keep anything that's been built above the nether ceiling. Obviously, res...[More]


Too easy on normal in Hogwarts Legacy? Too easy on normal in Hogwarts Legacy?

Posted On: April 25, 2023
Hey all just wondering if there any others here who find this game really easy on normal mode? Also be curious to know if the same folks who find this quite easy play games like Dark Souls etc. I v...[More]


Is there any point in discovering more than one branch for each of the in-game truck brands? Is there any point in discovering more than one branch for each of the in-game truck brands?

Posted On: May 31, 2023
Suppose that I already discovered only one branch for each truck brand. What do I gain from discovering other branches/locations? Question from user user231589 at gaming.stackexchange.com. Answe...[More]