Killing Fall
This compact mod adds a simple yet effective mechanic to Minecraft - the player dies when reaching a specified fall distance. The development is primarily aimed at CubicChunks servers in the End dimension with unlimited height, but it works perfectly on standard vanilla servers as well.
The maximum allowed fall distance is easily configurable through the configuration file.
@SubscribeEvent
public void onEvent(PlayerTickEvent event) {
EntityPlayer player = event.player;
if (player.world.isRemote)
return;
if(player.fallDistance > deadlyFallDistance)
player.onKillCommand();
}