yous a repeating command block, please name the animal you want to become 2 commands first is "/tp @e[name=a] @e[name={YOURNAME)]" command 2 down place a reapeater from one command to the other in order to work and a leaver in 1st command
Der Befehl
Achtung: Minifiziere den Command um Probleme zu vermeiden :)