This is my code but it doesn't work, it pushes the cow towards the direction the player is facing.
Code:
on left click:
if player's held item is a nether star:
spawn cow at location (0, -60, 0) in world "BOXMAP"
push last spawned cow in direction to player at speed 3