Code:
on drop:
cancel event
spawn pig at player
apply slowness 10 to last spawned entity for 1 hours
However, when the player pushes the pig, the pig will move, I would like to ask if there is any way to make pigs can not be pushed?