you need 3 command blocks
Note: Minify the command to avoid issues :)
wild villager
master_sword
tp bow
GOD SWORD!
GOD SWORD! 1.11.2
The Super Sword
OP DIAMOND SWORD!!!