I'm trying to change the mob's weapon if the player is near but it wont change
//ads -- adsterra.com -- native banner
?>
Everything seems fine as far as the command goes but the weapon of the enemy won't change.
execute at @e[type=minecraft:skeleton,name="Soldier"] if entity @a[distance=..5] run replaceitem entity @s weapon.mainhand minecraft:iron_sword 1
Pictures about "I'm trying to change the mob's weapon if the player is near but it wont change"



Tones And I - Dance Monkey (Lyrics)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Budgeron Bach, RODNAE Productions, RODNAE Productions, David McBee
