Mods / Fall Damage Options

Category: #QoL #Tweak
Author: Rangelost
Side: Both
Created: Jun 10th 2023 at 2:21 AM
Last modified: Aug 15th 2023 at 11:37 PM
Downloads: 754
Follow Unfollow 10

Latest file for v1.18.8:
falldamageoptions.zip 1-click install


This is a simple mod with the objective of adding options to mitigate unfair deaths caused by the buggy mess that is fall damage. This mod only affects players.

Note: The author is on indefinite break. If you would like to continue this mod, feel free to use the included source code.

Upon running the mod, a falldamageoptions.json config file will be created or updated in the game's ModConfig directory. The available options are:

  • enabled: true to enable player fall damage, false to disable player fall damage;
  • max_damage: maximum damage caused by a single fall. Set to 0 or less to disable this option;
  • min_health: minimum health down to which fall damage can bring a player. This makes falling non-lethal. Set to 0 or less to disable this option;
  • speed_based: true to make fall damage speed-based instead of distance-based (a(x - b)²), false to use the base game algorithm;
  • sb_threshold: if speed_based is true, speed threshold (b) at which players begin to take fall damage;
  • sb_coefficient: if speed_based is true, coefficient (a) with which fall damage is multiplied;
  • client_authoritative: true to make fall damage client-authoritative, otherwise false. Only enable this if you trust the clients not to cheat. Be aware that enabling this bypasses the bug where touching a wall prevents fall damage.

† Because of the base game's client-server discrepancy and poor synchronization, it is possible to take the damage from a single fall multiple times. This is a game issue, not a mod issue.

Note: This mod does not fix any of the base game's bugs related to fall damage. It is merely an attempt at lessening the severity of the problem until such time as it is properly addressed.

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.1.1 349 Aug 15th 2023 at 11:37 PM Show falldamageoptions.zip Install now
v1.1.0 218 Jun 23rd 2023 at 2:19 AM Show falldamageoptions.zip Install now
v1.0.0 187 Jun 10th 2023 at 2:22 AM Show falldamageoptions.zip Install now

8 Comments (oldest first | newest first)

💬 RangelostAuthor, Jun 25th 2023 at 7:25 PM

ThreeHeadedDingo

Jaarl
Glad to hear it!

💬 Jaarl, Jun 25th 2023 at 4:21 PM

Many thanks Rangelost and Pumilius! Like ThreeHeadedDingo, I only play with friends so the client_authoritative option is perfect for us.

💬 ThreeHeadedDingo, Jun 24th 2023 at 9:11 PM

The new ability to allow client authoritative fall damage is great, thanks. I only ever play with close friends and cheating is a non-issue for us, so I'm always thankful for stuff like this.

💬 RangelostAuthor, Jun 24th 2023 at 7:28 PM

Jaarl
When calculating fall damage, the base game attempts to be generous to gliding players by limiting the fall height to a hard-coded 14 blocks, and by halfing the vertical speed. Of course, none of that matters if the server forgot to register that the player is gliding at all... which it frequently does.

If you're playing in single player, you definitely want to enable the client_authoritative option. It will mitigate all instances of fall damage-related lag (e.g. suddenly dying in midair), and make gliding much more fun. The option also works in multiplayer if you're hosting a server to play together with friends. I do not recommend using this option if you host an open server, as it would allow strangers to cheat (more than they already can) and avoid all fall damage.

💬 Pumilius, Jun 24th 2023 at 4:05 PM

Jaarl

Definitely go with Speed based damage and enabled the client authoritative feature if you're playing by yourself or people you can trust.  It's gets damn close to making the game playable and not taking fatal damage running down stairs!

💬 Jaarl, Jun 24th 2023 at 2:52 PM

Rangelost thanks for this mod! Short of disabling fall damage or using max_damage or min_health, what settings would you recommend players use with Alternative Glider Implementation to mitigate instant death?

💬 RangelostAuthor, Jun 10th 2023 at 6:08 AM

ThreeHeadedDingo
Unfortunately, it does not. That information is not available at the fall damage calculation stage. As a result, much like in the base game, the safest way to land remains to slam violently into a wall.

💬 ThreeHeadedDingo, Jun 10th 2023 at 5:33 AM

Do you know if horizontal speed factors into speed-based fall damage using your method?

(edit comment delete)