Well you can make it so you cant die but it would also make it to where you wouldent need to sleep or eat or any thing
To do this follow these steps
1 ctrl shift C
2 type testingcheatsenabled true
3 press enter
4 right click the mail box
5 click make needs static
6 enjoy