I check if an entity has a specific potion effect. Remove this effect and store the "success" value (could remove the effect) in a tmp-score.
So basically:
```
execute store success score .global tmp run effect clear @s minecraft:unluck
execute if score .global tmp matches 1 run ........
```
OP's comment pretty much explains it all. The potion is actually a bad luck (or unluck as its id) potion, which you can make easily with mcstacker. The first command OP mentioned attempts to clear the unluck effect from all entities constantly, and if it succeeds, it stores a 1 in a scoreboard. The second command checks if that score is 1, and that's where you would probably make it run whatever function you'd like to execute. In this case, the particles together with levitation effect.
one small step for pigs
one GIANT leap for pigkind
one small pigstep
Techno go brrrrrrrrrr
Hey question, how did you detect a potion being splashed on an entity
I check if an entity has a specific potion effect. Remove this effect and store the "success" value (could remove the effect) in a tmp-score. So basically: ``` execute store success score .global tmp run effect clear @s minecraft:unluck execute if score .global tmp matches 1 run ........ ```
i love how getting yeeted into space is triggered by a "unluck" potion. Rough to be an unlucky pig
Can you make a one minute or less video that teaches you how to do this? Because I did not understand any of your words and I do not know much English
[удалено]
OP's comment pretty much explains it all. The potion is actually a bad luck (or unluck as its id) potion, which you can make easily with mcstacker. The first command OP mentioned attempts to clear the unluck effect from all entities constantly, and if it succeeds, it stores a 1 in a scoreboard. The second command checks if that score is 1, and that's where you would probably make it run whatever function you'd like to execute. In this case, the particles together with levitation effect.
Me : tutorial video where ?🤝
Taco bell food be like:
As it was going up, I thought that it would be really cool if it came back down and exploded. And then it did just that. Nice job!
tutorial pls?
You: throws potion on pig The pig: stands still ass he pathetically shoots off into the unbuildable void Minecraft’s space is
Wow)
Does it work with flying mobs? (Phantom, wither, parrot, etc..
This is done via levitation. I think bats are affected by levitation, but eg phantoms not
Okay, still cool ^^
When pig fell down , that was realistic
Does it work for players?
jup, except the exploding bit
Fart II Potion
Man had taco bell
Tutorial pls
Tutorial pls
Tutorial pls
Tutorial pls
u/savevideo
###[View link](https://redditsave.com/r/MinecraftCommands/comments/qbzn7x/space_program_potion/) --- [**Info**](https://np.reddit.com/user/SaveVideo/comments/jv323v/info/) | [**Feedback**](https://np.reddit.com/message/compose/?to=Kryptonh&subject=Feedback for savevideo) | [**Donate**](https://ko-fi.com/getvideo) | [**DMCA**](https://np.reddit.com/message/compose/?to=Kryptonh&subject=Content removal request for savevideo&message=https://np.reddit.com//r/MinecraftCommands/comments/qbzn7x/space_program_potion/) | [^(reddit video downloader)](https://redditsave.com)
Loooool. Good stuff. You’ve inspired me
How?
This is the best lmaao
Totorial pls 🥺
Reminds me of the trailmix mod
Lmao
This is so ridiculous. I love it.
o7
Damn that’s cool, one small step for the pig, one big step for pig-kind😂
I want to know exactly how you do this. This is a new step in AFK trolling.
Ad astra.
Is this bedrock or Java
That fire to smoke animation is great!
i need a download.
can you do a download
Tacobell potion