1
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)
Create an account or sign in to comment.
7
1
Never mind it worked THANK YOU.
1
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
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.
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
1
and put /execute @e[type=Example] ~ ~ ~ /commandname before
1
/effect @e minecraft:example time(1000000 for forever)in_ticks strength
1
Can anyone help???!?!?!?!?!?!?!!