The minecraft pig is a very neutral animal. They spawn mostly in grassy plains during the day except when they fucking spawn on your build and throw you off. You can also ride them if u put a saddle on there backs but you can't control them without a carrot on a stick. They despawn within 5 minutes of the time that they spawn.