How do I make execute only give a potion effect for a specific player?

Help | Java 1.15

For example, I have

execute if entity @a[name=Ghost_Rock_,scores={Health=..10}] run effect give Ghost_Rock_ slowness 2 1 true

to give myself a potion effect if I'm under a specific health. How do I make this so it works for everybody? I tried removing the name from the @a selector then using @p but that didn't work. Thanks!

Posted Apr 30, 2020, 5:31 PM UTC

20

No comments yet

Nobody commented on this post, or the comments weren't captured.