To be invincible, you have to have a bed and a boat. Place the bed, then place the boat right near the bed, then go in the boat, then go from the boat to the bed, then have a second player in the game break the bed, you should then be removed back to the boat, then have the second player hit you once, you are now invincible and can get back on your feet.