Another way to say "You can use a sword to decorate the wall" is "One function of a sword is to be a wall decoration."