* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
EnderInvestor2025-12-30 23:08
i dont think you can make it only do it when you hit because bedrock doesnt have an on-hit paramater but this command can do it when you're close (remember to remove the spaces after the @ s) /execute as @ a\[hasitem={item=stone\_sword,location=slot.weapon.mainhand}\] at @ s positioned \^ \^ \^ run effect @ e\[r=3,type=!player\] wither 3 1 true
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)