If you need to do something extremely dangerous but don't want to die then just do /invincible command for let's say 100 minutes so you type in the command and boom your invincible for 100 minutes .