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]

Avoiding detection while hacking the computer in one step ahead Avoiding detection while hacking the computer in one step ahead

Posted On: October 22, 2023
I'm on New Game Plus x2 (NG+2) in Starfield (PC). On my first run, I completed the "One Step Ahead" Ryujin quest by going to CeltCorp, waiting until the security officer left the office ...[More]


How do I make it so that a command only runs when Im at a certain position How do I make it so that a command only runs when Im at a certain position

Posted On: February 14, 2023
I'm trying to make it so that if someone goes to a certain coordinate, it will trigger a boss fight. I have a chain of commands set up to do this, but it can only activate when I pull a lever. ...[More]


Is it possible to use NBT tags in commands in Minecraft: Bedrock Edition? Is it possible to use NBT tags in commands in Minecraft: Bedrock Edition?

Posted On: January 19, 2023
This question was split into different questions for each workaround. See these two meta posts for more information.Can you use NBT tags in commands? I’ve tried commands that normally work in J...[More]


How to mute squad member in Call Of Duty Warzone 2.0 DMZ How to mute squad member in Call Of Duty Warzone 2.0 DMZ

Posted On: February 22, 2023
I'm playing in a party and a specific team mate is very loud in the channel. Some people suggest that I can mute them in the Channels menu, but I can see no MUTE option at all in the corner. ...[More]


Fallout 4 wont launch after Xbox update Fallout 4 wont launch after Xbox update

Posted On: April 25, 2024
After the Xbox update on December 6th to version 10.0.25398.2917 I am unable to start Fallout 4 anymore. The loading screen is shown, but nothing else happens.As this is the only game I have installed...[More]


What are these green and orange dots on the Soviet Installation map? What are these green and orange dots on the Soviet Installation map?

Posted On: August 22, 2023
I am playing Rise of the Tomb Raider on PC. When I press the TAB key, I get the map, and I see (red arrow highlighted) green/orange dots and dotted lines. What do they mean? How can these be use...[More]


Are the Draugr apologizing to me? Are the Draugr apologizing to me?

Posted On: February 4, 2015
Draugr sometimes say "Unstaad Krosis" when attacking. I understand that means "many apologies" in dragon tongue (convo with Paarthurnax). .Does this hint that they are doing something against their wi...[More]


Why did Donkey Kong 64 require more than 4 MB of memory? Why did Donkey Kong 64 require more than 4 MB of memory?

Posted On: August 1, 2023
As most of you know, the N64 Donkey Kong game had a game breaking bug on the 4 MB memory version. They needed to include the expansion memory just so that bug wouldn't happen. I can imagine in ...[More]


How can I import a custom map into Minecraft? How can I import a custom map into Minecraft?

Posted On: February 10, 2023
I've watched lots of Minecraft videos on YouTube, where they tell you to "extract the Minecraft map", but none of them explain exactly what I need to do to get that map imported into Minecraft, once I...[More]


Is there a way to get out of the LAN mode in single player Minecraft? Is there a way to get out of the LAN mode in single player Minecraft?

Posted On: May 19, 2023
I am trying to keep the commands off for my video's and I accidentally started LAN mode in single player and I'm not sure how to set it back to normal if it's possible. Question from us...[More]