
No Void Death
This project removes the ability to die to the void in The End. If you fall into the void, you will instead be teleported to world height in the Overworld with resistance V applied - so the fall is not fatal.
This is a simple datapack that detects when players have fallen in the void and teleports them out before they take any damage.
To retain immersion, this teleports them to their exact coordinates in the overworld, but 400 blocks in the sky.
Resistance V is applied for the duration of the fall so it is not fatal
You may customise the teleport location or fatality of the fall:
Change TP location:
To change the location that players are teleported to (like world spawn, or a shame box), find the tp_player.mcfunction file (Unzip the datapack, then data/vtp/function/tp_player.mcfunction. Open it in any text editor.
replace the coordinates at the end of this command (line 3):
execute if entity @s[y=-64,dy=-9999] in minecraft:overworld run tp @s ~ 400 ~
to match
execute if entity @s[y=-64,dy=-9999] in minecraft:overworld run tp @s [X-coord] [Y-coord] [Z-coord]
Make the fall fatal:
In the case that you want to skill check players' ability to clutch a fall, find the tp_player.mcfunction file as above. Then simply remove line 2:
execute if entity @s[y=-50,dy=-9999] run effect give @s minecraft:resistance 8 4 true
After making any changes, make sure to save the file ctrl+S/cmd+S, and disable the original datapack version in-game (or just delete the .zip file from the datapack folder and only keep the unzipped one that you have created)