1

Im trying to make my friend Bee get the weakness potion effect every time she goes 20 blocks near my other friend Kay, how do I do this with command blocks :D?

0

From looking at the wiki:

execute @a[name=Kay] ~ ~ ~ execute @a[name=Bee,rm=0,r=20] ~ ~ ~ effect @s weakness <time> <amplifier>

Which translates to:

Execute at Kay, as Bee if closer then 20 blocks (inclusive), give them (Bee) an effect

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.