#How would I make this command not attack the person using it?

1 messages · Page 1 of 1 (latest)

velvet trench
#

execute if score @s matches 9 run damage @n 1 magic at ^10 ^ ^

kind topazBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1723595690:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

velvet trench
#

execute if score @s matches 9 run damage @n 1 magic at ^10 ^ ^

hard dagger
#

for the first example, you could use @n[distance=1..], and in the second example, you could use something like @n[tag=!attacking]

hard dagger
#

execute if score is good if you're comparing one player's score to another. it would probably be more appropriate to do a score check in the entity selector for this case.

strong warren
#

You can do execute if score for something like this, the command is just missing the actual scoreboard objective to be checked

primal coral
#

you can also give the player a tag before the damage command, then damage all entities without that tag and then remove the tag

primal coral
kind topazBOT