1

Help with testing for @e having a potion effect

BurtRocks's Avatar BurtRocks4/21/16 8:37 pm
1 emeralds 361 7
4/29/2016 7:47 pm
BurtRocks's Avatar BurtRocks
I'm working on a large project requiring to be able to execute @e with a certain potion effect and strength of that effect. Could someone give a command that can do so? (I need it not to be using the effect command)
Posted by BurtRocks's Avatar
BurtRocks
Level 1 : New Miner
0

Create an account or sign in to comment.

7

1
04/29/2016 7:47 pm
Level 1 : New Miner
BurtRocks
BurtRocks's Avatar
Never mind it worked THANK YOU.
1
04/29/2016 7:15 pm
Level 1 : New Miner
BurtRocks
BurtRocks's Avatar
Thank you Papyrus_ and Bertiecraft. It really helped but it didn't work! Bertiecraft, when doing you command, it ignores the tag in the command and runs the command. When I try to execute and summon a creeper on everyone with a score of 1, it ignors the score and just summons the creeper on everyone. Please help!
1
04/29/2016 7:33 am
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
You need to make a scoreboard objective (dummy)
Then you either set the scoreboard objective to 1 everytime something gets spawned
/scoreboard players set @e[name=....] Potion 1
assuming you name your entity first, then add the effect and set the scoreboard.

OR detect things that have potion effects
/scoreboard players set @e Potion 1 {<look at Papyrus_ answer>}

If you want to distinguish multiple potion effects, you can give each potion different numbers.

No matter what way you use, the last thing you need to do is using the following selector:
@e[score_Potion_min=1,score_Potion=1] in your comands.

Of course the 1 can be changed with other numbers for different potion effects.
1
04/29/2016 4:47 am
Level 22 : Expert Network
YTCereal
YTCereal's Avatar
1
04/28/2016 9:28 pm
Level 1 : New Miner
sidegamer
sidegamer's Avatar
and put /execute @e[type=Example] ~ ~ ~ /commandname before
1
04/28/2016 9:27 pm
Level 1 : New Miner
sidegamer
sidegamer's Avatar
/effect @e minecraft:example time(1000000 for forever)in_ticks strength
1
04/28/2016 9:20 pm
Level 1 : New Miner
BurtRocks
BurtRocks's Avatar
Can anyone help???!?!?!?!?!?!?!!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome