You can repair swords, bows and armor with the anvils at spawn and unenchanted piece of them. It's easy.